cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Single values Option l_s_range-opt = ???

Former Member
0 Kudos

Hello Friends if I want to pass Multiple Single values what should I put instead of "BT". Like for one single Value I put "EQ" what is that I need to put for Multiple Single value.

Please help.

l_s_range-sign ='I'.

l_s_range-opt = 'BT'.

append l_s_range to e_t_range.

endif.

Thanks

Soniya

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor

Hello Soniya,

you need to repeat the EQ multiple times.


l_s_range-sign ='I'.
l_s_range-opt = 'EQ'.
l_s_range-low = val1.
append l_s_range to e_t_range.


l_s_range-sign ='I'.
l_s_range-opt = 'EQ'.
l_s_range-low = val2.
append l_s_range to e_t_range.

if your input has some pattern, which you can follow:

l_s_range-sign ='I'.
l_s_range-opt = 'CP'.
l_s_range-low = 'TEST*'.
append l_s_range to e_t_range.

Regards,

Naimesh Patel

Answers (1)

Answers (1)

former_member195698
Active Contributor
0 Kudos

In addition to this..... you can create a test program with a single Select Option and Try passing values to it in different ways and in the Debug Mode check the way SAP prepares the Select Option.

Regards,

Abhishek Jolly

Former Member
0 Kudos

Hi I will go with Naimesh option, But Abhishek if you can tell me the code for the test program I can try that since I DO NOT know where to look select option code

thanks

Regards

Soniya

former_member195698
Active Contributor
0 Kudos

Its simple.

Report ZTEST.

tables: mara.

select-options:so_mara for mara-matnr.

start-of-selection.

break-point.

Try with passing different values in the Material number select option like.

a) Single Value

b) Range of values - Low to high

c) Multiple single values. .etc.

d) Pattern ( passing values like 203* )

and see how sap is filling the Select option. at the break-point. Select Option is basically an internal table. So just check the entries in the internal table.

Regards,

Abhishek