<?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: Performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774334#M334115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; you are using range R_GSBER. in where clause. Please check if values in this range are exceeding 2000. I hope you have deleted duplicate entries from range.&lt;/P&gt;&lt;P&gt;If value in ranges exceeds 2000 query will strart dumping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Best option is slit the queries in 2 and use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 05:55:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-28T05:55:11Z</dc:date>
    <item>
      <title>Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774330#M334111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SE30, I found the the database performance is very poor and especially it is describing the inner join part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your ref. Pl.find the below SQL code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch Orders matching the selection criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT AUFK&lt;SUB&gt;AUFNR AUFK&lt;/SUB&gt;OBJNR AFKO&lt;SUB&gt;GSTRP AFKO&lt;/SUB&gt;GAMNG&lt;/P&gt;&lt;P&gt;         AFKO&lt;SUB&gt;STLBEZ AFKO&lt;/SUB&gt;AUFPL AFKO~RSNUM&lt;/P&gt;&lt;P&gt;          INTO TABLE ITAB_ORDERS&lt;/P&gt;&lt;P&gt;         FROM  ( AUFK INNER JOIN AFKO&lt;/P&gt;&lt;P&gt;         ON AUFK&lt;SUB&gt;AUFNR EQ AFKO&lt;/SUB&gt;AUFNR )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHERE AUFK~AUFNR IN S_AUFNR&lt;/P&gt;&lt;P&gt;        AND AUFK~AUART IN S_AUART&lt;/P&gt;&lt;P&gt;        AND AUFK~WERKS IN S_WERKS&lt;/P&gt;&lt;P&gt;        AND AFKO~GSTRP IN S_PERIOD&lt;/P&gt;&lt;P&gt;        AND AFKO~STLBEZ IN S_MATNR&lt;/P&gt;&lt;P&gt;        AND AFKO~FEVOR IN S_FEVOR&lt;/P&gt;&lt;P&gt;        AND AUFK~GSBER IN R_GSBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check this code and ur advice please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunachalam S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 05:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774330#M334111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T05:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774331#M334112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't pass AUFK-AUFNR select option, this query would take a long time.&lt;/P&gt;&lt;P&gt;MAke that field mandatory.&lt;/P&gt;&lt;P&gt;Also, order the where clause fields in the same order in which they appear in the respective tables.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 05:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774331#M334112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T05:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774332#M334113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;if s_aufnr[] is not initial.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT AUFK&lt;SUB&gt;AUFNR AUFK&lt;/SUB&gt;OBJNR AFKO&lt;SUB&gt;GSTRP AFKO&lt;/SUB&gt;GAMNG&lt;/P&gt;&lt;P&gt;AFKO&lt;SUB&gt;STLBEZ AFKO&lt;/SUB&gt;AUFPL AFKO~RSNUM&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB_ORDERS&lt;/P&gt;&lt;P&gt;FROM ( AUFK INNER JOIN AFKO&lt;/P&gt;&lt;P&gt;ON AUFK&lt;SUB&gt;AUFNR EQ AFKO&lt;/SUB&gt;AUFNR )&lt;/P&gt;&lt;P&gt;WHERE AUFK~AUFNR IN S_AUFNR&lt;/P&gt;&lt;P&gt;AND AUFK~AUART IN S_AUART&lt;/P&gt;&lt;P&gt;AND AUFK~WERKS IN S_WERKS&lt;/P&gt;&lt;P&gt;AND AUFK~GSBER IN R_GSBER&lt;/P&gt;&lt;P&gt;AND AFKO~GSTRP IN S_PERIOD&lt;/P&gt;&lt;P&gt;AND AFKO~STLBEZ IN S_MATNR&lt;/P&gt;&lt;P&gt;AND AFKO~FEVOR IN S_FEVOR.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 05:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774332#M334113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T05:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774333#M334114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Avoid using Joins.&lt;/P&gt;&lt;P&gt;Replace ur query with FOR ALL ENTRIES variant.&lt;/P&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT AUFNR&lt;/P&gt;&lt;P&gt;       OBJNR&lt;/P&gt;&lt;P&gt;FROM AUFK INTO TABLE ITAB_AUFK &lt;/P&gt;&lt;P&gt;WHERE AUFNR IN S_AUFNR AND&lt;/P&gt;&lt;P&gt;      WERKS IN S_WERKS AND&lt;/P&gt;&lt;P&gt;      GSBER IN R_GSBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ITAB_AUFK IS INITIAL.&lt;/P&gt;&lt;P&gt; SELECT AUFNR&lt;/P&gt;&lt;P&gt;        GSTRP&lt;/P&gt;&lt;P&gt;        GAMNG&lt;/P&gt;&lt;P&gt;        STLBEZ&lt;/P&gt;&lt;P&gt;        AUFPL&lt;/P&gt;&lt;P&gt;        RSNUM&lt;/P&gt;&lt;P&gt; FROM AFKO INTO TABLE ITAB_AFKO&lt;/P&gt;&lt;P&gt; FOR ALL ENTRIES IN ITAB_AUFK&lt;/P&gt;&lt;P&gt; WHERE AUFNR EQ ITAB_AFKO-AUFNR AND&lt;/P&gt;&lt;P&gt;       GSTRP IN S_PERIOD AND&lt;/P&gt;&lt;P&gt;       STLBEZ IN S_MATNR AND&lt;/P&gt;&lt;P&gt;       FEVOR IN S_FEVOR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 05:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774333#M334114</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-12-28T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774334#M334115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; you are using range R_GSBER. in where clause. Please check if values in this range are exceeding 2000. I hope you have deleted duplicate entries from range.&lt;/P&gt;&lt;P&gt;If value in ranges exceeds 2000 query will strart dumping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Best option is slit the queries in 2 and use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 05:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774334#M334115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T05:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774335#M334116</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;From what I know, there are 3 ways for selecting:&lt;/P&gt;&lt;P&gt;1) joins&lt;/P&gt;&lt;P&gt;2) for all entries&lt;/P&gt;&lt;P&gt;3) subquery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on situation and in diff cases.. diff methods result in diff performance..&lt;/P&gt;&lt;P&gt;so which method... I think based on experience and trial and error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1774335#M334116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:25:33Z</dc:date>
    </item>
  </channel>
</rss>

