<?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: Report Optimization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452876#M549767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;safasfc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 18:58:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T18:58:06Z</dc:date>
    <item>
      <title>Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452873#M549764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given list of report , that need to be optimized , my problem&lt;/P&gt;&lt;P&gt;is without understanding the logic of the program , If i start doing optimization&lt;/P&gt;&lt;P&gt;then it may change the overall behavior of the code , for example there may&lt;/P&gt;&lt;P&gt;be instance where loop within loop may be used , As said there may be repeated&lt;/P&gt;&lt;P&gt;records , hence read would have been avoided inside loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to optimise code without trying to understand what code&lt;/P&gt;&lt;P&gt;is doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 18:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452873#M549764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T18:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452874#M549765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;i&amp;gt;What is the best way to optimise code without trying to understand what code&lt;/P&gt;&lt;P&gt;is doing.&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well,  as you may guess, you should always know what the code is doing(or supposed to be doing) before you make any modifications to it, including optimization enhancements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 18:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452874#M549765</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-05T18:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452875#M549766</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;Could you please post here your code? I will "try" to understand it..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 18:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452875#M549766</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-05T18:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452876#M549767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;safasfc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 18:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452876#M549767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452877#M549768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your SELECTs are generally OK. I didn't look at them closely, but nothing jumped out at me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of your forms (populate_firm) has a nested loop in it. I think I would leave that until after fixing the next one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program does a number of&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

READ TABLE ZZZZZZ WITH KEY 
  F1 = Z1
  F2 = Z2...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try sorting these tables in the key filed order and then adding BINARY SEARCH to the READ statements. This will speed the program up and you don't really have to delve into the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT ZZZZZZ by F1 F2.
READ TABLE ZZZZZZ WITH KEY 
  F1 = Z1
  F2 = Z2...
  BINARY SEARCH.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 19:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452877#M549768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452878#M549769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob said what you need to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont worry about long programs. You realy dont need to know exacty logic of the program, but you know what do you have to do: to optimize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to execute the program in bug mode, or with break points, and verify parts of your program. You need to know where the program's performance is not good. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the same problem here, a report with poor performance but i dont know how to optimize because all technics were used and the performance is bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect you solve this problem,&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;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 11:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452878#M549769</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-06T11:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452879#M549770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't really help with optimizing the code in such cases, but I can offer an alternative suggestion: Buy a more powerful computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all, if time is too costly to spend it on understanding the purpose of the code, hardware is probably cheap in comparison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452879#M549770</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2007-07-06T13:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452880#M549771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I'm not so sure about that. If I went to management and told them that I couldn't understand some code and asked them to by new hardware instead, I think the money they would use to buy it would come from the money they save by not paying me any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452880#M549771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452881#M549772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, since the customer's (or company's) needs are the highest priority that isn't a problem, is it? &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyway, I was thinking more along the lines of the management not wanting people to spend time figuring out the code, not people not being able to understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your answer was a good one anyway. Shows that there's always another angle from which things can be viewed. Have a good weekend &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452881#M549772</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2007-07-06T13:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452882#M549773</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;Usually performance improvement takes places at 2 levels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 'Quick Wins' , this is where you use SE30/ST05 to find the obvious problems and correct. Sometimes with badly written programs you can quickly ( less than a day) get some major improvements without knowing much, if anything, about what the program does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 'Rewrites', this where you do need to understand what the program is supposed to do and look to see if there are any better alternatives. I've lost count of the number of programs involving reading BSEG that I've seen that need redesign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452882#M549773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Report Optimization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452883#M549774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanju, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I have actually worked on similiar case where performance optimization had to be done without going into the logic of report. So what I did for that was:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;used proper sorts on all the internal tables.&lt;/P&gt;&lt;P&gt;read table itab has to be done with binary search.&lt;/P&gt;&lt;P&gt;try to fetch data at once from DB . &lt;/P&gt;&lt;P&gt;try to work on internal tables as much as possible.&lt;/P&gt;&lt;P&gt;removed unnecessary looping on internal tables.&lt;/P&gt;&lt;P&gt;selecting the fields from DB table have to be in proper sequence. means ,,if in Db table matnr is before werks , then write select as&lt;/P&gt;&lt;P&gt;select matnr werks from...&lt;/P&gt;&lt;P&gt;and same case with conditions also&lt;/P&gt;&lt;P&gt;select * from DB table&lt;/P&gt;&lt;P&gt;where matnr = ''&lt;/P&gt;&lt;P&gt;and werks = '' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Harmeet Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 11:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-optimization/m-p/2452883#M549774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T11:17:10Z</dc:date>
    </item>
  </channel>
</rss>

