<?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: select-options values display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205457#M1005055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this....do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'PRINT_SELECTIONS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          RNAME     = SY-CPROG&lt;/P&gt;&lt;P&gt;          RVARIANTE = SY-SLSET&lt;/P&gt;&lt;P&gt;          MODE      = 'TABLE'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          INFOTAB   = I_INFO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2008 08:03:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-24T08:03:20Z</dc:date>
    <item>
      <title>select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205454#M1005052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have three select-options in a selection-screen like &lt;/P&gt;&lt;P&gt;s_vbeln for vbak-vbeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the values entered in the select-options of the selection-screen on the report. &lt;/P&gt;&lt;P&gt;eg!..&lt;/P&gt;&lt;P&gt;If user enters the multiple values in the select-options, it should show all the multiple values .&lt;/P&gt;&lt;P&gt;If the user enter only the ranges ("From and To"), it should display only the ranges .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 07:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205454#M1005052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T07:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205455#M1005053</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;This has been posted in the following thread,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="976592"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A loop statement for the select-option would do the job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 07:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205455#M1005053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T07:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205456#M1005054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM : PRINT_SELECTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : begin of i_varinfo occurs 0,&lt;/P&gt;&lt;P&gt;            flag       type c,&lt;/P&gt;&lt;P&gt;            olength    type x,&lt;/P&gt;&lt;P&gt;            line       like raldb-infoline.&lt;/P&gt;&lt;P&gt;  data : end   of i_varinfo               .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'PRINT_SELECTIONS'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      mode      = ' '&lt;/P&gt;&lt;P&gt;      rname     = sy-cprog&lt;/P&gt;&lt;P&gt;      rvariante = sy-slset&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      infotab   = i_varinfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_varinfo.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write   each selection variable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    write: / i_varinfo-line.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 08:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205456#M1005054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T08:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205457#M1005055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this....do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'PRINT_SELECTIONS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          RNAME     = SY-CPROG&lt;/P&gt;&lt;P&gt;          RVARIANTE = SY-SLSET&lt;/P&gt;&lt;P&gt;          MODE      = 'TABLE'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          INFOTAB   = I_INFO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 08:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205457#M1005055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205458#M1005056</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actualy all the select option behave as internal and stores the value entered in them. So here your select options s_vbeln is  an internal tables. &lt;/P&gt;&lt;P&gt;To display the value Just use LOOP AT Write statement to print values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT z_sdn.
TABLES:
  vbak.
 
SELECT-OPTIONS:
  s_vbeln for vbak-vbeln,
  
 
 loop at s_vbeln.
WRITE:
  / s_vbeln-low,
    s_vbeln-high.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By the way you are repeating the same question in the same community and you also heve more than 10 post unresolved. Both are against the rule of engagement. Moderator may lock the thread. So please avoid them.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 08:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205458#M1005056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T08:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: select-options values display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205459#M1005057</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 out this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  YH1146_SDN1.

TABLES sflight.
DATA:
  fs_carrid TYPE scarr-carrid.
DATA:
  t_carr LIKE TABLE OF fs_carrid.
SELECT-OPTIONS:
  s_carrid FOR sflight-carrid.



START-OF-SELECTION.

  IF s_carrid-high IS INITIAL.
    WRITE: s_carrid-low.
  ELSE.
    SELECT carrid
      FROM sflight
      INTO TABLE t_carr
     WHERE carrid IN s_carrid.
    LOOP AT t_carr INTO fs_carrid.
     WRITE: / fs_carrid.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 08:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-values-display/m-p/4205459#M1005057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T08:16:13Z</dc:date>
    </item>
  </channel>
</rss>

