‎2007 Mar 15 4:38 AM
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?
‎2007 Mar 15 4:42 AM
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.
‎2007 Mar 15 4:42 AM
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.
‎2007 Mar 15 4:43 AM
Vinod,
by default all the values are stored in the select-options table.
switch on the debugging and Check it once.
Regards,
Sujatha.
‎2007 Mar 15 4:44 AM
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
‎2007 Mar 15 4:45 AM
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
‎2007 Mar 15 4:47 AM
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