Hi Jack,
Put the code mentioned by Oliver in view method enhancement WDDOINIT(POSTEXIT), This makes sure that the code is executed only when the application launches.
DATA: node_org_data TYPE REF TO if_wd_context_node,
node_info TYPE REF TO if_wd_context_node_info.
node_org_data = wd_context->get_child_node( name = wd_this->wdctx_org_data ).
if node_org_data is bound.
node_info = node_org_data->get_node_info( ).
if node_info is bound.
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'PURCH_ORG_TEXT'
value_help_mode = 'C_VALUE_HELP_MODE-AUTOMATIC' " Valid value help mode
value_help = 'z Search help name'.
endif.
endif.
and also make sure the search help has the same structure as in the standard search help(return structure).
| PURCH_ORG | Types | BBP_PROC_ORG | CHAR | 14 | 0 | Responsible Purchasing Organization |
| PURCH_ORG_TEXT | Types | BBP_PURCH_ORG_DESC | CHAR | 40 | 0 | Purchasing Organization |
With this it should work.
Regards,
Tashi