<?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 First time execution problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295564#M788649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report on Vendors, used the tables LFA1, LFM1, EKKO, EKPO, T024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the report for the first time it's taking around 8 Mins., On the other hand, When I execute the same report with the same variant, it's taking around 30 Seconds!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the report in SM50, its showing EKPO sequential read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any, Hint to reduce the first time execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2008 11:52:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-02T11:52:11Z</dc:date>
    <item>
      <title>First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295564#M788649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report on Vendors, used the tables LFA1, LFM1, EKKO, EKPO, T024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the report for the first time it's taking around 8 Mins., On the other hand, When I execute the same report with the same variant, it's taking around 30 Seconds!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the report in SM50, its showing EKPO sequential read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any, Hint to reduce the first time execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 11:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295564#M788649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T11:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295565#M788650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you executing the report without variant for the first time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check whether you have refreshed all the global internal tables and global structures...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 11:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295565#M788650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T11:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295566#M788651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is probably noothing you can do. The first execution can need about 10 times longer than the later executions, so the 8 = 480 sec and 30 are in that expected range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But also 30sec is not really fast, check my blog on the SQL trace&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View the SQL statement summary, why does your report need 30sec?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ Is the mintime/record or average time/record much larger than 10.000 then an index might help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ Or is the number of records very large? Is this correct or are there many identical executions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe your second execution can be improved to less then 2sec, then your first execution will also be faster. Usually the first execution is anyway not so important, but second which is like the third, fourth ..... 1000th.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 12:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295566#M788651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295567#M788652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the same variant for the first time &amp;amp; second time execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have refreshed all the internal tables &amp;amp; structures...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 12:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295567#M788652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295568#M788653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siegfried,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned in mail, "The first execution can need about 10 times longer than the later executions".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the first execution means first time of the day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last time when I execute the report, I have faced this problem for the first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again today when I execute the report for the first time,  I got the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 13:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295568#M788653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295569#M788654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't say what system you are running in. If you are doing this in a Development or Test System, then there will be very few other users and the database buffers will be left filled with the data from your first run at the time you run the second time, so the access will be faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try running the program for a smaller selection of data and use ST05 / SE30 on it to see where the time is being taken up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 13:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295569#M788654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295570#M788655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John explained it already, difference between first and secon time comes from database buffers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SQL Trace, as I said, I assume that your second execution has still bugs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 14:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295570#M788655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295571#M788656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share with us your select statement on table EKPO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 14:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295571#M788656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T14:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295572#M788657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks for your interest,&lt;/P&gt;&lt;P&gt;I am working on the Development&amp;amp;QA server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report is similar to standard report "MKVZ",&lt;/P&gt;&lt;P&gt;Adding additional fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARK: I am coping the select statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;SELECT P&lt;SUB&gt;LIFNR P&lt;/SUB&gt;KTOKK P&lt;SUB&gt;NAME1 P&lt;/SUB&gt;STRAS P&lt;SUB&gt;ORT01 P&lt;/SUB&gt;PSTLZ P&lt;SUB&gt;LAND1 P&lt;/SUB&gt;SORTL Q&lt;SUB&gt;EKORG Q&lt;/SUB&gt;VERKF Q&lt;SUB&gt;TELF1 FROM LFA1 AS P INNER JOIN LFM1 AS Q ON Q&lt;/SUB&gt;LIFNR = P&lt;SUB&gt;LIFNR INTO TABLE IT_VEND WHERE P&lt;/SUB&gt;LIFNR IN S_LIFNR AND Q&lt;SUB&gt;EKORG IN S_EKORG AND P&lt;/SUB&gt;SORTL IN S_SORTL AND P&lt;SUB&gt;KTOKK IN S_KTOKK AND Q&lt;/SUB&gt;SPERM NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT P&lt;SUB&gt;LIFNR P&lt;/SUB&gt;EKORG P&lt;SUB&gt;EKGRP Q&lt;/SUB&gt;WERKS FROM EKKO AS P&lt;/P&gt;&lt;P&gt;INNER JOIN EKPO AS Q ON Q&lt;SUB&gt;EBELN = P&lt;/SUB&gt;EBELN INTO CORRESPONDING FIELDS OF TABLE IT_PURC FOR ALL ENTRIES IN IT_VEND WHERE LIFNR = IT_VEND-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EKGRP EKNAM FROM T024 INTO TABLE IT_T024 FOR ALL ENTRIES IN IT_PURC WHERE EKGRP = IT_PURC-EKGRP AND EKNAM NE ' '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295572#M788657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295573#M788658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to know why you feel the need to read tables EKKO and EKPO when all the information you are looking for are available in tables LFA1, LFM1 and T024.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 20:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295573#M788658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T20:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295574#M788659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading EKKO for EKGRP, EKPO for WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found WERKS in LFM2 table but no values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kal Chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295574#M788659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: First time execution problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295575#M788660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have followed your suggestions, made changes to the select statements.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kal chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/first-time-execution-problem/m-p/3295575#M788660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:52:00Z</dc:date>
    </item>
  </channel>
</rss>

