<?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 st05 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587513#M592217</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;   could u plz explain how to use this st05 t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     how to find out which statement is taking more time &lt;/P&gt;&lt;P&gt;     in what bases we can find that statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 07:26:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T07:26:21Z</dc:date>
    <item>
      <title>st05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587513#M592217</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;   could u plz explain how to use this st05 t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     how to find out which statement is taking more time &lt;/P&gt;&lt;P&gt;     in what bases we can find that statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587513#M592217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: st05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587514#M592218</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;SQL Trace transaction ST05 &lt;/P&gt;&lt;P&gt;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 the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment. &lt;/P&gt;&lt;P&gt;&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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587514#M592218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: st05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587515#M592219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&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;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587515#M592219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: st05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587516#M592220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SE30 tcode for run time analysis of your program and you can alsouse st05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In st05 click on active trace with filter then enter ur programme name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587516#M592220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: st05</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587517#M592221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Performance Trace allows you to record database access, locking activities, and remote calls of reports and transactions in a trace file and to display the performance log as a list. It also provides extensive support for analyzing individual trace records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace: This allows you to monitor the database access of reports and transactions. &lt;/P&gt;&lt;P&gt;Enqueue Trace: This allows you to monitor the locking system.&lt;/P&gt;&lt;P&gt;RFC Trace: This provides information about Remote Function Calls between instances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the trace is switched on, the SQL Trace function records all database activity by a particular user or group of users. The R/3 System takes OPEN SQL statements and converts them in to embedded SQL statements that it passes to the database. It is the embedded SQL statements, their parameters, return codes, and the number of entries retrieved, inserted, or deleted that are recorded in the SQL Trace file. The log file also contains the runtime of the statement and the place in the application program from which it was called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL trace tells you: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL statements executed by your program. &lt;/P&gt;&lt;P&gt;The values that the system uses for particular database access and changes. &lt;/P&gt;&lt;P&gt;How the system converts ABAP Open SQL statements (such as SELECT) into Standard SQL statements. &lt;/P&gt;&lt;P&gt;Where your application executes COMMITs. &lt;/P&gt;&lt;P&gt;Where your application repeats the same database access. &lt;/P&gt;&lt;P&gt;The database accesses and changes that occur in the update part of your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/cb632772cd0cd4e10000000a1553f7/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/cb632772cd0cd4e10000000a1553f7/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regarsd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05/m-p/2587517#M592221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:43:33Z</dc:date>
    </item>
  </channel>
</rss>

