<?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 Fine tuning in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064130#M92759</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 face tough job in my client place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client often complains abot the Z - reports being terribly slow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example i created a report called SALES TAX REGISTER which takes hell lot ot time for 2 consecutive days (but even the data is very huge)itself. So i have to forcibly run the report in background in the spool. Which client is not happy with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query how does standard reports execute so fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report although i have one or two nested loops but  it is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will O.O.P concept help me in this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2005 05:12:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-10T05:12:21Z</dc:date>
    <item>
      <title>Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064130#M92759</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 face tough job in my client place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client often complains abot the Z - reports being terribly slow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example i created a report called SALES TAX REGISTER which takes hell lot ot time for 2 consecutive days (but even the data is very huge)itself. So i have to forcibly run the report in background in the spool. Which client is not happy with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query how does standard reports execute so fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report although i have one or two nested loops but  it is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will O.O.P concept help me in this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064130#M92759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064131#M92760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance improving is a big topic but I will give some suggestions which will help you.&lt;/P&gt;&lt;P&gt;1. Try to remove for nested selects.&lt;/P&gt;&lt;P&gt;2. try to remove loops in side loops&lt;/P&gt;&lt;P&gt;3. try to remove for all entries(if it has lot of data)&lt;/P&gt;&lt;P&gt;4. tye to use as for as possible ranges. like populating into ranges and use IN in select&lt;/P&gt;&lt;P&gt;5. try to use joins first table should be header and join on item teble like select .... from vbak join on vbap.&lt;/P&gt;&lt;P&gt;7. See runtime analysis and sql trace you will get some more ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't think that standard programs will always be faster, some times they also slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064131#M92760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064132#M92761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Take a look at your SELECT statements and see if indexes have been used or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Usage of Loops, are you firing SELECTS with in the loops, which will definitely lot more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. What are the types of internal tables that you are using. HASHED tables / SORTED tables will come in handy in these situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Are you using Joins in your SELECT statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOP - I don't think it can help you in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064132#M92761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064133#M92762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible can you post the code that you are referring to? It will be easier to pick out the performance problems quickly that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick Tips:&lt;/P&gt;&lt;P&gt;1. Avoid SELECT-ENDSELECT, especially the NESTED ones.&lt;/P&gt;&lt;P&gt;2. Avoid LOOP-ENDLOOP, again, the NESTED ones.&lt;/P&gt;&lt;P&gt;3. Select exact data from table using primary keys or the secondary indexes. Ask your DBA for checking the table statistics (if you are on Oracle 9.x &amp;amp; on CBO).&lt;/P&gt;&lt;P&gt;4. See if READ statements can be cleanly re-written using READ..BINARY SEARCH additions. (Do not forget to SORT these internal tables before using the READ-BINARY)!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064133#M92762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064134#M92763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following may help :&lt;/P&gt;&lt;P&gt;1. remove  nested select statements and nested loops(Loop in a loop).&lt;/P&gt;&lt;P&gt;2.Always select from header and then item same as in case of Table Joins.&lt;/P&gt;&lt;P&gt;3.Do run time analysis and SQL trace.&lt;/P&gt;&lt;P&gt; path &lt;DEL&gt;&amp;gt; Menubar&lt;/DEL&gt;&amp;gt;System-Utilities--Performence trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace will help and it will provide you some coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lanka Murthy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064134#M92763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064135#M92764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to make use of the SQL trace.&lt;/P&gt;&lt;P&gt;How to run it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064135#M92764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064136#M92765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding few more points&lt;/P&gt;&lt;P&gt;1. Dont select inside a loop... or a loop inside a select...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Dont sort internal table if u r using that itab for selecting from another table(for all entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. SORT before looping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Use SELECT SINGLE instead of SELECT&amp;#133;. ENDSELECT where-ever possible also Use SELECT &amp;#133;INTO table rather than using SELECT &amp;#133; ENDSELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.If Nested loops has been used, Can nested Loops be avoided? E.g. Loop&amp;#133; Loop&amp;#133; Xxxxxxxxx Endloop. Endloop. &lt;/P&gt;&lt;P&gt;Instead use WHILE and READ statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.Free all internal tables at the end of the program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link for SQL Trace&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this too helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064136#M92765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064137#M92766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to tcode ST05.&lt;/P&gt;&lt;P&gt;2. Check SQL Trace ON.&lt;/P&gt;&lt;P&gt;3. Open another session and start SE38 or the tcode to run your report/work. Do not start this yet. Pick the variant that you wanted to run this for.&lt;/P&gt;&lt;P&gt;4. Toggle back to session 1 (trace screen) and click the pushbutton 'Activate Trace'. On doing so, you will notice some messages confirming the trace has been switched on for your userid.&lt;/P&gt;&lt;P&gt;5. Toggle back to session 2 and now run your report. Hopefully, if your test finishes quickly, the trace would have been completed. Now click the pushbutton 'Deactivate Trace'. Again, check the message in the bottom of the screen.&lt;/P&gt;&lt;P&gt;6. Now select the option to see the trace files. If this comes up with a popup, just click OK and move on to the list display of the trace results. &lt;/P&gt;&lt;P&gt;7. Many information is useful like the tables accessed, the SQL statements used, the Execution Plans for each of the SQL statements, etc. But most important of them is the functionality of Summarizing the results on Tables.&lt;/P&gt;&lt;P&gt;Do this (selectable from the menu) and sort the Execution time Column (Descending). You will be able to see the worst performing SQL statement and the table that gets hit!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say for more details, you should refer the Online Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 05:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064137#M92766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T05:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064138#M92767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you chaps &lt;/P&gt;&lt;P&gt;    &amp;amp;&lt;/P&gt;&lt;P&gt;Thank you all for guiding me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 06:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064138#M92767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fine tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064139#M92768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can reward points if the posting helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2005 07:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fine-tuning/m-p/1064139#M92768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-10T07:40:25Z</dc:date>
    </item>
  </channel>
</rss>

