<?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: diff between runtime analysis  and sql trace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-runtime-analysis-and-sql-trace/m-p/2934121#M691408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE30 - Runtime Analysis Tool &lt;/P&gt;&lt;P&gt;This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP dialog/reports programs. In the Analyze button, you can see four more buttons like:- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hit List &lt;/P&gt;&lt;P&gt;Displays the execution time of each statement in the program. &lt;/P&gt;&lt;P&gt;Tables &lt;/P&gt;&lt;P&gt;Displays the tables accessed during run time. &lt;/P&gt;&lt;P&gt;Group hit list &lt;/P&gt;&lt;P&gt;Displays the execution time of all the statements and grouping them based on the type of command. e.g. performs, SQL and internal tables used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction SE30 &lt;/P&gt;&lt;P&gt;Type in the transaction code you want to analyze &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.6x &lt;/P&gt;&lt;P&gt;In the Restriction section: select the TMP -&amp;gt; Temporary variant &lt;/P&gt;&lt;P&gt;Click the Change button &lt;/P&gt;&lt;P&gt;Click the Duratn/type &lt;/P&gt;&lt;P&gt;Select None for Aggregation &lt;/P&gt;&lt;P&gt;Save the variant and execute again &lt;/P&gt;&lt;P&gt;After finishing the process, click back to SE30 &lt;/P&gt;&lt;P&gt;Use F3 to move back to the initial screen of SE30 &lt;/P&gt;&lt;P&gt;Click the Analyze Button &lt;/P&gt;&lt;P&gt;Click Goto -&amp;gt; Object-centered hit list -&amp;gt; Database tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you want to display the data for MSEG - Material Document table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction SE16 &lt;/P&gt;&lt;P&gt;Type in MSEG for Table name and click execute. &lt;/P&gt;&lt;P&gt;Data Browser will display the default selection for you to display data. If you did not change the default and click execute the data browser will display the first 500 records. &lt;/P&gt;&lt;P&gt;Click Settings to change the List formats, User parameters and Fields for selection. &lt;/P&gt;&lt;P&gt;In 4.6x, you can use SE16N. &lt;/P&gt;&lt;P&gt;Transaction SE11 or SE12 (4.6x) &lt;/P&gt;&lt;P&gt;Type in MSEG for Object name and click the Display button. &lt;/P&gt;&lt;P&gt;Click Utilities -&amp;gt; Table contents for the default selection screen. If you did not change the default and click execute, the Dictionary will display the first 500 record. &lt;/P&gt;&lt;P&gt;Click Settings to change the List formats, User parameters and Fields for selection. &lt;/P&gt;&lt;P&gt;Transaction SE17 &lt;/P&gt;&lt;P&gt;Type in the Table Name, put in the Selection value, put a 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's checks program execution time in microseconds. When you go to T.Code SE30.if you give desired program name in performance file. YOu can find some Tips&amp;amp;Tricks by SAP to improve your program performance.&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;You can use this for :BDCs, SCRIPTS(Print Programs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you really have no idea, why a report is slow, then you have to start with SE30 (runtime analysis).&lt;/P&gt;&lt;P&gt;There are three bargraphs: ABAP / database / system.&lt;/P&gt;&lt;P&gt;System should be more or less nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ABAP is bigger than database: have a look at slow abap-statements (normally operations with internal tables: read, delete, loop where,...); classic reason: to much reads without binary search / sorted table / hashed table use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If database is bigger than ABAP: have a look at your SQL statements. If you can see already forgotten key fields, fine - otherwise SQL trace will bring help in analyzing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A SQL trace itself says nothing about overall performance (which is done by runtime analysis), only about database part. But 'normally' programmers have their ABAP-part in control and struggle only with slow selects: that's the reason, why often SQL trace is used immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the SQL trace you can find,&lt;/P&gt;&lt;P&gt;1. are there recurrsive database calls&lt;/P&gt;&lt;P&gt;2. What index a particular selecte statement is using&lt;/P&gt;&lt;P&gt;3. What is the cost per database read&lt;/P&gt;&lt;P&gt;4. Which database read is taking more time, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Runtime Analysis tool(SE30) measures ABAP/4 statements that are potentially expensive in terms of CPU time. The most significant of these are:&lt;/P&gt;&lt;P&gt;Statement used for database access like select.&lt;/P&gt;&lt;P&gt;Statement used for modularization such as module, perform, call function.&lt;/P&gt;&lt;P&gt;Internal table statements like append, collect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL trace is a tool(ST05), which allows displaying and analyzing the contents for the database calls, which are made by the reports and transactions written in ABAP/4. It monitors programs and transactions on the database level. With the help of this facility for every open SQL instructions, you can display, about which SQL Embedded (DECLARE, OPEN, FETCH) Statement have been executed, besides analyzing the system performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace is a performance analysis tool that shows how open SQL statements are converted into native SQL statements. It basically helps you to identify whether your OPEN SQL statements written in your program are accessing the database in an efficient performance intensive way or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Runtime analysis tool allows you to examine the performance of any ABAP programs, such as reports, subroutines, function modules or classes, that you create in the ABAP Workbench. It saves its results in performance data files, which you can display as lists. You can use these results to identify runtime-intensive statements, to combine table accesses, and show the hierarchy of program calls. &lt;/P&gt;&lt;P&gt;From the results of the runtime analysis, you can identify:&lt;/P&gt;&lt;P&gt;1. Excessive or unnecessary use of modularization units&lt;/P&gt;&lt;P&gt;2. CPU-intensive program functions&lt;/P&gt;&lt;P&gt;3. User-specific functions that could be replaced with ABAP statements&lt;/P&gt;&lt;P&gt;4. Inefficient or redundant database access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE30 simply gives you an overview of the time spent on the application processing against the time spent selecting from the database. ST05 give an overview of exactly how the program is hitting against the database and shows you the indiviual SQL statements used with which index was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUNTIME ANALYSIS&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="91596"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL TRACE&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27905"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 11:32:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T11:32:02Z</dc:date>
    <item>
      <title>diff between runtime analysis  and sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-runtime-analysis-and-sql-trace/m-p/2934120#M691407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;i want atleast 5 difference between RUNTIME ANALYSIS AND SQLTRACE&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;BASKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 11:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-runtime-analysis-and-sql-trace/m-p/2934120#M691407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: diff between runtime analysis  and sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-runtime-analysis-and-sql-trace/m-p/2934121#M691408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE30 - Runtime Analysis Tool &lt;/P&gt;&lt;P&gt;This runtime analysis tools allows the ABAP/4 programmer to trace the tables used by the SAP dialog/reports programs. In the Analyze button, you can see four more buttons like:- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hit List &lt;/P&gt;&lt;P&gt;Displays the execution time of each statement in the program. &lt;/P&gt;&lt;P&gt;Tables &lt;/P&gt;&lt;P&gt;Displays the tables accessed during run time. &lt;/P&gt;&lt;P&gt;Group hit list &lt;/P&gt;&lt;P&gt;Displays the execution time of all the statements and grouping them based on the type of command. e.g. performs, SQL and internal tables used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction SE30 &lt;/P&gt;&lt;P&gt;Type in the transaction code you want to analyze &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.6x &lt;/P&gt;&lt;P&gt;In the Restriction section: select the TMP -&amp;gt; Temporary variant &lt;/P&gt;&lt;P&gt;Click the Change button &lt;/P&gt;&lt;P&gt;Click the Duratn/type &lt;/P&gt;&lt;P&gt;Select None for Aggregation &lt;/P&gt;&lt;P&gt;Save the variant and execute again &lt;/P&gt;&lt;P&gt;After finishing the process, click back to SE30 &lt;/P&gt;&lt;P&gt;Use F3 to move back to the initial screen of SE30 &lt;/P&gt;&lt;P&gt;Click the Analyze Button &lt;/P&gt;&lt;P&gt;Click Goto -&amp;gt; Object-centered hit list -&amp;gt; Database tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you want to display the data for MSEG - Material Document table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction SE16 &lt;/P&gt;&lt;P&gt;Type in MSEG for Table name and click execute. &lt;/P&gt;&lt;P&gt;Data Browser will display the default selection for you to display data. If you did not change the default and click execute the data browser will display the first 500 records. &lt;/P&gt;&lt;P&gt;Click Settings to change the List formats, User parameters and Fields for selection. &lt;/P&gt;&lt;P&gt;In 4.6x, you can use SE16N. &lt;/P&gt;&lt;P&gt;Transaction SE11 or SE12 (4.6x) &lt;/P&gt;&lt;P&gt;Type in MSEG for Object name and click the Display button. &lt;/P&gt;&lt;P&gt;Click Utilities -&amp;gt; Table contents for the default selection screen. If you did not change the default and click execute, the Dictionary will display the first 500 record. &lt;/P&gt;&lt;P&gt;Click Settings to change the List formats, User parameters and Fields for selection. &lt;/P&gt;&lt;P&gt;Transaction SE17 &lt;/P&gt;&lt;P&gt;Type in the Table Name, put in the Selection value, put a 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's checks program execution time in microseconds. When you go to T.Code SE30.if you give desired program name in performance file. YOu can find some Tips&amp;amp;Tricks by SAP to improve your program performance.&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;You can use this for :BDCs, SCRIPTS(Print Programs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you really have no idea, why a report is slow, then you have to start with SE30 (runtime analysis).&lt;/P&gt;&lt;P&gt;There are three bargraphs: ABAP / database / system.&lt;/P&gt;&lt;P&gt;System should be more or less nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ABAP is bigger than database: have a look at slow abap-statements (normally operations with internal tables: read, delete, loop where,...); classic reason: to much reads without binary search / sorted table / hashed table use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If database is bigger than ABAP: have a look at your SQL statements. If you can see already forgotten key fields, fine - otherwise SQL trace will bring help in analyzing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A SQL trace itself says nothing about overall performance (which is done by runtime analysis), only about database part. But 'normally' programmers have their ABAP-part in control and struggle only with slow selects: that's the reason, why often SQL trace is used immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the SQL trace you can find,&lt;/P&gt;&lt;P&gt;1. are there recurrsive database calls&lt;/P&gt;&lt;P&gt;2. What index a particular selecte statement is using&lt;/P&gt;&lt;P&gt;3. What is the cost per database read&lt;/P&gt;&lt;P&gt;4. Which database read is taking more time, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Runtime Analysis tool(SE30) measures ABAP/4 statements that are potentially expensive in terms of CPU time. The most significant of these are:&lt;/P&gt;&lt;P&gt;Statement used for database access like select.&lt;/P&gt;&lt;P&gt;Statement used for modularization such as module, perform, call function.&lt;/P&gt;&lt;P&gt;Internal table statements like append, collect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL trace is a tool(ST05), which allows displaying and analyzing the contents for the database calls, which are made by the reports and transactions written in ABAP/4. It monitors programs and transactions on the database level. With the help of this facility for every open SQL instructions, you can display, about which SQL Embedded (DECLARE, OPEN, FETCH) Statement have been executed, besides analyzing the system performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace is a performance analysis tool that shows how open SQL statements are converted into native SQL statements. It basically helps you to identify whether your OPEN SQL statements written in your program are accessing the database in an efficient performance intensive way or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Runtime analysis tool allows you to examine the performance of any ABAP programs, such as reports, subroutines, function modules or classes, that you create in the ABAP Workbench. It saves its results in performance data files, which you can display as lists. You can use these results to identify runtime-intensive statements, to combine table accesses, and show the hierarchy of program calls. &lt;/P&gt;&lt;P&gt;From the results of the runtime analysis, you can identify:&lt;/P&gt;&lt;P&gt;1. Excessive or unnecessary use of modularization units&lt;/P&gt;&lt;P&gt;2. CPU-intensive program functions&lt;/P&gt;&lt;P&gt;3. User-specific functions that could be replaced with ABAP statements&lt;/P&gt;&lt;P&gt;4. Inefficient or redundant database access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE30 simply gives you an overview of the time spent on the application processing against the time spent selecting from the database. ST05 give an overview of exactly how the program is hitting against the database and shows you the indiviual SQL statements used with which index was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUNTIME ANALYSIS&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="91596"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL TRACE&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27905"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 11:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-runtime-analysis-and-sql-trace/m-p/2934121#M691408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T11:32:02Z</dc:date>
    </item>
  </channel>
</rss>

