<?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: About SQL tracer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510325#M844304</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;refer this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.datamanagementgroup.com/Resources/Articles/Article_UsingSAPsSQLTraceTool.asp" target="test_blank"&gt;http://www.datamanagementgroup.com/Resources/Articles/Article_UsingSAPsSQLTraceTool.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 12:12:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T12:12:23Z</dc:date>
    <item>
      <title>About SQL tracer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510324#M844303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to know about SQL tracer i.e. how can we perform SQL tracer on our program specifically.&lt;/P&gt;&lt;P&gt;Please do this needful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Suren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510324#M844303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: About SQL tracer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510325#M844304</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;refer this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.datamanagementgroup.com/Resources/Articles/Article_UsingSAPsSQLTraceTool.asp" target="test_blank"&gt;http://www.datamanagementgroup.com/Resources/Articles/Article_UsingSAPsSQLTraceTool.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510325#M844304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: About SQL tracer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510326#M844305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start 2 sessions. In 1 u should run SQL trace and in another your program.&lt;/P&gt;&lt;P&gt;Follow this sequence&lt;/P&gt;&lt;P&gt;1) Start transaction ST05&lt;/P&gt;&lt;P&gt;2) Select checkbox SQL trace&lt;/P&gt;&lt;P&gt;3) Activate trace&lt;/P&gt;&lt;P&gt;4) Execute your program in another session&lt;/P&gt;&lt;P&gt;5) Deactivate the trace&lt;/P&gt;&lt;P&gt;6) Display trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the list of tables accessed and the corresponding selects. The table access which takes long time will be displayed in red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details check the foll. link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/erp2005_ehp_03/helpdata/EN/75/97ea08f4832c4b9feb80aa653f0d26/frameset.htm" target="test_blank"&gt;http://help.sap.com/erp2005_ehp_03/helpdata/EN/75/97ea08f4832c4b9feb80aa653f0d26/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510326#M844305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: About SQL tracer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510327#M844306</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: 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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Starting the Trace:&lt;/STRONG&gt;&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;&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 &lt;/P&gt;&lt;P&gt;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;&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.  Typical filter criteria are: the name of the user, transaction name, process name, and program name.&lt;/P&gt;&lt;P&gt;&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;&lt;STRONG&gt;Stopping the Trace:&lt;/STRONG&gt;&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;&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;&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;&lt;STRONG&gt;Analyzing a Sample trace data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PREPARE: Prepares the OPEN statement for use and determines the access method.&lt;/P&gt;&lt;P&gt;&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;&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, 11 Mar 2008 12:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510327#M844306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: About SQL tracer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510328#M844307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi    &lt;STRONG&gt;Surendranath&lt;/STRONG&gt; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30 &lt;/P&gt;&lt;P&gt;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;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;Regards.&lt;/P&gt;&lt;P&gt;Eshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-sql-tracer/m-p/3510328#M844307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:34:53Z</dc:date>
    </item>
  </channel>
</rss>

