Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.