<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474885#M835235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Hi,

Pasting your code esp. in routines JAN_DATA &amp;amp; FEB_DATA can get you better solutions in handling your requirement. Maybe the select-option parameter can be used directly in data extraction instead of looping on SELECT-OPTION.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 05:32:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T05:32:54Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474879#M835229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Gurus ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the following code i m not able 2 get range for the full year .plz help me .&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :   MONTH2  FOR    Ztable-month2  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at month2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF MONTH2-low   eq '1' .&lt;/P&gt;&lt;P&gt;  PERFORM JAN_DATA .&lt;/P&gt;&lt;P&gt;  ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF MONTH2-low eq '2'.&lt;/P&gt;&lt;P&gt;  PERFORM FEB_DATA  .&lt;/P&gt;&lt;P&gt;  ENDIF .&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474879#M835229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474880#M835230</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;Can u explain ur requirement clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kavitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474880#M835230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474881#M835231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide ur requirement clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474881#M835231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474882#M835232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get your answer when you debug the program and check how MONTH2 is populated. It depends on how you will the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be aware that a select option like a range has the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN, OPTION, LOW and HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, say you put from 1 to 12 in your select option on the selection screen, then only one record will be created in the MONTH2 range table as follows:&lt;/P&gt;&lt;P&gt;SIGN         OPTION        LOW           HIGH&lt;/P&gt;&lt;P&gt;I                BT                1                12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, when you loop through MONTH2, there will be only one value for LOW i.e. 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to instead do the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0, month2 type ztable-month2, end of itab.
SELECT month2 FROM ztable INTO TABLE itab
WHERE month2 IN month2.
IF sy-subrc EQ 0.
 LOOP AT itab.
  CASE itab-month2.
  WHEN '1'. 
  PERFORM JAN_DATA .
  WHEN '2'.
  PERFORM FEB_DATA .
  ENDCASE.
 ENDLOOP.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474882#M835232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474883#M835233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks .&lt;/P&gt;&lt;P&gt;in the selection screen i have to write each month individually , but i want to give range e.g zmonth 1 to 12.&lt;/P&gt;&lt;P&gt;than it should display for 12 month , but it is showing for jan month  ie not takinh high value .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474883#M835233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474884#M835234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is month2 your Internal Table. Here you have specified as the name of Select Options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls you have to loop it on internal table and then check tht month2-low is equal to your condition or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474884#M835234</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-02-28T05:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474885#M835235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Hi,

Pasting your code esp. in routines JAN_DATA &amp;amp; FEB_DATA can get you better solutions in handling your requirement. Maybe the select-option parameter can be used directly in data extraction instead of looping on SELECT-OPTION.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 05:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3474885#M835235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T05:32:54Z</dc:date>
    </item>
  </channel>
</rss>

