<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: read select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126771#M1364698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I can't find S_SELECTIONSCREEN_READ in se37. is this not a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 15:24:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-27T15:24:10Z</dc:date>
    <item>
      <title>read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126769#M1364696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126769#M1364696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126770#M1364697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check FM: S_SELECTIONSCREEN_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HImanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126770#M1364697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126771#M1364698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I can't find S_SELECTIONSCREEN_READ in se37. is this not a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126771#M1364698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126772#M1364699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function RS_REFRESH_FROM_SELECTOPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass SY-CPROG to it and get the table with the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126772#M1364699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126773#M1364700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with functions RS_REFRESH_FROM_SELECTOPTIONS I only get the name of the select-options but not the values in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126773#M1364700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126774#M1364701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be &lt;STRONG&gt;R&lt;/STRONG&gt; S_SELECTIONSCREEN_READ. Can be used to read data from dynpros, but I think the FM I told you is better for what you want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126774#M1364701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126775#M1364702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested RS_REFRESH_FROM_SELECTOPTIONS and it worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ztestefh11.

TABLES lips.

PARAMETERS: p_lgort TYPE lips-lgort.
SELECT-OPTIONS: s_werks FOR lips-werks.


DATA: lt_rsparams TYPE TABLE OF rsparams WITH HEADER LINE.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
  EXPORTING
    curr_report     = sy-cprog
  TABLES
    selection_table = lt_rsparams
  EXCEPTIONS
    not_found       = 1
    no_report       = 2
    OTHERS          = 3.

IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.


BREAK-POINT. "Check contents of lt_rsparams here
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values I passed are there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;
    1  SELNAME  KIND SIGN OPTION LOW                    
    1 P_LGORT |P   |    |      |BA01               
    2 S_WERKS |S   |I   |EQ    |DS01               
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course if you test it on SE37 it will just give you the parameters with no values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sérgio Oliveira on Aug 27, 2009 5:36 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126775#M1364702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126776#M1364703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry sergio I think I can't explain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is following, when I have the selection like for example storage locations 10 - 30 without 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get 10 and 30, which I can use for the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are so many possibilities which the user can select, like eq ne only and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126776#M1364703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126777#M1364704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; That was from ECC6 try with RS_READ_SEL_OPTIONS if you are on a lower version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126777#M1364704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T15:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: read select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126778#M1364705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On that 10 - 30 case, RS_REFRESH_FROM_SELECTOPTIONS would give you the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;
S_LGORT |S   |I   |EQ    |10                                            |
S_LGORT |S   |I   |EQ    |30                                            |
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, of course you could have E, NE, BT etc&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;
S_LGORT |S   |I   |BT    |10    |30
S_LGORT |S   |E   |EQ    |20   |            
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 16:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-select-options/m-p/6126778#M1364705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T16:46:34Z</dc:date>
    </item>
  </channel>
</rss>

