<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382936#M529153</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; Split the select statement and use FOR ALL ENTRIES statements instead of using joins to improve performance. Check whether the Internal table that you are making use in your select statement is empty or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; if not itab[] is initial.

 
 endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 09:45:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T09:45:40Z</dc:date>
    <item>
      <title>SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382934#M529151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have one select stm which comprises many join stms&lt;/P&gt;&lt;P&gt;due to this performances is degrading .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to split this .plz tell me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; select vlpma~matnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~werks&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~lfimg&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~umvkz&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~umvkn&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~vbeln&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~posnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~meins&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~vrkme&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lips~vgbel&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        vbap~kzwi2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        vbap~klmeng&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        kna1~name1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   from vlpma&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     join vbuk&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       on vbuk&lt;SUB&gt;vbeln = vlpma&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     join lips&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       on lips&lt;SUB&gt;vbeln = vlpma&lt;/SUB&gt;vbeln and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          lips&lt;SUB&gt;posnr = vlpma&lt;/SUB&gt;posnr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     join kna1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       on vlpma&lt;SUB&gt;kunag = kna1&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     join vbap&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       on lips&lt;SUB&gt;vgbel = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      and lips&lt;SUB&gt;vgpos = vbap&lt;/SUB&gt;posnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   into table it_assigned&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     for all entries in i_marc&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       where vlpma~matnr = i_marc-matnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         and vlpma~lfart in s_lfart&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         and vbuk~wbstk &amp;lt;&amp;gt; 'C'&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        AND lips~werks = i_marc-werks .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         and lips~werks in s_werks&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         and lips~bwart &amp;lt;&amp;gt; '641'.   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;lokesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 09:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382934#M529151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382935#M529152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Go for FOR ALL ENTRIES statement instaed of INNER JOINS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues,&lt;/P&gt;&lt;P&gt;Reward with points if helpful ,&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;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 09:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382935#M529152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382936#M529153</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; Split the select statement and use FOR ALL ENTRIES statements instead of using joins to improve performance. Check whether the Internal table that you are making use in your select statement is empty or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; if not itab[] is initial.

 
 endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 09:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382936#M529153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382937#M529154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please give me the total answer.&lt;/P&gt;&lt;P&gt;i dont know how to use for all entries .&lt;/P&gt;&lt;P&gt;please give the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 09:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382937#M529154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382938#M529155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I guess u will have to create separate internal tables and den fetch the header level data initially..den using FOR ALL ENTRIES u can fetch the complete data. Refer to Help for usage of FOR ALL ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nirav goradia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 10:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2382938#M529155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T10:02:40Z</dc:date>
    </item>
  </channel>
</rss>

