cancel
Showing results for 
Search instead for 
Did you mean: 

Select Options for VBELN

0 Kudos

Hi,

I am trying to place select option for VBELN by using WDR_SELECT_OPTIONS but i am unable to get list of values from select option. I tried for S_CARR_ID it works fine and i got list of values. can any one help me why its not coming for VBELN.

Working Corrent


Not Working

My Code

Thanks

S. Sai Santhosh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi sai santhosh,

By default there is no search help for the VBELN.

So we need to explicitly provide the search help name or Help structure.

CALL METHOD lv_r_helper_class->add_selection_field

     EXPORTING

       i_id                                       = 'VBELN'

       it_result                                 = rt_range_table

       i_value_help_type                   = if_wd_value_help_handler=>co_prefix_none

       i_value_help_structure             = 'VBUK'

       i_value_help_structure_field     = 'VBELN'

       i_read_only                            = abap_false.


Where vbuk is the check table for the vbeln in the VBAK.


When you create as the input field for the VBELN there will be no search help.So we need to assign the search help in the context level by selecting the INPUT HELP MODE = DICTIONARY SEARCH HELP and provide the search help name over there..



Thanks & Regards

@surendra@

0 Kudos

Hi Surendra,

Thanks for your reply. i tried i works for me.

Szczerbowski
Active Participant
0 Kudos

Hi,

On another note...

Maybe you should check WD_SELECT_OPTIONS_20, it's the current one, the one you mentioned is marked obsolete.

Cheers,

M.

0 Kudos

Hi sai..

Pass below parameters with add_selection_field method

CALL METHOD lv_r_helper_class->add_selection_field

     EXPORTING

       i_id                                       = 'VBELN'

       it_result                                 = rt_range_table

       i_value_help_type                   = if_wd_value_help_handler=>co_prefix_none

       i_value_help_structure             = 'VBAK'

       i_value_help_structure_field     = 'VBELN'

       i_read_only                            = abap_false.