<?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 report programming.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354411#M1399338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to repeat what Karthik has already said. You have 8 SELECT statements in the FM and you are calling the FM 200 times. That means, a total of 1600 SELECT statements are executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, you call the FM once, but send all the 200 records in an internal table. In the FM, you should use FOR ALL ENTRIES option of the SELECT statement and make 8 calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure there are other things that are causing the performance issues, but we can't help without looking at the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2009 19:09:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-10T19:09:31Z</dc:date>
    <item>
      <title>performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354407#M1399334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using one customized Function Module  whithin a loop of internal table containing fields of PROJ table for about 200 records . And in  the source code of function module there is set of select queries for different tables like COSS COSP , AUFK , PRPS , BPJA PRHI , AFPO , AFKO etc . so due to that my performance of a report is very low , So how can i improve it .&lt;/P&gt;&lt;P&gt;Is there any other way to change a code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 12:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354407#M1399334</guid>
      <dc:creator>former_member192432</dc:creator>
      <dc:date>2009-12-10T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354408#M1399335</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;Why not you modify the FM code so as to accept multiple entries and return results in a single go?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 12:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354408#M1399335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T12:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354409#M1399336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chetan , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are calling a function module in loop , this means there will be some common logic that you can find in this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like if there is select on a particular table in loop it hits database number of time , there can be posibility that you put one select on this table and later read data by Read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all , you need to replace that FM with some common logic and some specific to each record in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you  understand the concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 17:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354409#M1399336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T17:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354410#M1399337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide snipepts of your code (including the function module)?  It is hard to give you more detailed advice without more detailed information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of SAP are you on?&lt;/P&gt;&lt;P&gt;Why are you calling the function module?&lt;/P&gt;&lt;P&gt;Are you after all of that data provided by the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 18:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354410#M1399337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354411#M1399338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to repeat what Karthik has already said. You have 8 SELECT statements in the FM and you are calling the FM 200 times. That means, a total of 1600 SELECT statements are executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, you call the FM once, but send all the 200 records in an internal table. In the FM, you should use FOR ALL ENTRIES option of the SELECT statement and make 8 calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure there are other things that are causing the performance issues, but we can't help without looking at the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 19:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354411#M1399338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T19:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354412#M1399339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  John ,&lt;/P&gt;&lt;P&gt;I am using SAP ECC 6.0 . &lt;/P&gt;&lt;P&gt;The report  is used to update a  ztable which is already created for Project System plan data .&lt;/P&gt;&lt;P&gt;So i am calling function module  which will return a internal table , I am appending this to other internal table and refreshing it , like this I  am doing for each project within a loop of PROJ internal table , finaly by using the final itab I am modifying the ztable fields.&lt;/P&gt;&lt;P&gt;Code is as below..&lt;/P&gt;&lt;P&gt;select pspid from proj client specified into corresponding fields of&lt;/P&gt;&lt;P&gt;          table t_itab1 where mandt = sy-mandt&lt;/P&gt;&lt;P&gt;                          and pspnr in s_pspnr&lt;/P&gt;&lt;P&gt;                          and vbukr = p_vbukr&lt;/P&gt;&lt;P&gt;                          and prctr in s_prctr.&lt;/P&gt;&lt;P&gt;loop at t_itab1.&lt;/P&gt;&lt;P&gt;    l_pspid = t_itab1-pspid.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZPS_FUN_BUDGETS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        L_PSPID       = l_pspid&lt;/P&gt;&lt;P&gt;        L_VBUKR       = p_vbukr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        T_DATA        = t_itab2 .&lt;/P&gt;&lt;P&gt;  loop at t_itab2.&lt;/P&gt;&lt;P&gt;      append t_itab2 to t_itab.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    clear   : t_itab2.&lt;/P&gt;&lt;P&gt;    refresh : t_itab2.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;LOOP AT t_itab.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;MODIFY ZTABLE.&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 05:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354412#M1399339</guid>
      <dc:creator>former_member192432</dc:creator>
      <dc:date>2009-12-11T05:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354413#M1399340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chetan . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to figure out alternate logic for FM ZPS_FUN_BUDGETS . It should be in such a way that there should be minimum select statements and the READ from the respective internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Dec 2009 04:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354413#M1399340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-12T04:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354414#M1399341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 08:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354414#M1399341</guid>
      <dc:creator>former_member192432</dc:creator>
      <dc:date>2009-12-14T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue in report programming..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354415#M1399342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is the function module coded?  What do those selects look like?  If you use the function module you are stuck with it performance unless you change the function module just remember where it is used.  Changing it coule impact other programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option is to actually code the selects in your code.  Another is the change the fucntion module or copy it.  Are you using all of the data from all of the tables in the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you taking into account that your internal table (t_itab1) might have duplicate pspid and vbukr combinations in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 20:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-report-programming/m-p/6354415#M1399342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T20:01:18Z</dc:date>
    </item>
  </channel>
</rss>

