Skip to Content
author's profile photo
Former Member

Get the selected items from select -option.

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jan 11, 2005 at 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.

    Add comment
    10|10000 characters needed characters exceeded