Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign select-option values to internal table

Former Member
0 Kudos

hi all,

how to assign select-option values to internal table

thanks in advance.

6 REPLIES 6

Former Member
0 Kudos

hi,

can u explain ur problem in detail?

Former Member
0 Kudos

Hi,

You just need to loop at your select-option field and take the values from low and high fields.

for. e.g

loop at s_werks .

move:s_werks-low to <your itab>

if not s_werks-high is initial .

move: s_werks-high to <youritab>

endif .

append <your itab>

endloop .

OR use select statement.

regards,

Omkar.

Message was edited by:

Omkaram Yanamala

Message was edited by:

Omkaram Yanamala

Former Member
0 Kudos

Hi,

Simply select the values into an internal table.

Regards

vijai

Former Member
0 Kudos

Suppose ur select option is s_matnr..

Then its values wud be in

<b>s_matnr-low</b> and <b>s_matnr-high</b>

Hope dis helps..

Reward if it does

Former Member
0 Kudos

If u r giving single values alone in ur selection screen u can do like this-

select-options:s_matnr for mara-matnr.

loop at s_matnr.

if s_matnr-high is initial.

move s_matnr-low to itab.

append itab.

clear itab.

endif.

endloop.

Former Member
0 Kudos

Hi,

Check the below link . It is very useful one..

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_o.htm

Regards,

Maha