Application Development and Automation 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: 
Read only

Using Select option

Former Member
0 Likes
787

While i use select options, I want to give multiple entries and the values selected by the user have to be used in the program for further processing. Infact I want all those selected values to be stored in an internal table in my program. How can i do that??

On performing a recording the value seems to get stored in rscsel-slow_i(01) and so on.

Can anyone help?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

You can acheive this using the LOOP and APPEND statements.

LOOP AT <select-option>.

<pass values to internal table>.

APPEND <itab>.

ENDLOOP.

This can be done because of the very fact that Select-options are internal tables.

5 REPLIES 5
Read only

Former Member
0 Likes
752

You can acheive this using the LOOP and APPEND statements.

LOOP AT <select-option>.

<pass values to internal table>.

APPEND <itab>.

ENDLOOP.

This can be done because of the very fact that Select-options are internal tables.

Read only

Former Member
0 Likes
750

Vinod,

by default all the values are stored in the select-options table.

switch on the debugging and Check it once.

Regards,

Sujatha.

Read only

Former Member
0 Likes
750

Hi,

If the select-option does not have a higher range value, write like this.

loop at s_opt.

itab-val = s_opt-low.

append itab.

clear itab.

endloop.

Regards

SUbramanian

Read only

Former Member
0 Likes
750

sorry i am not enough sure about your requirement..

if you want the data enetr by user in the select-options

you can get in select-option int table itself.

select-options : s_amtnr for mara-matnr.

start-of-selection.

loop at s_matnr.

write : / s_matnr-low, s_matnr-high..

endloop.

if you want to store the values from database table.

select matnr into corresponding fields of table itab from mara where matnr in s_matnr.

regards

shiba dutta

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
750

Hi

By default those entered values are stored in the sel tab.

select-options : matnr for mara-matnr.

now you was given all are desired values for this selection.

now matnr table will store all these values.

Regards,

kumar