<?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/3303260#M790994</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;if u r selecting from data base then use&lt;/P&gt;&lt;P&gt;select * from database into internal_table where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;If ur requirement is for loop use follwing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u vl get the values in wa of s_matnr.&lt;/P&gt;&lt;P&gt;Its structure is as follows..Useit as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_matnr-low.&lt;/P&gt;&lt;P&gt;s_matnr-high &lt;/P&gt;&lt;P&gt;s_matnr-sign&lt;/P&gt;&lt;P&gt;s_matnr-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 07:00:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T07:00:55Z</dc:date>
    <item>
      <title>select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303255#M790989</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 am using select-option for material number. i want to use those material number 1 by 1 to fetch data. how to use loop for select-option (s_matnr).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i use ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wat variable inside i can use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303255#M790989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303256#M790990</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;  Yes, you can use LOOP AT S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  get the values based on LOW &amp;amp; HIGH .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT s_matnr.&lt;/P&gt;&lt;P&gt;  s_matnr-low ....&lt;/P&gt;&lt;P&gt;  s_matnr-high ....&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You must be carefull about option value of select-options.&lt;/P&gt;&lt;P&gt;It can be 'LE', 'BT' etc.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_matnr-options ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303256#M790990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:54: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/3303257#M790991</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;To fetch data, you can directly use the select option in the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. select (field list) from mara into table i_matnr where matnr &lt;STRONG&gt;IN S_MATNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303257#M790991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303258#M790992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sarika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to fetch the data from table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select .........&lt;/P&gt;&lt;P&gt;from xxxxtabel&lt;/P&gt;&lt;P&gt;into table i_itab&lt;/P&gt;&lt;P&gt;where matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR for other purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr .  &lt;/P&gt;&lt;P&gt;   write your fetch logic&lt;/P&gt;&lt;P&gt;  with  s_matnr-low &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_matnr-low = s_matnr-low + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF s_matnr-low  GT s_matnr-high.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     EXIT.&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;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303258#M790992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303259#M790993</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;If you wnt to use S_MATNR values to fetch data from other database tables, use this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;fields list&amp;gt; from &amp;lt;DATABASE_TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;into table itab &lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;MATNR in S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above statement will fetch all data fields which u want based on what u give in S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points,&lt;/P&gt;&lt;P&gt;Shakir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303259#M790993</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-01-24T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303260#M790994</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;if u r selecting from data base then use&lt;/P&gt;&lt;P&gt;select * from database into internal_table where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;If ur requirement is for loop use follwing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u vl get the values in wa of s_matnr.&lt;/P&gt;&lt;P&gt;Its structure is as follows..Useit as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_matnr-low.&lt;/P&gt;&lt;P&gt;s_matnr-high &lt;/P&gt;&lt;P&gt;s_matnr-sign&lt;/P&gt;&lt;P&gt;s_matnr-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303260#M790994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303261#M790995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using only single values in your select option, you can use s_matnr-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if s_matnr-high is initial and s_matnr-sign = 'I' and s_matnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303261#M790995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303262#M790996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you have to take all the material numbers which are there in the internal table (from WBS ) based on your select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;codeIT_MAT&lt;/P&gt;&lt;P&gt;4000&lt;/P&gt;&lt;P&gt;4001&lt;/P&gt;&lt;P&gt;4004&lt;/P&gt;&lt;P&gt;4008&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;8899[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this internal table for selection with FOR ALL ENTRIES IN IT_MAT addition in select.&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;kindly reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/3303262#M790996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:27:45Z</dc:date>
    </item>
  </channel>
</rss>

