cancel
Showing results for 
Search instead for 
Did you mean: 

WDA select-options value help configuration

Former Member
0 Kudos

Hello,

I would like to configure the value help in the select-options component in WebDynpro ABAP. I used the parameter I_VALUE_HELP_TYPE of the method ADD_SELECTION_FIELD, but I didn't know how to pass a correct value for this parameter. Could someone give me an example with coding? That would be great! Thanks in advance.

Regards,

Georg

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can pass values to this parameter like this:


i_value_help_type = if_wd_value_help_handler=>co_prefix_none 'default value

*You can also pass any of the atributes of the interface 
*if_wd_value_help_handler. Open this interface in SE37 and check out the available attributes.

By the way, isn't this parameter optional?

Regards,

Satyajit.

Answers (2)

Answers (2)

russell_day2
Participant
0 Kudos

For those of you who, like me, get a screen full of OTR keys on the buttons and tabs, the answer is on the first tab, 6th button. Note that it is based on SPFLI, so the expected linkage between CARRID and CONNID does not happen.

The code is in MAIN_VIEW method ONACTIONON_CRS_FLD_F4_CASES.

The essence of it is:

wd_this->m_handler->add_selection_field(

i_id = CARRID

it_result = lt_range_table

i_value_help_structure = 'SFLIGHT'

i_value_help_structure_field = "CARRID ).

wd_this->m_handler->add_selection_field(

i_id = CONNID

it_result = lt_range_table

i_value_help_structure = 'SFLIGHT'

i_value_help_structure_field = "CONNID ).

The result is that you select the CARRID, and that restricts the CONNIDs.

I have used SFLIGHT because it will give linked search helps for CARRID and CONNID. It works with parameters too, but remember GET_PARAMETER_FIELD is not currently implemented (it exists, but contains no code, so your program will seem to work, but it won't) , so use GET_PARAMETER_FIELDS which does work.

Former Member
0 Kudos

Hi,

see component WDR_TEST_SELECT_OPTIONS (and WDR_SELECT_OPTIONS) in the system.

Regards, Heidi