<?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 statement not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897596#M1327430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do in loop than working fine. Doing select for each material. Very weired.  PLEASE GIVE SUGGESTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_bom_temp INTO k_bom_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT bdart matnr werks bdmng INTO TABLE i_resb&lt;/P&gt;&lt;P&gt;   FROM resb&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FOR ALL ENTRIES IN i_bom_temp_2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WHERE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        bdart IN r_bdart          AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        matnr = '55-24612-3'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         matnr = k_bom_2-idnrk.&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>Mon, 20 Jul 2009 22:29:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-20T22:29:37Z</dc:date>
    <item>
      <title>SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897592#M1327426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a select statement it is not working properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT i_bom_temp BY idnrk.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM i_bom_temp COMPARING idnrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bdart matnr werks bdmng INTO TABLE i_resb&lt;/P&gt;&lt;P&gt;   FROM resb&lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN i_bom_temp&lt;/P&gt;&lt;P&gt;   WHERE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        matnr = 'RSG67FG'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         matnr = i_bom_temp-idnrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESB has 24 table entries for the material. The SELECT statement featched me 2 entries. If i hard code the material it gives me all 24 entries in the material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very weired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 21:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897592#M1327426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T21:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897593#M1327427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I noticed is that it is giving only uniques combination in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897593#M1327427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897594#M1327428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to do type casting of material..means data element for two material fields seems to be different..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FM CONVERSION_EXIT_ALPHA_INPUT to convert into teaget data type of material then do the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897594#M1327428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897595#M1327429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I had the same problem ..&lt;/P&gt;&lt;P&gt;what is internal table type for matnr?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897595#M1327429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T22:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897596#M1327430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do in loop than working fine. Doing select for each material. Very weired.  PLEASE GIVE SUGGESTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_bom_temp INTO k_bom_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT bdart matnr werks bdmng INTO TABLE i_resb&lt;/P&gt;&lt;P&gt;   FROM resb&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FOR ALL ENTRIES IN i_bom_temp_2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WHERE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        bdart IN r_bdart          AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        matnr = '55-24612-3'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         matnr = k_bom_2-idnrk.&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>Mon, 20 Jul 2009 22:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897596#M1327430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T22:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897597#M1327431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;   SORT i_bom_temp BY idnrk.&lt;/P&gt;&lt;P&gt;&amp;gt;   DELETE ADJACENT DUPLICATES FROM i_bom_temp COMPARING idnrk.&lt;/P&gt;&lt;P&gt;&amp;gt;  If not i_bom_temp[] is initial. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;gt;   SELECT bdart matnr werks bdmng INTO TABLE i_resb&lt;/P&gt;&lt;P&gt;&amp;gt;    FROM resb&lt;/P&gt;&lt;P&gt;&amp;gt;    FOR ALL ENTRIES IN i_bom_temp&lt;/P&gt;&lt;P&gt;&amp;gt;    WHERE&lt;/P&gt;&lt;P&gt;&amp;gt; *         matnr = 'RSG67FG'.&lt;/P&gt;&lt;P&gt;&amp;gt;          matnr = i_bom_temp-idnrk.&lt;/P&gt;&lt;P&gt;&amp;gt; endif.&lt;/P&gt;&lt;P&gt;or try to use before coming into the select..CONVERSION_EXIT_MATN1_RANGE_I&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897597#M1327431</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-20T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897598#M1327432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joy-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whst will the FM CONVERSION_EXIT_MATN1_RANGE_I&lt;/P&gt;&lt;P&gt;do???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897598#M1327432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897599#M1327433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will convert the value into Matnr format.. say 1234 would be converted to Char18 of Matnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 22:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897599#M1327433</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-20T22:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897600#M1327434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Soved the issue on own. Thanks a lot for all your suggestions and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put all the materials in RANGE and then used RANGE in SELECT statement instead of FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 23:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897600#M1327434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T23:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897601#M1327435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm Using  range tables would be a pit on performance... so make sure its not performance critical Object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 23:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897601#M1327435</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-07-20T23:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897602#M1327436</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;Have you selected all the primary keys of 'RESB' table, if not put all the key fields in your select statement, else you will&lt;/P&gt;&lt;P&gt;get wrong result.&lt;/P&gt;&lt;P&gt;When ever using for all entries, do select all primary keys.&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 02:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-working/m-p/5897602#M1327436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T02:51:14Z</dc:date>
    </item>
  </channel>
</rss>

