cancel
Showing results for 
Search instead for 
Did you mean: 

Serach help in Select-option in WD ABAP

Former Member
0 Kudos

Hi Folks,

I am using WDR_SELECT_OPTIONS reusable component in my Component. I want to attach customized search help particular fild while creating select-option using

wd_this->m_handler->add_selection_field(

i_id = 'IWERK'

it_result = lt_range_table

i_read_only = read_only ).

Can anyone explian how can I attach search help here.

Regards,

Vishal.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Vishal,

Use this:


wd_this->m_handler->add_selection_field(
i_id = 'IWERK'
it_result = lt_range_table
i_read_only = read_only
I_VALUE_HELP_ID = <NAME OF SEARCH HELP> ).

Regards,

Answers (2)

Answers (2)

Former Member
0 Kudos

This is working.

Former Member
0 Kudos

Hi Vishal,

If its a search help, use the following code:

lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).

wd_this->m_handler->add_selection_field(

i_id = 'S_PLANETYE'

it_result = lt_range_table

i_read_only = read_only

I_VALUE_HELP_TYPE = 'SEARCHHELP'

i_value_help_id = 'Z_SAPLANE' ).

In this example, 'Z_SAPLANE' is the dictionary search help.

This will solve your problem

For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.

This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.

Regards,

Chitrali

Former Member
0 Kudos

Hi David/Chitrali

Thanks for the help. This is working.

regards,

Vishal.