<?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 afru slow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162075#M1370263</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;Thats because you are not using the primary keys &lt;STRONG&gt;RUECK&lt;/STRONG&gt; and &lt;STRONG&gt;RMZHL&lt;/STRONG&gt; in the where condition of the select which is affecting the performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible to use the primary keys, then try creating a secondary index on the field pernr and isdd. That will considerably increase the performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use the condition if not  t_pa0000[] is initial before the select query since you are using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2009 04:33:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-01T04:33:48Z</dc:date>
    <item>
      <title>Select afru slow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162074#M1370262</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'm doing the following SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT  pernr&lt;/P&gt;&lt;P&gt;          aufnr&lt;/P&gt;&lt;P&gt;          ismne&lt;/P&gt;&lt;P&gt;          ismnw&lt;/P&gt;&lt;P&gt;          meinh&lt;/P&gt;&lt;P&gt;          budat&lt;/P&gt;&lt;P&gt;          catsbelnr&lt;/P&gt;&lt;P&gt;          isdd&lt;/P&gt;&lt;P&gt;          FROM afru&lt;/P&gt;&lt;P&gt;          INTO TABLE t_afru&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN t_pa0000&lt;/P&gt;&lt;P&gt;          WHERE pernr = t_pa0000-pernr AND&lt;/P&gt;&lt;P&gt;                isdd BETWEEN v_ct_date_fr AND v_ct_date_to&lt;/P&gt;&lt;P&gt;            AND catsbelnr EQ ''&lt;/P&gt;&lt;P&gt;            AND stokz     NE 'X'&lt;/P&gt;&lt;P&gt;            AND stzhl     EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This taking too long, how could it improve performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162074#M1370262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T18:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select afru slow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162075#M1370263</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;Thats because you are not using the primary keys &lt;STRONG&gt;RUECK&lt;/STRONG&gt; and &lt;STRONG&gt;RMZHL&lt;/STRONG&gt; in the where condition of the select which is affecting the performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible to use the primary keys, then try creating a secondary index on the field pernr and isdd. That will considerably increase the performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also use the condition if not  t_pa0000[] is initial before the select query since you are using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 04:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162075#M1370263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T04:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select afru slow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162076#M1370264</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;Do you know any way to get this information and RUECK RMZHL to improve performance? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I will not be able to insert indec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rafael Fassoli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 10:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-afru-slow/m-p/6162076#M1370264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T10:56:00Z</dc:date>
    </item>
  </channel>
</rss>

