How to Measure Execution Time

You can improve the performance of your code by measuring execution time of your program.

You can use SAP Standard tools for over all performance of you program. The SAP Standard tools are

* Run Time Analysis (SE30)
* SQL Trace (ST05)

Apart from these tool you can measure your block of code with simple ABAP coding. But you can do it during development phase only. At the end you have to remove the coding. This technique of measuring code can be helpful if you want top tweak your select queries.

GET TIME STAMP FIELD t1.
*Block of Code

...................

GET TIME STAMP FIELD t2.

runtime = t2 - t1.

Comments

  1. There is another statement in ABAP:
    GET RUN TIME FIELD rtime.
    rtime has type i.

    ReplyDelete

Post a Comment

Popular posts from this blog

ABAP Tips - 1 : How to Display a Popup and Get Values from User ?

Help on BAPI_ACC_DOCUMENT_POST and BAPI_ACC_DOCUMENT_POST

Few Tips for Transport Request Manipulation