<?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 ANALYSE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346175#M517561</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;You can analyse the performance in two ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use SE30 transaction. Here you will be able to find out where exactly the performance degrades. i.e. at database level or program execution and accordingly you can make the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Since you are using FOR ALL ENTRIES in second query and still its taking lot of time that means no. of records fetched into internal table (one used in for all entries) is very large. Hence it takes time. One solution to limit the number of records is to use where clause. For eg. You can avoid fetching old data values by placing constraints on the date fields if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Ensure that the first query selects the records based on the selection criteria and no extra records are selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 18:03:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T18:03:02Z</dc:date>
    <item>
      <title>PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346170#M517556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am doing a task which need the following specification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECTION SCREEN CONTAINS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 SETTLEMENT PERIOD :  &amp;lt;PERIO&amp;gt;&lt;/P&gt;&lt;P&gt;                              FISCAL YEAR  :  &amp;lt;GJAHR&amp;gt;&lt;/P&gt;&lt;P&gt;                               PLANT             :  &amp;lt;WERKS&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   selection of KOKRS BELNR BUZEI PERIO WTGBTR OBJNR WERKS KSTAR GJAHR FROM COEP(BASED ON SELECTION SCREEN ELEMENT)  AND &lt;/P&gt;&lt;P&gt;   AUFNR  KDAUF OBJNR KOKRS FROM AUFK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   JOINING CONDITION :  KOKRS AND OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I USED INDIVIDULAL SELECT QUERY: &lt;/P&gt;&lt;P&gt;   QUERY 1: FETECHING DATA FROM COEP BASED ON SELECTION SCREEN DATA.&lt;/P&gt;&lt;P&gt;   QUERY 2 : FECTECH DATA FROM AUFK FOR ALL ENTRIES IN COEP (FROM QUERY 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BUT THE PERFORMANCE IS VERY POOR. PLS GIVE ME A IDEA TO IMPROVE THE PERFORMANCE.&lt;/P&gt;&lt;P&gt; IF I CHOOSE INNERJOIN QUERY IT'S ALSO VERY POOR. PLS GIVE ME IDEA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 10:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346170#M517556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346171#M517557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to fill fields of indices (1, 2 or 4, look se11) of table coep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 13:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346171#M517557</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-06-08T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346172#M517558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the SELECTs you used?&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, 08 Jun 2007 13:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346172#M517558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346173#M517559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT KOKRS BELNR BUZEI PERIO WTGBTR OBJNR WERKS KSTAR  GJAHR&lt;/P&gt;&lt;P&gt;             FROM COEP&lt;/P&gt;&lt;P&gt;             INTO TABLE T_COEP&lt;/P&gt;&lt;P&gt;             WHERE PERIO IN S_PERIO&lt;/P&gt;&lt;P&gt;             AND   GJAHR IN S_BUGJAH&lt;/P&gt;&lt;P&gt;             AND   WERKS IN S_WERKS&lt;/P&gt;&lt;P&gt;             AND  ( KSTAR EQ '0000530310' OR KSTAR EQ '0000530311' )&lt;/P&gt;&lt;P&gt;             AND   OBJNR LIKE 'OR_____9______'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT T_COEP[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT AUFNR AUART KDAUF OBJNR KOKRS PHAS0&lt;/P&gt;&lt;P&gt;          PHAS1 PHAS2 PHAS3 IDAT1 IDAT2 IDAT3&lt;/P&gt;&lt;P&gt;                                        FROM AUFK&lt;/P&gt;&lt;P&gt;                                        INTO TABLE T_AUFK&lt;/P&gt;&lt;P&gt;                                        FOR ALL ENTRIES IN T_COEP&lt;/P&gt;&lt;P&gt;                                        WHERE OBJNR EQ T_COEP-OBJNR&lt;/P&gt;&lt;P&gt;                                        AND   KOKRS EQ T_COEP-KOKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF NOT T_AUFK[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT AUFNR POSNR MATNR&lt;/P&gt;&lt;P&gt;                         FROM AFPO&lt;/P&gt;&lt;P&gt;                         INTO TABLE T_AFPO&lt;/P&gt;&lt;P&gt;                         FOR ALL ENTRIES IN T_AUFK&lt;/P&gt;&lt;P&gt;                         WHERE AUFNR EQ T_AUFK-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT T_AFPO[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          SELECT MATNR MAKTX&lt;/P&gt;&lt;P&gt;                       FROM MAKT&lt;/P&gt;&lt;P&gt;                       INTO TABLE T_MAKT&lt;/P&gt;&lt;P&gt;                       FOR ALL ENTRIES IN T_AFPO&lt;/P&gt;&lt;P&gt;                       WHERE MATNR EQ T_AFPO-MATNR.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance Result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abap : 2%&lt;/P&gt;&lt;P&gt;DB   : 97%&lt;/P&gt;&lt;P&gt;System : 1%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to improve performance. Pls help me to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 13:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346173#M517559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346174#M517560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to re-think how you're doing this. The first two SELECTs don't use any index.&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, 08 Jun 2007 13:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346174#M517560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346175#M517561</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;You can analyse the performance in two ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use SE30 transaction. Here you will be able to find out where exactly the performance degrades. i.e. at database level or program execution and accordingly you can make the changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Since you are using FOR ALL ENTRIES in second query and still its taking lot of time that means no. of records fetched into internal table (one used in for all entries) is very large. Hence it takes time. One solution to limit the number of records is to use where clause. For eg. You can avoid fetching old data values by placing constraints on the date fields if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Ensure that the first query selects the records based on the selection criteria and no extra records are selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 18:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346175#M517561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T18:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346176#M517562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To improve the database performance, follow these instruction after discussing it with ur lead.&lt;/P&gt;&lt;P&gt;1- Go to ST05 &amp;amp; run the SQL trace and scroll down and see which areas are in red color. These are the SQL statements which are taking much time.&lt;/P&gt;&lt;P&gt;2- I think so in ur case, the statement u have mentioned above taking more time.&lt;/P&gt;&lt;P&gt;3- Now see the tables, and note down the fields which u are using in where clause.&lt;/P&gt;&lt;P&gt;4- go to SE 11, and click on indexes and create secondary index for these tables and active it. It will ask you a change request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will increase ur program performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sal Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 18:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346176#M517562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T18:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: PERFORMANCE ANALYSE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346177#M517563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murugan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should change the date selection sequence: COEP is for costing item data - you will have many more than AUFK order header data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure you will find some selection criteria for AUFK(i.e. BUKRS, begin and end date) and then try view COVP to het relevant COEP data based on OBJNR.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 21:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-analyse/m-p/2346177#M517563</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-06-08T21:54:25Z</dc:date>
    </item>
  </channel>
</rss>

