<?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: SQL Trace(ST05) and Run Time Analysys(SE30) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332229#M798537</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment. &lt;/P&gt;&lt;P&gt;The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table. &lt;/P&gt;&lt;P&gt;To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.&lt;/P&gt;&lt;P&gt;For our case, let this be &amp;#147;ZABAP_PERF_TUNING&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the &amp;#147;BACK&amp;#148; button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the original SE30 screen, now click on &amp;#147;ANALYZE&amp;#148; button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace &amp;#150; ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting the Trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyze a trace file, do the following:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Choose the menu path Test &amp;amp;#61614; Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).&lt;/P&gt;&lt;P&gt;If you want to switch on the trace under your user name, choose Trace on. If you want to pass on values for one or several filter criteria, choose Trace with Filter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typical filter criteria are: the name of the user, transaction name, process name, and program name.&lt;/P&gt;&lt;P&gt;Now run the program to be analyzed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stopping the Trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To deactivate the trace:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Choose Test &amp;amp;#61614;Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.&lt;/P&gt;&lt;P&gt;Select the trace functions that you want to switch off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing a Sample trace data:&lt;/P&gt;&lt;P&gt;PREPARE: Prepares the OPEN statement for use and determines the access method.&lt;/P&gt;&lt;P&gt;OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values. &lt;/P&gt;&lt;P&gt;FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 05:52:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T05:52:28Z</dc:date>
    <item>
      <title>SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332226#M798534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain what is the use of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) ST05 and&lt;/P&gt;&lt;P&gt;2) SE30 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ponits will be given for clear cut explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332226#M798534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332227#M798535</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; hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05 &lt;/P&gt;&lt;P&gt;to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05 &lt;/P&gt;&lt;P&gt;and click on list trace to view the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also perform traces on other items such as authorisation objects.&lt;/P&gt;&lt;P&gt;Authorisation trace analysis 1. Open two sessions&lt;/P&gt;&lt;P&gt;2. Execute transaction ST01 in one of the sessions&lt;/P&gt;&lt;P&gt;3. Select the authorisation checkbox, note the other traces &lt;/P&gt;&lt;P&gt;you can perform (SQL, RFC, Table Buffer etc) &lt;/P&gt;&lt;P&gt;4. Click the 'Trace On' button&lt;/P&gt;&lt;P&gt;5. Within your other session execte the transaction/report &lt;/P&gt;&lt;P&gt;you want to trace or get the user in question to do it&lt;/P&gt;&lt;P&gt;6. Return to the session where you turned the trace on and &lt;/P&gt;&lt;P&gt;click on 'Trace Off' otherwise it will continue to record &lt;/P&gt;&lt;P&gt;all athorisation checks&lt;/P&gt;&lt;P&gt;7. Click on the 'Analysis' button&lt;/P&gt;&lt;P&gt;8. Enter appropriate data into selection screen such as &lt;/P&gt;&lt;P&gt;Username, type of trace records (i.e. Authorization check)&lt;/P&gt;&lt;P&gt;9. Click on the Execute button. &lt;/P&gt;&lt;P&gt;10. Report displaying trace results will now be displayed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some useful transaction related to this are ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST01 SAP system trace &lt;/P&gt;&lt;P&gt;ST02 Buffer statistics. &lt;/P&gt;&lt;P&gt;ST03 Workload analysis. &lt;/P&gt;&lt;P&gt;ST04 Database performance analysis. &lt;/P&gt;&lt;P&gt;ST05 SQL trace . &lt;/P&gt;&lt;P&gt;ST06 Operating system monitor ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the recorded SQL trace you can deduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Which SQL statements your application carries out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Which values the system uses for specific database accesses and changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· How the system translates ABAP OPEN SQL commands (such as &lt;/P&gt;&lt;P&gt;SELECT) into standard SQL commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Where your application positions COMMIT statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Where your application makes repeated database accesses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· What database accesses or changes occur in the update section of your &lt;/P&gt;&lt;P&gt;application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below links, you will get the idea &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrainsonline.com/TOOLS/RUNTIMEanalysis/SAP_runtime_analysis.html" target="test_blank"&gt;http://www.sapbrainsonline.com/TOOLS/RUNTIMEanalysis/SAP_runtime_analysis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrainsonline.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrainsonline.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332227#M798535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332228#M798536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332228#M798536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332229#M798537</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace transaction ST05: The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on a particular database table of the ABAP program would be mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment. &lt;/P&gt;&lt;P&gt;The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table. &lt;/P&gt;&lt;P&gt;To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30 :This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.&lt;/P&gt;&lt;P&gt;For our case, let this be &amp;#147;ZABAP_PERF_TUNING&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the &amp;#147;BACK&amp;#148; button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the original SE30 screen, now click on &amp;#147;ANALYZE&amp;#148; button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace &amp;#150; ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting the Trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyze a trace file, do the following:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Choose the menu path Test &amp;amp;#61614; Performance Trace in the ABAP Workbench or go to Transaction ST05. The initial screen of the test tool appears. In the lower part of the screen, the status of the Performance Trace is displayed. This provides you with information as to whether any of the Performance Traces are switched on and the users for which they are enabled. It also tells you which user has switched the trace on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).&lt;/P&gt;&lt;P&gt;If you want to switch on the trace under your user name, choose Trace on. If you want to pass on values for one or several filter criteria, choose Trace with Filter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typical filter criteria are: the name of the user, transaction name, process name, and program name.&lt;/P&gt;&lt;P&gt;Now run the program to be analyzed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stopping the Trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To deactivate the trace:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Choose Test &amp;amp;#61614;Performance Trace in the ABAP Workbench. The initial screen of the test tool appears. It contains a status line displaying the traces that are active, the users for whom they are active, and the user who activated them.&lt;/P&gt;&lt;P&gt;Select the trace functions that you want to switch off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Deactivate Trace. If you started the trace yourself, you can now switch it off immediately. If the performance trace was started by a different user, a confirmation prompt appears before deactivation-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing a Sample trace data:&lt;/P&gt;&lt;P&gt;PREPARE: Prepares the OPEN statement for use and determines the access method.&lt;/P&gt;&lt;P&gt;OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values. &lt;/P&gt;&lt;P&gt;FETCH: Moves the cursor through the dataset created by the OPEN operation. The array size displayed beside the fetch data means that the system can transfer a maximum package size of 392 records at one time into the buffered area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332229#M798537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332230#M798538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST05 &amp;amp; SE30 are Used in ABAP for Performance Optimization &amp;amp; Tunning of Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ST05 : Performance Analysis : is used to Analyze Overall dependency of Code.Means to Locate Tables used in Given Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE30:Run Time Performance Analyse : is used to Understand DataBase Dependency of our Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would Clarifies You....!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332230#M798538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332231#M798539</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;The SQL Trace part of the Performance Trace tool allows you to see how the OPEN SQL statements that you use in ABAP programs are converted to standard SQL statements (see Embedded SQL) and the parameters with which the embedded SQL statements are passed to the database system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overview&lt;/P&gt;&lt;P&gt;From the time you turn on the trace function to the time you turn it off again, all database activity occurring either for a specific user or for an entire system is recorded. The SAP System takes OPEN SQL statements and converts them in to embedded SQL statements that it passes to the database and makes the results available. The embedded SQL statement and its parameters are recorded in the SQL Trace file. The results of the SQL statement, like return code, number of entries retrieved, inserted, or deleted by the database are recorded in the SQL Trace file as well. The log file also contains the runtime of the statement and the place in the application program, respectively transaction, from which it was called which enables additional analyses (supported by the SQL Trace function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the recorded SQL trace you can deduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        which SQL statements your application carries out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        which values the system uses for specific database accesses and changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        how the system translates ABAP OPEN SQL commands (such as SELECT) into standard SQL commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        where your application positions COMMIT statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        where your application makes repeated database accesses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        what database accesses or changes occur in the update section of your application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Create a Trace (SQL Server Profiler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To create a trace &lt;/P&gt;&lt;P&gt;On the File menu, click New Trace, and connect to an instance of SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Trace Properties dialog box appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:  &lt;/P&gt;&lt;P&gt;The Trace Properties dialog box fails to appear, and the trace begins instead, if Start tracing immediately after making connection is selected. To turn off this setting, on the Tools menu, click Options, and clear the Start tracing immediately after making connection check box.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Trace name box, type a name for the trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Use the template list, select a trace template on which to base the trace, or select Blank if you do not want to use a template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To save the trace results, do one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click Save to file to capture the trace to a file. Specify a value for Set maximum file size. The default value is 5 megabytes (MB). &lt;/P&gt;&lt;P&gt;Optionally, select Enable file rollover to automatically create new files when the maximum file size is reached. You can also optionally select Server processes trace data, which causes the service that is running the trace to process trace data instead of the client application. When the server processes trace data, no events are skipped even under stress conditions, but server performance may be affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click Save to table to capture the trace to a database table.&lt;/P&gt;&lt;P&gt;Optionally, click Set maximum rows, and specify a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caution:  &lt;/P&gt;&lt;P&gt;When you do not save the trace results to a file or table, you can view the trace while SQL Server Profiler is open. However, you lose the trace results after you stop the trace and close SQL Server Profiler. To avoid losing the trace results in this way, click Save on the File menu to save the results before you close SQL Server Profiler.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Optionally, select the Enable trace stop time check box, and specify a stop date and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add or remove events, data columns or filters, click the Events Selection tab. For more information, see: How to: Specify Events and Data Columns for a Trace File (SQL Server Profiler)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click Run to start the trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Runtime analysis:&lt;/P&gt;&lt;P&gt;se30 is the tcode for run time analysis, is a tool it &lt;/P&gt;&lt;P&gt;display report based on lps for abap pragram execution &lt;/P&gt;&lt;P&gt;time , data base load, system load. these are all will &lt;/P&gt;&lt;P&gt;display in micro seconds.this tool will use for Transaction &lt;/P&gt;&lt;P&gt;code, function modules , abap progrmes&lt;/P&gt;&lt;P&gt;In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.&lt;/P&gt;&lt;P&gt;For our case, let this be &amp;#147;ZABAP_PERF_TUNING&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the &amp;#147;BACK&amp;#148; button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the original SE30 screen, now click on &amp;#147;ANALYZE&amp;#148; button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The percentage across each of the areas ABAP/ Database/System shows the percentage of total time used for those areas and load on these areas while running the program . The lesser the database load faster the program runs.&lt;/P&gt;&lt;P&gt;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;SE30&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vasavi.&lt;/P&gt;&lt;P&gt;kindly reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332231#M798539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332232#M798540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two good links....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID1304776450DB20120100481755260918End?blog=/pub/wlg/7769" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID1304776450DB20120100481755260918End?blog=/pub/wlg/7769&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID1304776450DB20120100481755260918End?blog=/pub/wlg/7205" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID1304776450DB20120100481755260918End?blog=/pub/wlg/7205&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 13:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332232#M798540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace(ST05) and Run Time Analysys(SE30)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332233#M798541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the transactions are used for Performance optimization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST05 : This Tcode is used for SQL trace. It will give you the details related to database table access (eg. How much time the program took while accessing data from some specific table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to run the SQL trace before executing the program. Once program executed, stop the SQL trace and see the result. It will give you detail idea for each and every table used by the program select queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE30 : This is used to do runtime analysis of any program. And will give you the details about the program run time, database accessing time etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sourabh Batwara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 15:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace-st05-and-run-time-analysys-se30/m-p/3332233#M798541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T15:51:02Z</dc:date>
    </item>
  </channel>
</rss>

