<?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/3942257#M942964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using select-options in the selection-screen you will ARROW mark click on that and enter for what are the material types you want the SELECT statement to be executed and press EXECUTE button?  Then it will select that particular values only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2008 09:34:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-05T09:34:17Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942252#M942959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have put some values in the select option field material type s_mtart YTRA,YFGC and some other values and i want my selction to be restricted to only this 5 material types&lt;/P&gt;&lt;P&gt;and i am using this code&lt;/P&gt;&lt;P&gt;SELECT matnr mtart FROM mara&lt;/P&gt;&lt;P&gt;           INTO TABLE itab_mara&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN itab_receptions&lt;/P&gt;&lt;P&gt;           WHERE matnr = itab_receptions-matnr&lt;/P&gt;&lt;P&gt;            AND  mtart IN s_mtart.&lt;/P&gt;&lt;P&gt;but it is reading all the records&lt;/P&gt;&lt;P&gt;can u tell me why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942252#M942959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:39: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/3942253#M942960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Instead of using select options, try using Ranges. You could also use an intenal table in which you collect all these values of material type and then fire the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942253#M942960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942254#M942961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Before writing the select querry please check whether the internal table &lt;/P&gt;&lt;P&gt;itab_receptions is filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if itab_receptions is not initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr mtart FROM mara&lt;/P&gt;&lt;P&gt;INTO TABLE itab_mara&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itab_receptions&lt;/P&gt;&lt;P&gt;WHERE matnr = itab_receptions-matnr&lt;/P&gt;&lt;P&gt;AND mtart IN s_mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 08:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942254#M942961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942255#M942962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*DATA: BEGIN OF fin_guid OCCURS 10,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     sign(1) VALUE 'I',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     option(2) VALUE 'EQ', here u can NE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     low TYPE matnr ,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     high TYPE matnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    END OF fin_guid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the value in to this internal table.......&lt;/P&gt;&lt;P&gt;and give this table in where condition......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select....where matnr in fin_guid--&amp;gt; like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will help u...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward IF.&lt;/P&gt;&lt;P&gt;&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;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942255#M942962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T09:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942256#M942963</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;
Hi ,

You need to remember two things here.
1.  
If your s_mtart is not given anything on the selection screen, It can get the data for all material type.
so check like this.
  &lt;PRE&gt;&lt;CODE&gt;IF s_mtart IS NOT INITIAL.
    SELECT matnr mtart
      FROM mara
      INTO TABLE itab_mara
      FOR ALL ENTRIES IN itab_receptions
     WHERE matnr = itab_receptions-matnr
       AND mtart IN s_mtart.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
2.
You have to check whether your FOR ALL ENTRIES table has data or not. Otherwise it gives dump.
&lt;PRE&gt;&lt;CODE&gt;
  IF itab_receptions[] IS NOT INITIAL.
    IF s_mtart IS NOT INITIAL.
      SELECT matnr mtart
        FROM mara
        INTO TABLE itab_mara
        FOR ALL ENTRIES IN itab_receptions
       WHERE matnr = itab_receptions-matnr
         AND mtart IN s_mtart.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps u to understand.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942256#M942963</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-06-05T09:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942257#M942964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using select-options in the selection-screen you will ARROW mark click on that and enter for what are the material types you want the SELECT statement to be executed and press EXECUTE button?  Then it will select that particular values only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942257#M942964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T09:34: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/3942258#M942965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check intiality for the internal table above before moving on to for all entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 09:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3942258#M942965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T09:52:24Z</dc:date>
    </item>
  </channel>
</rss>

