<?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-OPTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764914#M643836</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;Here i am sending sample code for selecting the data by enetring selection screen values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :  S_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara into table itab where matnr = s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 12:00:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T12:00:24Z</dc:date>
    <item>
      <title>SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764910#M643832</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 want to filter the data according to the inputs given by user in SELECT-OPTION.&lt;/P&gt;&lt;P&gt;in an select quires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help to know how to get the values enter by user in screen of Select-option ...is it in LOW and HIGH of SELECT-OPTION. ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764910#M643832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764911#M643833</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;Refer to the following code:&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;         fkart&lt;/P&gt;&lt;P&gt;         fkdat&lt;/P&gt;&lt;P&gt;           FROM vbrk&lt;/P&gt;&lt;P&gt;  INTO TABLE int_vbrk&lt;/P&gt;&lt;P&gt;  WHERE vbeln IN s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764911#M643833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T11:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764912#M643834</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;u ahve to write the query like this irrespective of low or high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select *  from mara into table itab where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764912#M643834</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-11T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764913#M643835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u have given SELECT-OPTIONS: A for MARA-MATNR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in select query u can write the code as following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code no _ 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara&lt;/P&gt;&lt;P&gt;  into table IT_MARA&lt;/P&gt;&lt;P&gt;    where&lt;/P&gt;&lt;P&gt;        matnr IN A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code No 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara&lt;/P&gt;&lt;P&gt;  into table IT_MARA&lt;/P&gt;&lt;P&gt;    where&lt;/P&gt;&lt;P&gt;        matnr &amp;gt;= A-LOW or&lt;/P&gt;&lt;P&gt;        matnr &amp;lt;= A-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i think the Code No 1 is the best option and used by the all ABAPers....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 11:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764913#M643835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764914#M643836</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;Here i am sending sample code for selecting the data by enetring selection screen values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :  S_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara into table itab where matnr = s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764914#M643836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764915#M643837</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;select options internally creates a internal table for u with four field&lt;/P&gt;&lt;P&gt; 1. low &lt;/P&gt;&lt;P&gt; 2. high&lt;/P&gt;&lt;P&gt; 3. sign&lt;/P&gt;&lt;P&gt; 4. option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;select-options: s_vbeln like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select statement u can give as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbap into table itab where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means that all the values u gave in select options are considered here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the screen which u get for select options will have again four options as&lt;/P&gt;&lt;P&gt; include -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt; single value or range of values&lt;/P&gt;&lt;P&gt; exclude -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt; single value or range of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764915#M643837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764916#M643838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;validate the field that u are selecting from the selection statements like this in where clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;WHERE MATNR &amp;lt;b&amp;gt;IN&amp;lt;/b&amp;gt; S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now select statement will fetch the records for only the values given in LOW and HIGH of S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;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;Sasidhar Reddy Matli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764916#M643838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764917#M643839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_EBELN FOR EKKO-EBELN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM EKKO INTO TABLE IT_EKKO&lt;/P&gt;&lt;P&gt;  WHERE EBELN IN S_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no need to Fill the LOW and HIGH explicitly. The user input is automatically store in SELECT-OPTION field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764917#M643839</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-11T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764918#M643840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have s_matnr as your select options, all values entered on the selection screen will be considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *  into itab from mara&lt;/P&gt;&lt;P&gt;where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may know, s_matnr is a table. As described by other replies, all your inputs will be in this table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you enter one value say '100' on your screen, your table has one entry&lt;/P&gt;&lt;P&gt;s_matnr-low = '100'&lt;/P&gt;&lt;P&gt;s_matnr-high= initial&lt;/P&gt;&lt;P&gt;s_matnr-sign= 'I'&lt;/P&gt;&lt;P&gt;s_matnr-option='EQ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best thing to do is run your program or any SAP program with input, and enter values in the From and To and also ranges if there is one. Enter a bunch of values and then debug and examine the s_matnr table and see how the program has populated the table. Note the -sign and -option values. Best way to learn this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Filler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/2764918#M643840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T04:29:35Z</dc:date>
    </item>
  </channel>
</rss>

