<?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/1415008#M199692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rama Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  g    TYPE i,&lt;/P&gt;&lt;P&gt;        temp TYPE i value 0.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_x FOR g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_x-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  s_x-option = 'BT'.&lt;/P&gt;&lt;P&gt;  s_x-low    =  '1'.&lt;/P&gt;&lt;P&gt;  s_x-high   =  '10'.&lt;/P&gt;&lt;P&gt;  append s_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;do s_x-high times.&lt;/P&gt;&lt;P&gt; temp = temp + 1.&lt;/P&gt;&lt;P&gt; write : temp.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 09:06:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-14T09:06:12Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414997#M199681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai check this,&lt;/P&gt;&lt;P&gt;data : g type i.&lt;/P&gt;&lt;P&gt;select-options: s_x type g.&lt;/P&gt;&lt;P&gt;Question is:&lt;/P&gt;&lt;P&gt;if i give s_x-low = 1 and s_x-high = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need output : 1 2 3 4 5 6 7 8 9 10...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any one help me out pls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you,,&lt;/P&gt;&lt;P&gt;ramu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414997#M199681</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-07-11T04:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414998#M199682</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;it should be like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : g type i.&lt;/P&gt;&lt;P&gt;select-options: s_x for g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: x(2), y(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = s_x-low .&lt;/P&gt;&lt;P&gt;y = s_x-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do y times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x &amp;lt;= y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = x + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414998#M199682</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-07-11T04:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414999#M199683</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;I don't think the logic is valid. How do you know the interval is only 1 and NOT less than 1 or greater than. While using select options its only for mentioning the Min and Max value but not the interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And more over, usually you don't use SELECT-OPTIONS for a generic thing like this. It has to be referred to a field in the table. Then when you speicfy the min and max value, you can fetch all the values from the table that fall with in that range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1414999#M199683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415000#M199684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do  s_x-high time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415000#M199684</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-11T04:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415001#M199685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : g type i.&lt;/P&gt;&lt;P&gt;select-options: s_x type g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot write 'type g' with select-options you have to take 'for' with the select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your requirement copy and paste this piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;tables : SER03.&lt;/P&gt;&lt;P&gt;data : g type i.&lt;/P&gt;&lt;P&gt;select-options: s_x for ser03-ANZSN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_x-low = '1'.&lt;/P&gt;&lt;P&gt;s_x-high = '10'.&lt;/P&gt;&lt;P&gt;append s_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do s_x-high times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: mukesh kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415001#M199685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T04:44: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/1415002#M199686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose if u give some range can be 20 to 30 or 10 to 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the sequence of numbers like 10 11....20&lt;/P&gt;&lt;P&gt;                                    20 21,...30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415002#M199686</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-07-11T04:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415003#M199687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest.

DATA :  g    TYPE i,
        temp TYPE i.
SELECT-OPTIONS : s_x FOR g.


START-OF-SELECTION.

  s_x-sign   = 'I'.
  s_x-option = 'BT'.
  s_x-low    =  '1'.
  s_x-high   =  '10'.


  temp = s_x-high - s_x-low.
  temp = temp + 1.
  DO temp TIMES.


    WRITE / sy-index.

  ENDDO.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415003#M199687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T04:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415004#M199688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy and paste this code and enter your range on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;tables : SER03.&lt;/P&gt;&lt;P&gt;data : g type i,&lt;/P&gt;&lt;P&gt;       h type i.&lt;/P&gt;&lt;P&gt;select-options: s_x for ser03-ANZSN.&lt;/P&gt;&lt;P&gt;g = s_x-high - s_x-low.&lt;/P&gt;&lt;P&gt;h = g + 1.&lt;/P&gt;&lt;P&gt;do h times.&lt;/P&gt;&lt;P&gt;write:/ s_x-low.&lt;/P&gt;&lt;P&gt;s_x-low = s_x-low + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 04:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415004#M199688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T04:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415005#M199689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is Dynamic. You can specify any range in your SELECT-OPTIONS (10-20, it will give 10 11 12 13..20).&lt;/P&gt;&lt;P&gt;If nothing is specified in SELECT-OPTIONS it will take the default value (1-10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zztest.

DATA :  g    TYPE i,
        temp TYPE i,
        var  TYPE i.
SELECT-OPTIONS : s_x FOR g.


START-OF-SELECTION.

  s_x-sign   = 'I'.
  s_x-option = 'BT'.

  IF  s_x-low IS INITIAL.
    s_x-low    =  '1'.
  ENDIF.

  IF  s_x-high  IS INITIAL.
    s_x-high   =  '10'.
  ENDIF.
  s_x-low = s_x-low - 1.
  temp = s_x-high - s_x-low.

  DO temp TIMES.

    var = sy-index + s_x-low.
    WRITE / VAR.
    CLEAR var.
  ENDDO.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 05:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415005#M199689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T05:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415006#M199690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;Can check out the following code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : g type i,&lt;/P&gt;&lt;P&gt;       range type i,&lt;/P&gt;&lt;P&gt;       num type i.&lt;/P&gt;&lt;P&gt;select-options: s_x for G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGE = S_X-high - s_x-low.&lt;/P&gt;&lt;P&gt;range = range + 1.&lt;/P&gt;&lt;P&gt;num = s_x-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do range times.&lt;/P&gt;&lt;P&gt;write:/ num.&lt;/P&gt;&lt;P&gt;num = num + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 05:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415006#M199690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T05:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415007#M199691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai ramu thnaks veru much &lt;/P&gt;&lt;P&gt;i got the correct out put &lt;/P&gt;&lt;P&gt;avu nu ramu i want to watch any reply(to me) from others how i can watch ...&lt;/P&gt;&lt;P&gt;i got one document that is to my mail so i want to check in the sdn forums how i can &lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;here there is so inbox(like yahoo)how i can check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415007#M199691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415008#M199692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rama Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  g    TYPE i,&lt;/P&gt;&lt;P&gt;        temp TYPE i value 0.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_x FOR g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_x-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  s_x-option = 'BT'.&lt;/P&gt;&lt;P&gt;  s_x-low    =  '1'.&lt;/P&gt;&lt;P&gt;  s_x-high   =  '10'.&lt;/P&gt;&lt;P&gt;  append s_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;do s_x-high times.&lt;/P&gt;&lt;P&gt; temp = temp + 1.&lt;/P&gt;&lt;P&gt; write : temp.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1415008#M199692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:06:12Z</dc:date>
    </item>
  </channel>
</rss>

