You are on page 1of 7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

You are here Sapnuts.com (/) Courses (/courses/) SAP ABAP (/courses/core-abap.html)
Performance Tuning in SAP ABAP (/courses/core-abap/performce-tuning.html)
Run-time analysis (/courses/core-abap/performce-tuning/run-time-analysis.html)

Run-time analysis
Last Updated: February 5th 2014 by Ashok Kumar Reddy (/user/ashokkumarreddy-1.html)

Check ef ciency of SAP ABAP programs and Function modules using SAP run-time analysis
+ Run-time analysis is used to check the ef ciency of a program or function module or t-code in terms of what is
the load on the database server, application server, presentation server etc.
The run-time analysis will display the load in a graph with %'s and the time in micro seconds.
The graph will be displayed with either red color or green color.
If the graph contains green color, then the program execution time is very good or very less.
If the graph contains red color, the program execution time is very bad or very long .
Always make sure the the load on database server should be less than 40% and should be green.
T-code for run-time analysis is SE30 or SAT(Latest Versions).

Example program on run time analysys in SAP ABAP


Program1: Create a program to get MARA details and display as below.
REPORTZSAN_SE30.
**RuntimeanalysisusingSE30
DATA:IT_MARATYPETABLEOFMARA.
DATA:WA_MARATYPEMARA.
SELECT*FROMMARAINTOTABLEIT_MARAUPTO500ROWS.

LOOPATIT_MARAINTOWA_MARA.
WRITE:/WA_MARAMATNR,WA_MARAMTART,WA_MARAMBRSH,WA_MARAMATKL,WA_MARAMEINS.
ENDLOOP.

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

1/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

Go to SE30, provide program name, click on execute button, the out put will bi displayed, click on back and click on
evaluate to see run-time analysis.

The result will be like below(may vary based on server capacity).

In the above image you can see ABAP and database layers are in red color, means the time taken to process these
layers is more.
Program:2

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

2/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

Now change the above program like below and test again.
REPORTZSAN_SE30.
TYPES:BEGINOFTY_MARA,
MATNRTYPEMARAMATNR,
MTARTTYPEMARAMTART,
MBRSHTYPEMARAMBRSH,
MATKLTYPEMARAMATKL,
MEINSTYPEMARAMEINS,
ENDOFTY_MARA.
**RuntimeanalysisusingSE30
DATA:IT_MARATYPETABLEOFTY_MARA.
DATA:WA_MARATYPEty_MARA.
SELECTMATNRMTARTMBRSHMATKLMEINSFROMMARAINTOTABLEIT_MARAUPTO500ROWS.
LOOPATIT_MARAINTOWA_MARA.
WRITE:/WA_MARAMATNR,WA_MARAMTART,WA_MARAMBRSH,WA_MARAMATKL,WA_MARAMEINS.
ENDLOOP.

Now go to SE30 and follow the above process.

Now the evaluation will be like below.

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

3/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

You can see the database layer is in green color means the standards are good.
A good program with coding standards always have database layers is in green color.

Learner Questions

No Questions by learners, be rst one to ask ..!!

Please Sign in to ask a question (/site/signin/)

Was this lesson helpful to you?

Yes

No

36 People out of 40 think this lesson helpful

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

4/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

Learn SAP Courses online, SAP Certi cation mock exams and SAP tutorials
SAP ABAP Tutorials, SAP ABAP Online Training, SAP Webdynpro for ABAP, Webdynpro for ABAP tutorials, Webdynpro
for ABAP online training, SAP Work ow training, SAP Online Training, SAP Certi cation, SAP Training, SAP mock
exams, SAP Exams, SAP ERP, SAP Interview questions, SAP ABAP interview Questions

SAP ABAP Course Content


SAP Introduction (/courses/core-abap/sap-intro.html)
SAP ABAP Consultant (/courses/core-abap/sap-abap-consultants.html)
System Landscape and Introduction to ABAP/4 (/courses/core-abap/system-landscape.html)
Data Dictionary (/courses/core-abap/data-dictionary.html)
Internal Tables and Work Areas (/courses/core-abap/internal-table-work-area.html)
Select Statements types (/courses/core-abap/select-statements.html)
Selection Screen Design using SAP ABAP (/courses/core-abap/selection-screen.html)
Modularization techniques in SAP ABAP (/courses/core-abap/modularization-in-abap.html)
Classical Reports in SAP ABAP (/courses/core-abap/classical-reports.html)
Interactive Reporting in SAP ABAP (/courses/core-abap/interactive-reports.html)
Menu painter in SAP (/courses/core-abap/menu-screen-painter.html)

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

5/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

ALV Reports (/courses/core-abap/alv-reports.html)


Sapscripts (/courses/core-abap/sapscripts.html)
Smartforms (/courses/core-abap/smartforms.html)
Batch Data Communication (/courses/core-abap/bdc.html)
Open SQL Statements in SAP ABAP (/courses/core-abap/open-sql.html)
SAP memory and ABAP memory (/courses/core-abap/SAP-abap-memory.html)
Performance Tuning in SAP ABAP (/courses/core-abap/performce-tuning.html)
Control break statements in sap abap (/courses/core-abap/control-break-statements.html)
Enhancements in SAP (/courses/core-abap/sap-enhcements.html)
BADI in SAP (/courses/core-abap/badi-sap.html)
SD and MM ows in SAP (/courses/core-abap/sd-mm.html)
Dialog Module Pool Programming (/courses/core-abap/module-pool.html)
String Operations and eld symbols (/courses/core-abap/strg-operations.html)
SAP ABAP real-time scenarios (/courses/core-abap/sap-abap-real-time.html)
MM Basics for ABAP Consultants (/courses/core-abap/sap-mm.html)
SD Basics for ABAP Consultants (/courses/core-abap/sd-basics-for.html)

Adsby Google

SapABAPTraining

Analysis

ItDataAnalysis

WhatIsRunTime

Lesson Navigation
SAP memory and ABAP memory (/courses/core-abap/SAP-abap-memory.html) Previous Lesson
Next Chapter Performance tuning ST05 (/courses/core-abap/performce-tuning/performce-tung-st05.html)

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

6/7

01/07/2016

RuntimeanalysisPerformanceTuninginSAPABAP|Sapnuts.com

2016 SAPNuts.com Contribute (/data/) Terms (/site/terms/) About (/site/about/) Contact (/site/contact/)
Feedback Facebook (http://www.facebook.com/sapnuts) Twitter (https://twitter.com/sapnuts) Google
(https://plus.google.com/+Sapnuts/)

https://www.sapnuts.com/courses/coreabap/performcetuning/runtimeanalysis.html

7/7