<?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/3050626#M722233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Naimesh,&lt;/P&gt;&lt;P&gt;&amp;gt; will this work even if I provide the high value of&lt;/P&gt;&lt;P&gt;&amp;gt; select-options as null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By null you mean empty?  If you only type in the low value, by default it will be interpreted as an exact equals (I EQ).  If you try to force it to be a range (I BT) you will get an error because low would be greater than high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're manipulating them diectly you may get odd results, so be careful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 15:38:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T15:38:21Z</dc:date>
    <item>
      <title>Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050619#M722226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have used a select-options in my program. I want to fill an internal table with all teh corresponding values that qualify from the select-options.&lt;/P&gt;&lt;P&gt;lets say I have a select-options for field id, then I want an internal table for all ids that are provided as input in select options&lt;/P&gt;&lt;P&gt;for eg id1 to id4 then I want an itab with values id1 id2 id3 and id4&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;HM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 14:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050619#M722226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050620#M722227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to select the data from the master table of the ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for MATNR we can do like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select matnr
from mara    " &amp;lt;&amp;lt; your master reocrd for ID
into table it_mara     " &amp;lt;&amp;lt; your internal table
whre matnr in s_matnr . " &amp;lt;&amp;lt; your select option&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 14:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050620#M722227</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050621#M722228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;very simple,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : marc.
DATA : BEGIN OF itab OCCURS 0,
werks LIKE marc-werks,
END OF itab.
SELECT-OPTIONS: werks FOR marc-werks.

SELECT werks INTO CORRESPONDING FIELDS OF TABLE itab FROM 
marc WHERE werks IN s_werks.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 14:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050621#M722228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T14:55: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/3050622#M722229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;will this work even if I provide the high value of select-options as null?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 14:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050622#M722229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050623#M722230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then it fills only one value in itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 15:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050623#M722230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T15:04: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/3050624#M722231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must use entrie Select-options.. without specifing low or high. Because you can put mulitple values on the selection screen in the Select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a problem in finding out the master table, please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 15:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050624#M722231</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050625#M722232</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;You can use the below code to fill the values of select options into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : bsis.

data : count type i.

data : begin of itab occurs 0,
            buzei like bsis-buzei,
         end of itab.

select-OPTIONS : num for bsis-buzei.


start-of-SELECTION.
count = 1.
do num-high times.

if count = 1.
  count = num-low.
  move : count to itab-buzei.
  append itab.
  clear itab.
  count = count + 1.
else.
  move : count to itab-buzei.
  append itab.
  clear itab.
  count = count + 1.
endif.

if count GT num-high.
 exit.
endif.

enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 15:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050625#M722232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T15:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050626#M722233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Naimesh,&lt;/P&gt;&lt;P&gt;&amp;gt; will this work even if I provide the high value of&lt;/P&gt;&lt;P&gt;&amp;gt; select-options as null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By null you mean empty?  If you only type in the low value, by default it will be interpreted as an exact equals (I EQ).  If you try to force it to be a range (I BT) you will get an error because low would be greater than high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're manipulating them diectly you may get odd results, so be careful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 15:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3050626#M722233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T15:38:21Z</dc:date>
    </item>
  </channel>
</rss>

