<?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 problem with CO-PA process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856874#M362190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of notes regarding performance for this transaction. Start with 416507 and perhaps 122104 will also help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 21:35:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T21:35:27Z</dc:date>
    <item>
      <title>Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856871#M362187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We&amp;#146;re running a CO-PA process and it&amp;#146;s taking a long time to execute (14 hours).&lt;/P&gt;&lt;P&gt;Using transaction ST05 we got the sql statement with performance problem. The statement is:&lt;/P&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;  /*+&lt;/P&gt;&lt;P&gt;    FIRST_ROWS (1)&lt;/P&gt;&lt;P&gt;  */&lt;/P&gt;&lt;P&gt;    *&lt;/P&gt;&lt;P&gt;  FROM&lt;/P&gt;&lt;P&gt;    "CE4PAFL"&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;    "MANDT" = :A0 AND "AKTBO" = :A1 AND "KNDNR" = :A2 AND "ARTNR" = :A3 AND&lt;/P&gt;&lt;P&gt;    "FKART" = :A4 AND "KAUFN" = :A5 AND "KDPOS" = :A6 AND "AUFNR" = :A7 AND&lt;/P&gt;&lt;P&gt;    "BUKRS" = :A8 AND "KOKRS" = :A9 AND "WERKS" = :A10 AND "GSBER" = :A11 AND&lt;/P&gt;&lt;P&gt;    "VKORG" = :A12 AND "VTWEG" = :A13 AND "SPART" = :A14 AND "PRCTR" = :A15 AND&lt;/P&gt;&lt;P&gt;    "PPRCTR" = :A16 AND "KSTRG" = :A17 AND "PSPNR" = :A18 AND "MEINH" = :A19 AND&lt;/P&gt;&lt;P&gt;    "BRSCH" = :A20 AND "BZIRK" = :A21 AND "KDGRP" = :A22 AND "KMVKBU" = :A23 AND&lt;/P&gt;&lt;P&gt;    "KMVTNR" = :A24 AND "MATKL" = :A25 AND "VKGRP" = :A26 AND "KMWNHG" = :A27 AND&lt;/P&gt;&lt;P&gt;    "BRAN1" = :A28 AND "LAND1" = :A29 AND "VHART" = :A30 AND "EXTWG" = :A31 AND&lt;/P&gt;&lt;P&gt;    "KTGRM" = :A32 AND "KONDM" = :A33 AND "KWSVME_ME" = :A34 AND "VVABS_ME" =&lt;/P&gt;&lt;P&gt;    :A35 AND "ABSMG_ME" = :A36 AND "VVVDI_ME" = :A37 AND ROWNUM &amp;lt;= :A38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And values for each field are:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;MANDT   A0(CH,3)  = 700&lt;/P&gt;&lt;P&gt;AKTBO	A1(CH,1)  = X          &lt;/P&gt;&lt;P&gt;KNDNR	A2(CH,10) =            &lt;/P&gt;&lt;P&gt;ARTNR	A3(CH,18) =            &lt;/P&gt;&lt;P&gt;FKART	A4(CH,4)  =            &lt;/P&gt;&lt;P&gt;KAUFN	A5(CH,10) =            &lt;/P&gt;&lt;P&gt;KDPOS	A6(NU,6)  = 000000     &lt;/P&gt;&lt;P&gt;AUFNR	A7(CH,12) =            &lt;/P&gt;&lt;P&gt;BUKRS	A8(CH,4)  = FDIS       &lt;/P&gt;&lt;P&gt;KOKRS	A9(CH,4)  = COFL       &lt;/P&gt;&lt;P&gt;WERKS	A10(CH,4)  =           &lt;/P&gt;&lt;P&gt;GSBER	A11(CH,4)  = 10        &lt;/P&gt;&lt;P&gt;VKORG	A12(CH,4)  =           &lt;/P&gt;&lt;P&gt;VTWEG	A13(CH,2)  =           &lt;/P&gt;&lt;P&gt;SPART	A14(CH,2)  =           &lt;/P&gt;&lt;P&gt;PRCTR	A15(CH,10) = 0000005800&lt;/P&gt;&lt;P&gt;PPRCTR	A16(CH,10) =           &lt;/P&gt;&lt;P&gt;KSTRG	A17(CH,12) =           &lt;/P&gt;&lt;P&gt;PSPNR	A18(NU,8)  = 00000000  &lt;/P&gt;&lt;P&gt;MEINH	A19(CH,3)  =           &lt;/P&gt;&lt;P&gt;BRSCH	A20(CH,4)  = 2116      &lt;/P&gt;&lt;P&gt;BZIRK	A21(CH,6)  =           &lt;/P&gt;&lt;P&gt;KDGRP	A22(CH,2)  = 00        &lt;/P&gt;&lt;P&gt;KMVKBU	A23(CH,4)  =           &lt;/P&gt;&lt;P&gt;KMVTNR	A24(NU,8)  = 00000000  &lt;/P&gt;&lt;P&gt;MATKL	A25(CH,9)  =           &lt;/P&gt;&lt;P&gt;VKGRP	A26(CH,3)  = SIS       &lt;/P&gt;&lt;P&gt;KMWNHG	A27(NU,2)  = 00        &lt;/P&gt;&lt;P&gt;BRAN1	A28(CH,10) =           &lt;/P&gt;&lt;P&gt;LAND1	A29(CH,3)  =           &lt;/P&gt;&lt;P&gt;VHART	A30(CH,4)  = 0403      &lt;/P&gt;&lt;P&gt;EXTWG	A31(CH,18) =           &lt;/P&gt;&lt;P&gt;KTGRM	A32(CH,2)  =           &lt;/P&gt;&lt;P&gt;KONDM	A33(CH,2)  =           &lt;/P&gt;&lt;P&gt;KWSVME_ME	A34(CH,3)  =           &lt;/P&gt;&lt;P&gt;VVABS_ME	A35(CH,3)  =           &lt;/P&gt;&lt;P&gt;ABSMG_ME	A36(CH,3)  =           &lt;/P&gt;&lt;P&gt;VVVDI_ME	A37(CH,3)  =    &lt;/P&gt;&lt;P&gt;ROWNUM	A38(I4,1)  = 1  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table CE4PAFL has four indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~1	    ~Z01	~Z02	  ~Z03&lt;/P&gt;&lt;P&gt;MANDT	MANDT	MANDT	MANDT&lt;/P&gt;&lt;P&gt;AKTBO	AKTBO	AKTBO	AKTBO&lt;/P&gt;&lt;P&gt;PRCTR	KOKRS	BUKRS	PRCTR&lt;/P&gt;&lt;P&gt;KNDNR	BUKRS	KOKRS	BRSCH&lt;/P&gt;&lt;P&gt;ARTNR	VTWEG	GSBER	KDGRP&lt;/P&gt;&lt;P&gt;BUKRS	VKGRP	PRCTR	VKGRP&lt;/P&gt;&lt;P&gt;WERKS	VHART	BRSCH	VHART&lt;/P&gt;&lt;P&gt;VTWEG		VKGRP	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sql statement is using index ~1 (as seen in trace generated by ST05) but this statement contains fields with null values (KNDNR, ARTNR, WERKS, VTWEG), annulling the index. I think the select must use index ~Z03 because all fields have values in the statement.&lt;/P&gt;&lt;P&gt;The select statement cannot be modified because is automatically generated by customizing, and I need to know how to modify the indexes or some tip to improve the performance of this select.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 20:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856871#M362187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T20:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856872#M362188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What transaction or program is being run here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 21:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856872#M362188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856873#M362189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, the transaction we're using is KEU5 - Execute Actual Assessment.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 21:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856873#M362189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T21:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856874#M362190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of notes regarding performance for this transaction. Start with 416507 and perhaps 122104 will also help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 21:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856874#M362190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T21:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856875#M362191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronald!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How old is the statistic for this table? If the statistic was last updated before the new index Z3 was created, then a cost based optimizer will ignore the index caused by bad statistics. Have a look at DB20 to check the date / trigger a refresh. Also after hugh table changes a refresh might help to get the 'right' index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 08:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856875#M362191</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-01-30T08:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856876#M362192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just saw, that indices 1 and Z3 start with the same fields - might be difficult for an optimizer to get the right one. Maybe you have better results when changing (modifying!) index 1 - e.g. re-order the fields and move AKTBO and PRCTR behind KNDNR and ARTNR. Then empty fields in the first places might make the difference. Also removing them can help: selects, which have KNDNR and ARTNR will still have a fast access, but your Z3 will now be prominent for the other way.&lt;/P&gt;&lt;P&gt;Thinking about this: removing might be best - if you have already KNDNR and ARTNR, PRCTR might be fixed -&amp;gt; does not shrink the number of possible entries. If you just have PRCTR, then Z3 will do the job for you, too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 08:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856876#M362192</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-01-30T08:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856877#M362193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian. The statistics are up to date, exactly from past sunday, because the process runs twice a week.&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 16:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856877#M362193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T16:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856878#M362194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian, the situation here is index &lt;SUB&gt;1 is used in other processess, so I can't modify it at this time. Now we're trying creating a new index with characteristics of both indexes (&lt;/SUB&gt;1 and ~Z3, similar to your advice) to see if the new index is used, but we'll get results today in the afternoon.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 16:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856878#M362194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with CO-PA process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856879#M362195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heve you checked the notes? If SAP has an answer, I'd try that before creating an index. If none of the notes help, create a customer message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 16:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-co-pa-process/m-p/1856879#M362195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T16:49:11Z</dc:date>
    </item>
  </channel>
</rss>

