Skip to Content

Many times we come across a situation where we need to check the system/code performance while saving a Web UI contact and see what all standard and custom APIs, genil and BOL classes are getting called in the cycle. This may be to improve the performance of the code or to check the calling classes/APIs. Runtime analysis tool (transaction SE30) gives us the flexibility to achieve the same. Apart from its standard use we can use it for analyzing Web UI transaction as well. Here this document shows how to achieve this analysis.

How to measure performance and analyze a transaction using SE30 from Web UI:

Suppose we want to measure and analyze the time taken for editing a contract and see what all APIs, Genil classes and BOL classes etc., both standard and custom, have been called from WEB UI, we would have to follow the following steps:

1. Execute transaction SE30 and Click on Schedule “For User/Service”.

Untitled1.jpg

2. You will see a screen which shows the overview of scheduled measurements. Click on “New measurement”.

Untitled2.jpg

3. Enter details in the dialog box as shown below. Select the process category as ‘HTTP’ or Select ‘Any’. ‘HTTP’ will measure performance in HTTP applications like WEB UI. You may select ‘Any’ if there are no other dialog or background processes running with your User ID. Enter Expiration Time till you require the measurement to get over. You will need to adjust the time according to server time as shown in the dialog box. Then Click on new. Your session has started now, do not close the window.

Untitled3.jpg

4. Next Step is to perform whatever action you need to do on the Web UI. It is recommended to keep the Web UI screen ready before you start the measurement in SE30.

For Example: Edit and Save a contract in Web UI as shown below:

Untitled4.jpg

5. After the scheduled time is over, click on the back button of transaction SE30. You will see the initial screen of ABAP runtime analysis. Click on Other file.

Untitled5.jpg

6. Click on OK button on the pop up screen.

Untitled6.jpg

7. You will see list of all measurements sorted in the descending order. Click on the latest one which is placed at the top and click on analyze.

Untitled7.jpg

8. The runtime analysis overview screen will be seen. It shows the ABAP, Database and system time taken in the process. Click on the hit list for more details.

Untitled8.jpg

9. A detailed analysis on the process is shown. Click on the ‘Net’ column and sort the list in descending order. The ABAP objects that take most of the time are listed on top.

Untitled9.jpg

The “Call” column will also show all the APIs, Genil and BOL classes that are called from Web UI, including standard and custom.

Additional Information:

Using SE30 with a variant:

We can also analyze performance with filters on transaction, program, function modules and ABAP operations, etc. Enter a variant name and click on the new variant button and enter you user id. Then click on new:

Untitled10.jpg

You can enter up to 10 ABAP objects for measurement in the Programs tab.

Untitled11.jpg

On the statements tab, you can place filter for selected ABAP Statements:

Untitled12.jpg

Restrictions on SE30 Analysis:

  1. It is difficult to perform analysis of SQL Trace, Enqueue Trace and RFC Trace.
  2. Performance is also dependent on system load. Hence analysis should generally be done in quiet time.

Advantages of SE30:

1.   Multiple users can analyze at the same time unlike ST05 or ST12.

2.   In case you cannot find the cause of the performance problem or if you need further assistance for the analysis, contact the next support level or create an

      SAP customer message on component BO-SVCRM. Attach the runtime analyses, a detailed description of the performed steps and the related STAD

      records to the message.

Guidelines for analysis:

1.   While analyzing the trace, note the time taken for Open cursor and Fetch statements on Custom tables too along with the calls to ABAP objects like    

      function modules, classes, etc.

2.   The net time represents the time taken during the process call. Hence sort the list in descending order of the net time and you will get the calls that take

      most of the time on top of the list.

3.   The ‘Net %’ column represents the % of time taken in the call as compared to the total time taken for the process.

Hope you find this document helpful

To report this post you need to login first.

14 Comments

You must be Logged on to comment or reply to a post.

  1. Nikhil Moghe

    Hi Bhushan,

    I am new to CRM and this blog is an eye opener for me. I never knew that we can measure the WEBui performance using SE30. This blog is really helpful.

    Keep posting such good blogs. Your blogs will help me to learn SAP CRM quickly.

    (0) 
  2. Avnish Kumar

    This document is really very helpful to know the details of methods, classes etc. running behind any functionality on Web UI. Thanks for sharing. 🙂

    (0) 
  3. CRM Dev

    Very detailed step-by-step document for WebUI performance analysis.

    Thanks Bhushan for sharing this document. It will be really useful.

    (0) 

Leave a Reply