<?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 enhancement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655834#M612401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the ABAP Trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute your report&lt;/P&gt;&lt;P&gt;2. Call SE30 &lt;/P&gt;&lt;P&gt;3. Execute your report from SE30&lt;/P&gt;&lt;P&gt;4. Analyze it, check total runtime, and ABAP and DB time&lt;/P&gt;&lt;P&gt;5. Go to hitlist, sort by net time, copy 10 Top consumer, check their coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If DB time is more than 50% in total, or if there are some database statements&lt;/P&gt;&lt;P&gt;in the Top 10, then run SQL trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute your report&lt;/P&gt;&lt;P&gt;2. Call ST05 in parallel &lt;/P&gt;&lt;P&gt;3. Execute your report &lt;/P&gt;&lt;P&gt;4. STOP St05 and Display Results&lt;/P&gt;&lt;P&gt;5. IMPORTANT !!!!!  Go to Tables -&amp;gt; Summarize by SQL Statements&lt;/P&gt;&lt;P&gt;6. =&amp;gt; List of SQL Statements, Check again Top 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ask again with more information!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;P&gt;5. Go to hitlist, sort by net time, copy 10 Top consumer, check their coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2007 15:31:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-15T15:31:25Z</dc:date>
    <item>
      <title>Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655832#M612399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My report executes very slow. What are things I can do to better improve the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 15:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655832#M612399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655833#M612400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can do a lot of things. For the start, lets try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Type and size of Table- &lt;/P&gt;&lt;P&gt;         Choose Transparent and Small Tables&lt;/P&gt;&lt;P&gt;&amp;#149;	Database Retrieval- &lt;/P&gt;&lt;P&gt;          Retrieve by Primary / Secondary index&lt;/P&gt;&lt;P&gt;&amp;#149;	Use aggregate functions in SELECT&lt;/P&gt;&lt;P&gt;&amp;#149;	Fill the ITAB in SELECT st. only&lt;/P&gt;&lt;P&gt;&amp;#149;	Use Field Groups&lt;/P&gt;&lt;P&gt;&amp;#149;	Use SELECT &amp;lt;fld&amp;gt; rather than SELECT *&lt;/P&gt;&lt;P&gt;&amp;#149;	Avoid &amp;#145;Corresponding&amp;#146; or &amp;#145;Move &lt;/P&gt;&lt;P&gt;   Corresponding&amp;#146; for bigger tables&lt;/P&gt;&lt;P&gt;&amp;#149;	Use WHERE st. with INDEX order&lt;/P&gt;&lt;P&gt;&amp;#149;	While fetching single record from the db use SELECT SINGLE *&lt;/P&gt;&lt;P&gt;&amp;#149;	Try to use &amp;#145;FOR ALL ENTRIES&amp;#146;&lt;/P&gt;&lt;P&gt;&amp;#149;	Clear the buffer in ST10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~Copied from some document that I have written by Natasha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 15:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655833#M612400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655834#M612401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the ABAP Trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute your report&lt;/P&gt;&lt;P&gt;2. Call SE30 &lt;/P&gt;&lt;P&gt;3. Execute your report from SE30&lt;/P&gt;&lt;P&gt;4. Analyze it, check total runtime, and ABAP and DB time&lt;/P&gt;&lt;P&gt;5. Go to hitlist, sort by net time, copy 10 Top consumer, check their coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If DB time is more than 50% in total, or if there are some database statements&lt;/P&gt;&lt;P&gt;in the Top 10, then run SQL trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute your report&lt;/P&gt;&lt;P&gt;2. Call ST05 in parallel &lt;/P&gt;&lt;P&gt;3. Execute your report &lt;/P&gt;&lt;P&gt;4. STOP St05 and Display Results&lt;/P&gt;&lt;P&gt;5. IMPORTANT !!!!!  Go to Tables -&amp;gt; Summarize by SQL Statements&lt;/P&gt;&lt;P&gt;6. =&amp;gt; List of SQL Statements, Check again Top 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ask again with more information!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;P&gt;5. Go to hitlist, sort by net time, copy 10 Top consumer, check their coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 15:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655834#M612401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655835#M612402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done the SQL trace and the top ten on the hit list are DB accesses. To be precise they are hits to tbl AFPO &amp;amp; QALS. I looked at the dictionary info for the objects and it says Buffering is not allowed. Could that be the reason for the slow performance. The code thats causing the slowness is a join between AFPO &amp;amp; QALS with 4 where conditions. I use it to extract the manufacturing plant for a material. Any ideas of how to improve on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT SINGLE afpo~dwerk
     INTO gv_werks_mfg
     FROM afpo INNER JOIN qals
       ON afpo~aufnr    = qals~aufnr
    WHERE qals~matnr    = collector-matnr
      AND qals~charg    = collector-charg
      AND qals~art      = c_manualinsp
      AND qals~herkunft = c_gr_prod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655835#M612402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655836#M612403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have really not much time right now, so I would recommend you to open a new question, nobody will look into an 'answered' one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write down your statement plus the indexes on the two tables (order of fields)&lt;/P&gt;&lt;P&gt;=&amp;gt; from that one can conclude, how the optimal access would work and whether&lt;/P&gt;&lt;P&gt;suitable indexes are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plus the information which indexes are used right now, can be found in the SQL trace (explain, but unfortunately the explain has different layouts for different databases.) =&amp;gt; What is actually done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 07:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655836#M612403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T07:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance enhancement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655837#M612404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are not more than 3 indexes on QALS table, try creating one using the fields in the select.&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 17:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-enhancement/m-p/2655837#M612404</guid>
      <dc:creator>rajnarayanan_eangandiyoor</dc:creator>
      <dc:date>2007-08-17T17:33:05Z</dc:date>
    </item>
  </channel>
</rss>

