2005 Jan 11 9:59 AM
Suppose there is a selection option s_matnr for material .And suppose User enters materials 1,2,5 and 9.
If i loop at the internal table for that selection -field. I will get s_matnr-low as 1. If the user gives a range from 1 to 9. S_matnr-high will be 9. But if he inputs only some selected materials instead of a range , I dont know how to display the selected materials. Hope u understood my requirement.
Thanking u in advance..
Shankar
2005 Jan 11 10:06 AM
Hello Shankar,
If I have understood your requirement correctly, then it is fairly simple to meet it.
Consider the following code.
tables mara.
select-options s_matnr for mara-matnr.
start-of-selection.
loop at s_matnr.
write / s_matnr-low.
endloop.
Is this what you wanted?
Regards,
Anand Mandalika.
Suppose there is a selection option s_matnr for material .And suppose User enters materials 1,2,5 and 9.
If i loop at the internal table for that selection -field. I will get s_matnr-low as 1. If the user gives a range from 1 to 9. S_matnr-high will be 9. But if he inputs only some selected materials instead of a range , I dont know how to display the selected materials. Hope u understood my requirement.
Thanking u in advance..
Shankar
2005 Jan 11 10:06 AM
Hello Shankar,
If I have understood your requirement correctly, then it is fairly simple to meet it.
Consider the following code.
tables mara.
select-options s_matnr for mara-matnr.
start-of-selection.
loop at s_matnr.
write / s_matnr-low.
endloop.
Is this what you wanted?
Regards,
Anand Mandalika.