<?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: ST05 doubts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896277#M374548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But , then, the 'Executions' is not the number of times wich a SELECT was executed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, i have two Selects i a program, both are executed only ONE time per execution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) SELECT *&lt;/P&gt;&lt;P&gt;        FROM t179t&lt;/P&gt;&lt;P&gt;        INTO TABLE i_prodh&lt;/P&gt;&lt;P&gt;        WHERE spras EQ sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         kunnr&lt;/P&gt;&lt;P&gt;         parvw&lt;/P&gt;&lt;P&gt;    FROM vbpa&lt;/P&gt;&lt;P&gt;    INTO TABLE i_vbpa&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN i_vbap&lt;/P&gt;&lt;P&gt;    WHERE vbeln EQ i_vbap-vbeln&lt;/P&gt;&lt;P&gt;      AND parvw IN ('RE','ZS').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a sure fact that both selects are executed only One time;  then why in the trace (ST05) the 'Execution' column has a value '1'  for the first select; but it has a value of '436'  for the second place ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me please to understand this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 16:22:46 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2007-01-24T16:22:46Z</dc:date>
    <item>
      <title>ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896274#M374545</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;I executed the Trace (ST05) for a program.  when i see the 'Summarized SQL Statements: Sorted by Duration' i see the corresponding columns (Executions, Identical, Duration, etc.) for each SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But somebody can help with two doubts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - Why in 'Executions' column i have a value of 436 for some SELECT but that Select statement is only executed one time (i set a breakpoint) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The 'Duration' column is affected by the work-load of the server ?  that is, if i run a trace for a program twice, this give me different results.      Then how can i be sure , if i modificate the program, that i really improve the Selects ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 01:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896274#M374545</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2007-01-24T01:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896275#M374546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Duration figure is the runtime for the statement in the format milliseconds/microseconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When you improve or enhance SELECT statement, you can find the difference in the Runtime figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info, refer below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 01:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896275#M374546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T01:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896276#M374547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number of executions is affected by the way you are doing the select: SELECT SINGLE;SELECT/ENDSELECT;SELECT...FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The duration column is indeed affected by running it more than once. there is some buffering going on that will reduce the execution time for subsequent SELECTs of the same data. You can ease this by running the program without ST05 and then running it again with ST05 so that all SELECTs will be bufferred. A better way is to examine the "explain" of the SELECT in ST05. But this will be affected by the number of executions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 14:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896276#M374547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896277#M374548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But , then, the 'Executions' is not the number of times wich a SELECT was executed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, i have two Selects i a program, both are executed only ONE time per execution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) SELECT *&lt;/P&gt;&lt;P&gt;        FROM t179t&lt;/P&gt;&lt;P&gt;        INTO TABLE i_prodh&lt;/P&gt;&lt;P&gt;        WHERE spras EQ sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         kunnr&lt;/P&gt;&lt;P&gt;         parvw&lt;/P&gt;&lt;P&gt;    FROM vbpa&lt;/P&gt;&lt;P&gt;    INTO TABLE i_vbpa&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN i_vbap&lt;/P&gt;&lt;P&gt;    WHERE vbeln EQ i_vbap-vbeln&lt;/P&gt;&lt;P&gt;      AND parvw IN ('RE','ZS').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a sure fact that both selects are executed only One time;  then why in the trace (ST05) the 'Execution' column has a value '1'  for the first select; but it has a value of '436'  for the second place ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me please to understand this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896277#M374548</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2007-01-24T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896278#M374549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your database system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have 436 entries in i_vbap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896278#M374549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T16:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896279#M374550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you user FOR ALL ENTRIES, your SELECT statement will get executed as many times as number of rows in your internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896279#M374550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896280#M374551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the ABAP SELECT statement will just be executed once, but it will be translated into something different when it goes to the database. It looks like it is going to the actual database once for each entry in the internal table, but I've also seen it grouped so that it only goes once for the entire table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't worry about the details. Like I said in an earlier post, run it twice and look at the execution times of the second run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896280#M374551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896281#M374552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the table used for the FOR ALL ENTRIES , that is,  i_vbap , i have  2,182 records.  In the resulting filled table (i_vbpa) i get 2,481 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the Executions column, 436.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 17:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896281#M374552</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2007-01-24T17:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896282#M374553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 17:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896282#M374553</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2007-01-24T17:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 doubts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896283#M374554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the ST05 trace of a for-all-entries selection, you'll notice that the select-statement is internally broken up into pieces, and a chunk of records, say 5 or 10, are exeucted in each where-clause. This is why, when you have 1-2k records in your itab, the for-all-entries selection gets executed some 400+ times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 17:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-doubts/m-p/1896283#M374554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T17:44:28Z</dc:date>
    </item>
  </channel>
</rss>

