Runtime Analysis FAQS

1. Whats runtime analysis in detail
2. whats is sql trace in detial.
3. what is the diff between watch point and break point?
4. what is al21
please tell me these answers of this question.

Hi
<b>Whats runtime analysis in detail</b>
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.
In Transaction SE30, fill in the transaction name or the program name which needs to be analyzed for performance tuning.
For our case, let this be “ZABAP_PERF_TUNING”
After giving the required inputs to the program, execute it. After the final output list has been displayed, PRESS the “BACK” button.
On the original SE30 screen, now click on “ANALYZE” button.
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.
2<b>. whats is sql trace in detial.</b>
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.
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.
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.
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.
Starting the Trace:
To analyze a trace file, do the following:
Choose the menu path Test &#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.
Using the selection buttons provided, set which trace functions you wish to have switched on (SWL trace, enqueue trace, RFC trace, table buffer trace).
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.
Now run the program to be analyzed.
Stopping the Trace:
To deactivate the trace:
Choose Test &#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.
Select the trace functions that you want to switch off.
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-
Analyzing a Sample trace data:
PREPARE: Prepares the OPEN statement for use and determines the access method.
OPEN: Opens the cursor and specifies the selection result by filling the selection fields with concrete values.
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.
/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
<b>3. what is the diff between watch point and break point?</b>
<b>Breakpoints</b>
Instead of starting an ABAP program directly in the Debugger, you can also debug a program by creating one or more breakpoints in the program. A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the Debugger. The program runs normally until the breakpoint is reached.
There is also a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change. For further information, refer to Watchpoints.
<b>Watchpoints</b>
Like a breakpoint, a watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger.
<b>4. what is al21</b>
Performance Analyzie(al21)
<b>Reward if usefull</b>

Similar Messages

  • ABAP Runtime Analysis

    Hello,
    We have very poor performance on your ERP ECC 6.0 EHP 3 system. We are using MaxDB 7.7.
    We have done a abap runtime analysis (SE30) on transaction code FD03.
    The result is the following:
    http://img13.imageshack.us/img13/659/fd03.png
    How can we solve this? And why is the system and abap execution time equal to zero?
    Regards,
    Vrmr

    Hi,
    Please perform SQL trace using ST05. Look at the action in SM50 where it is taking more time.
    Check the CPU/MEMORY bottleneck issue at DB Server using ST02 and ST06.
    Also refer the following useful links to get more info.
    [FAQ's, intros and memorable discussions in the Performance and Tuning Forum|FAQ's, intros and memorable discussions in the Performance and Tuning Forum]
    [SAP ABAP Runtime Analysis - SE30|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30864e70-77b9-2c10-449b-e0e584f73e8c?quicklink=index&overridelayout=true]
    [SE30 -Measurement Overview|http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617d2ae68c11d2b2ab080009b43351/frameset.htm]
    Regards,
    Bhavik G. Shroff

  • Analysing details of SQL trace and runtime analysis for a report.

    Hi,
    I am trying to tune the performance of a Z ABAP report for target group export. A brief overview of what is done in the report is the retrieval of BP details present in the Target group including BP general, address, marketing attributes, person responsible and contact person details. As the target groups can be quite huge (around 6000 BPs), the report gives performance issues. I want to understand on how to analyse the details which I obtained from the run time analysis and SQL trace and on how to take it forward.
    Any inputs in this regard would be helpful.
    Thanks in advance,
    Anushree

    In Runtime analysis Look for
    ABAP -  In your ABAP code
    DATABASE  -  It shows the performance of your SELECT statements in your program.
    Just check how much % it is showing for both.
    Check for following in your code.
    1) Avoid SELECT *
    2) Clear internal tables values which are not required at the ending of program, as it saves memory
    etc.

  • Runtime Analysis SE30

    Hi BW Gurus,
    i have my query based on a Virtual cube for BCS. I ran the query and its taking 14 minutes to give me the result. From RSRT i got the name of the program which run in the backend to generate the report. I took that program name and put it in SE 30 Runtime analysis.
    <b>ABAP</b> - 26,100 (microseconds)--- 71.4% (I have some user exit variables).
    <b>DATABASE</b> - 4678 (microseconds)----12.8% of total runtime
    <b>System</b> 5799 (microseconds)--15.8% of total runtime
    but the problem is I am using the same user exit variables in other queries and their response time is 3 seconds to 4seconds.
    can somebody help in where is the exact problem
    Q2) How to check that which SQL statements or database table is taking more time. where exactly we must put the breakpoint....
    i am not at all good in ABAP.
    Thanks will assign full points

    Hi A.H.P,
    thanks for the reply ...using ST05 do i have to first execute the query and then activate the trace or I can do it any time and later deactivate it.
    Also the exit variable is that whatever the period user enters it will give the starting period of that Quarter. Like if user gives 005.2007 the data will be calculated for
    period 004 (since its the starting point of the Quarter 2 [4,5,6] ) and period 005.
    Yes it is derived from the other variable so the range I give is this
    custom exit.. to... 0GMTO(which is fiscal year/period).
    Can you please give your inputs Will assign full points

  • Runtime analysis for a Method

    Hi,
    Need some help on how to find the Runtime Analysis for a method in Class, as i am getting some performance issues with the statements in the method. 
    Please let me know ASAP about this Runtime Analysis for a method in a class

    In Runtime analysis Look for
    ABAP -  In your ABAP code
    DATABASE  -  It shows the performance of your SELECT statements in your program.
    Just check how much % it is showing for both.
    Check for following in your code.
    1) Avoid SELECT *
    2) Clear internal tables values which are not required at the ending of program, as it saves memory
    etc.

  • Search FM for time analysis like(SE30 Runtime Analysis)

    I want to use JCO to establish a time analyser. which can calculate the running time from bapis, just like the information from "SE30 Runtime Analysis". Is there a special Function Model for this usage?
    Or actually it is impossible for JCO to resolve such a problem?
    thanks in advance
    regards

    I am working with 4.6C.
    In SE30 I gave the Program Name --> Execute.
    BACK > Analyse> Runtime Analysis Evaluation  Overview
    On Pressing  Icon HIT LIST --> The List will be displayed with CALL, GROSS, PROGRAM NAME, NET.
    Now where can I find the Index used?
    Help me out?
    Regards,
    Viji

  • Program not in Library -- In ABAP Runtime Analysis SE30.. Plz Guide me guys

    Dear all,
    I have to execute one report program in SE30 ABAP Runtime Analysis tool. 
    So I have entered my program name in the SE30 but I have got 1 error  " Program ( pgm name ) not in Library ".
    Guys plz guide me on this asap.
    Edited by: PI User on Nov 26, 2010 11:14 AM
    Moderator message: too basic, too much SMS speak, too much "asap", thread locked, points removed.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Nov 26, 2010 12:33 PM

    Hi
    The error message is clear: the program you're trying to test by SM30 is not SAP (your SAP system of course)
    Now try to check if you can see that program by SE38, but if you think the program is in SAP, prehaps you're running SM30 in another system:
    For example:
    the program was created in development system and you run SM30 in quality and that program hasn't been transported yet: so the program is in development but not in quality.
    Max

  • SE30 - Runtime Analysis Tool

    hi,
    What is the use of SE30 - Runtime Analysis Tool?
    thnks.

    HI,
    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:-
    Hit List
    Displays the execution time of each statement in the program.
    Tables
    Displays the tables accessed during run time.
    Group hit list
    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.
    Hirarchy
    Displays the execution time of each statement in the actual order in which were executed.  Uses indentation to indicate the level of nesting of statements within subroutines.
    Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
    Go to transaction SE30
    Type in the transaction code you want to analyze
    4.6x
    In the Restriction section: select the TMP -> Temporary variant
    Click the Change button
    Click the Duratn/type
    Select None for Aggregation
    Save the variant and execute again
    After finishing the process, click back to SE30
    Use F3 to move back to the initial screen of SE30
    Click the Analyze Button
    Click Goto -> Object-centered hit list -> Database tables
    3.0x
    Click Execute
    After finishing the process, click back to SE30
    Click the Analyze Button
    Click the Table Button
    After retrieving the table names, you can check the raw data with transaction SE16 - Data Browser or SE11 - Dictionary.
    For example, if you want to display the data for MSEG  - Material Document table
    Transaction SE16
    Type in MSEG for Table name and click execute.
    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.
    Click Settings to change the List formats, User parameters and Fields for selection.
    In 4.6x, you can use SE16N.
    Transaction SE11 or SE12 (4.6x)
    Type in MSEG for Object name and click the Display button.
    Click Utilities -> 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.
    Click Settings to change the List formats, User parameters and Fields for selection.
    Transaction SE17
    Type in the Table Name, put in the Selection value,  put a 'X' in the Output column to display the data field and put in the Sort number from 01..99 (if you want to sort).
    Cheers,
    Chandra Sekhar.

  • Runtime analysis(SE30) for a Background job

    Hi Experts,
    How to get runtime analysis for a Background job in SE30 transaction. Please advise.
    Thanks in advance,
    Vivenchandar R

    Measuring External Processes
    Use
    The runtime analysis allows you to switch into work processes that are already running and to measure the runtime of dialogs running in them as though they were running in the current session. You can have up to ten external sessions, which may be of any type – for example, dialog, update, or spool. This runtime analysis variant is ideal for monitoring long-running background jobs.
    Filename and Directory
    If you do not want to use the default filename and directory to store files, you can change them using the profile parameter abap/atrapath. If the profile parameter does not contain an entry at all, an error occurs when you start the runtime analysis.

  • Need to set switch on & off in runtime analysis

    hi friends,
          when ever i execute the object ,does it need to  switch on &off regularly, plz anybody tell me how to set the switch on & off before executing the runtime analysis.  when i tried this , i got a problem like ' plz set the particular field. i have not understand .  plz help me.
                                     regards,
                                      ibrahim

    Hi,
    See this Link [switch on & off in runtime analysis|http://software.feedfury.com/content/22726194-sap_abap_run_time_analasis.html]  It is Helpful for you..
    Regards
    Ranga

  • Runtime analysis

    How to reduse ABAP and Database Execution Time in Runtime Analysis to increae Performance Issue

    Hi,
    you can calculate runtime like this:
    TABLES: MARA.
    Messungs von Laufzeiten zwischen Anweisungen.
    DATA: UZEIT             LIKE SY-UZEIT.
    DATA: DATUM             LIKE SY-DATUM.
    DATA: MMSEC             TYPE I.
    DATA: LF_TIMESTAMP      TYPE TIMESTAMP.
    Beim 1. Aufruf von get rfun time ist mmsec 0.
    GET RUN TIME FIELD MMSEC.
    GET TIME STAMP FIELD LF_TIMESTAMP.
    CONVERT TIME STAMP LF_TIMESTAMP
            TIME ZONE  SY-ZONLO
            INTO
            DATE DATUM
            TIME UZEIT.
    WRITE: / DATUM, UZEIT, MMSEC.
    SELECT * FROM MARA.
    ENDSELECT.
    GET RUN TIME FIELD MMSEC.
    GET TIME STAMP FIELD LF_TIMESTAMP.
    CONVERT TIME STAMP LF_TIMESTAMP
            TIME ZONE  SY-ZONLO
            INTO
            DATE DATUM
            TIME UZEIT.
    WRITE: / DATUM, UZEIT, MMSEC.
    Here you can get performance-examples:
    SE38->ENVIRONMENT->EXAMPLES->PERFORMANCE EXAMPLES
    Hope it helps.
    Regards, Dieter

  • Hit list in Runtime analysis

    Hello Developers,
    i want to see the list of all tables and Function modules called during Price calculation during Sales order creation, so i have created a variant in runtime analysis and activated the runtime analysis just before calculating prices by using systemutilitiesruntime analysis--active. but i am getting the following message
    "The "Particular units" option is not selected".
    can anyone please let me know how to activate this during runtime.
    Thanks in advance and i will assure points for useful answer.
    Rgds,
    Mohan.

    To whoever this may help facing the "The "Particular units" option is not selectedThe "Particular units" option is not selected" problem..
    I also faced this issue.. and breaking my head trying different options..searching net.. cursing the tool.. finally found reason it did not work for me...
    IT DOES NOT WORK WHEN YOU TRY TO SWITCH ON TRACE IN NEW DEBUGGER!
    I switeched to 'classical' debugger, then I could swich on and off the trace.. I think it is because new debugger starts new session.. Sadly I did not find this issue/solution mentioned anywhere...
    I hope this can help someone and save time..
    Best Regards,
    Abhijit

  • Runtime analysis for an RFC function Module

    Hi,
    How to get an Runtime analysis for an RFC function Module?
    I have an RFC function Module I am using it for a WEB INTERFACE . For this function Module I need to get Runtime Analysis.
    Please do not duplicate or cross post
    Edited by: Rob Burbank on Feb 21, 2009 11:42 AM

    Total Questions:  40 (39 unresolved)
    Duplicate thread locked.
    Rob

  • What is  RunTime Analysis Tool

    shankar

    Please   go this   below Explaination .
    <b>SE30 - Runtime Analysis Tool</b>
    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:-
    Hit List
    Displays the execution time of each statement in the program.
    Tables
    Displays the tables accessed during run time.
    Group hit list
    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.
    Hirarchy
    Displays the execution time of each statement in the actual order in which were executed.  Uses indentation to indicate the level of nesting of statements within subroutines.
    Any tables use by the transaction or program can be easily trace with the runtime analysis tools.
    <b>Go to transaction SE30</b>
    Type in the transaction code you want to analyze
    <b>4.6x</b>
    In the Restriction section: select the TMP -> Temporary variant
    Click the Change button
    Click the Duratn/type
    Select None for Aggregation
    Save the variant and execute again
    After finishing the process, click back to SE30
    Use F3 to move back to the initial screen of SE30
    Click the Analyze Button
    Click Goto -> Object-centered hit list -> Database tables
    <b>3.0x</b>
    Click Execute
    After finishing the process, click back to SE30
    Click the Analyze Button
    Click the Table Button
    After retrieving the table names, you can check the raw data with transaction SE16 - Data Browser or SE11 - Dictionary.
    For example, if you want to display the data for MSEG  - Material Document table
    Transaction SE16
    Type in MSEG for Table name and click execute.
    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.
    Click Settings to change the List formats, User parameters and Fields for selection.
    In 4.6x, you can use SE16N.
    Transaction SE11 or SE12 (4.6x)
    Type in MSEG for Object name and click the Display button.
    Click Utilities -> 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.
    Click Settings to change the List formats, User parameters and Fields for selection.
    Transaction SE17
    Type in the Table Name, put in the Selection value,  put a 'X' in the Output column to display the data field and put in the Sort number from 01..99 (if you want to sort).
    <b>if the  above is not clear  go through this link</b>
    <a href="http://www.sap-basis-abap.com/sapta002.htm">http://www.sap-basis-abap.com/sapta002.htm</a>
    Reward  points if it is usefull ..
    Girish

  • Can we perform runtime analysis(SE30) on Abap Webdynpro component..?

    hi,
    Greetings!!!
    Can we perform runtime analysis(SE30) on Abap Webdynpro component..?
    Thanks in Advacne.
    Regards,
    Kranthi.

    for sure !
    have a look here [https://wiki.sdn.sap.com/wiki/display/WDABAP/Performance%20Tuning%20for%20SAP%20%20Web%20Dynpro%20ABAP|https://wiki.sdn.sap.com/wiki/display/WDABAP/Performance%20Tuning%20for%20SAP%20%20Web%20Dynpro%20ABAP]

Maybe you are looking for

  • Problem with installing Visual Studio on Windows 8

    Hi  I am disappointed to buy windows 8 based machine. I installed visual studio 2013 on Windows 7 machine and it was compiling well But i installed same on my windows 8 machine. But i am not able to compile simple program Below is program #include<st

  • Another Error (I think) In the 12.1 New Features Guide

    Under section 1.5.9.8 Storage Snapshot Optimization: The first bullet point is: "Database crash is consistent at the point of the snapshot." I think that is supposed to be: "Database is crash-consistent at the point of the snapshot." At the very leas

  • GR Proc. Time in Standard Purchase Orders

    Dear Experts, I would like to ask where the GR proc. time in a standard PO is taken from? Is it from MRP 2 in the material master? I tried it out. I have a material with a GR processing time of 3 days. I converted a purchase requisition and the GR pr

  • [Urgent] Queues are blocked in status SYSFAIL

    Hi experts, I have the following problem that arose unexpectedly in an XI 3.0 installation: Queues are blocked in SYSFAIL status and when I click on one entry, I get message: XI Error CLIENT_RECEIVE_FAILED.INTERNAL: Queue stopped It seems to me that

  • Router based activity  and method call issue

    Hi All Iam presently working of Router based task flow(Bounded task flow) and page fragments here in above router based task flow i have used the method call. In above method call i return status ,and on basis of that status i redirect it to success