‎2010 Sep 15 6:35 PM
Hi ,
I have declared a select option as under:
select-options: s_matnr type matnr.
now i want to loop at the data from the select option & do some operation , how can i take each data into an internal table, with all SIGN,OPTIONS,LOW & HIGH value.
Regards,
Mudit
‎2010 Sep 15 7:27 PM
first of all, you select-option should be for a table-field, like mara-matnr.
try:
tables: mara
...
select-option: s_matnr for mara-matnr.
...
select matnr from mara into table it_matnr "where defined as a table with one field matnr....
where matnr in s_matnr.this wil give you a table of materials that matched your selection input.
‎2010 Sep 16 5:23 PM
Hi,
Thanks for the solution, but the internal table in which i m populating the data will have only the value not the sign and option field
how can i populate that too,
Regards,
Mudit
‎2010 Sep 16 5:28 PM
Use f1 help on Select-option and then Ranges , you will get the answer.
‎2010 Sep 16 5:53 PM
Hi,
you need to just loop at to your select option field it will have all sign option low and high.
parameters : s_vbeln for vbak-vbeln.
loop at s_vbeln.
write : / s_vbeln-sign, s_vbeln-option,s_vbeln-low,s_vbeln-high
enloop.
Thanks,
Anmol.
‎2010 Sep 15 8:00 PM
Select option itself is like internal table ,you can perform some logic for select as below,
Loop at <sel_opt>.
.
.
.
here you can write you logic.
.
.
endloop.
‎2010 Sep 16 6:14 PM
Moderator message - Please do not ask or answer basic questions - thread locked Rob