Skip to Content
author's profile photo Former Member
Former Member

read select options

Hi,

is there any function which I can use to get the values from the select options ? I nedd the values to fill my header of the alv.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2009 at 03:21 PM

    Hi,

    Check FM: S_SELECTIONSCREEN_READ

    Regards,

    HImanshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2009 at 03:25 PM

    Function RS_REFRESH_FROM_SELECTOPTIONS

    Pass SY-CPROG to it and get the table with the parameters.

    Regards,

    Sergio

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      On that 10 - 30 case, RS_REFRESH_FROM_SELECTOPTIONS would give you the following:

      S_LGORT |S |I |EQ |10 | S_LGORT |S |I |EQ |30 |

      Now, of course you could have E, NE, BT etc

      S_LGORT |S |I |BT |10 |30 S_LGORT |S |E |EQ |20 |

      In that case maybe you should try to select the customizing or main master data tables of those data elements, eg: Storage locations are from table T001L. So you select the entries from that table using S_LGORT (in this case you need S_WERKS too). For both examples I mentioned, you would get only the two entries you want, 10 and 30. Then you loop on it and include the storage location codes on the text of the ALV header (and even the st. loc. description to make the user happier).

      But of course you would have to do a different select and loop for each selection-option you have, and parameters for dates, quantities and other non-db-related fields would not work like that.

      Regards,

      Sergio

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.