cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Search Help for Standard field in a Standard Component

former_member206441
Contributor
0 Kudos

Dear Experts

i enhanced a standard screen with one inputfield and mapped a context attribute(The attribute is also standard one which doesnot have search help) my requirement is to assign a search help to the context attribute so that at runtime the user can click on the search help and the value will be passed to backend for processing.

i tried it with dynamic programmin but im getting null access error,

Experts please guide me to set a dynamic search help to the standard context attribute.

Regards

Arun.K.P

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

I guess you can create Z search help in SE11 and then add that search help as Dictionary Search help to the attribute property.

Thanks,

Chandra

former_member206441
Contributor
0 Kudos

HI Chandra

As it is a standard attribute i m not able to set the search help for it.. even i tried with dynamic search help im getting some error

Best Regards

Arun.K.P

former_member206441
Contributor
0 Kudos

Hi Friends,

I solved the issue this is the solution

DATA lo_nd_location_data TYPE REF TO if_wd_context_node.

  • navigate from <CONTEXT> to <ACCOUNT_DETAIL> via lead selection

  • lo_nd_location_data = wd_context->path_get_node( path = `LOCATION_DATA` ).

lo_nd_location_data = wd_context->get_child_node( name = wd_this->wdctx_location_data ).

DATA lr_node_info TYPE REF TO if_wd_context_node_info.

lr_node_info = lo_nd_location_data->get_node_info( ).

CALL METHOD lr_node_info->set_attribute_value_help

EXPORTING

name = `COMPANY_CODE`

value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC

value_help = 'BBP_LOCATION_VALUE'.

Best Regards

Arun.K.P