cancel
Showing results for 
Search instead for 
Did you mean: 

data from Value table of domain in select option

Former Member
0 Kudos

Hello all,

I have created select option using WDR_SELECT_OPTIONS .

I have written code as:

lt_range = lo_select_options->create_range_table( 'S_CONN_ID' ).

lo_select_options->add_selection_field( i_id = 'SO_STATUS'

i_description = lv_label

i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_AUTO

i_is_auto_description = abap_false

it_result = lt_range

i_tooltip = lv_label

).

My question is in the select option i need data on F4 from the domain's value table .Is it possible and how ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

lt_range_table = wd_this->m_handle->create_range_table(

i_typename = 'S_CONN_ID').

wd_this->m_handle->add_selection_field(

i_description = 'Flight no'

i_id = 'S_CONN_ID' "here also you need to give the data element name.the domain attached to data element will automatically bring the values in F4 help.

it_result = lt_range_table

i_read_only = read_only ).

Regards,

Priya

Former Member
0 Kudos

Hi,

You want to have the F4 help for connid...

SPFLI is the value table attached to it......

Are you not getting any values on F4.....

What is the value help mode you gave in the select options ...

Regards,

Lekha.

Former Member
0 Kudos

Hello Lekha,

I have not given any data for value help mode .

Plese let me know what value to give in it

Former Member
0 Kudos

when you have used the above code...are you not getting any vlaues in F4...

If you are not getting try to use the search help for S_CONN_ID so that you can give that search help..

Former Member
0 Kudos

hi,

My question is in the select option i need data on F4 from the domain's value table .Is it possible and how ?

The code you have written is absolutly fine.

Just make sure that there are values in the domain for which you are creating the Search help. If there are values , it will be automatically coming in F4 help.