AMDP Trace in ADT/HANA Studio ABAP Console

light111ABAP Console with AMDP Trace


In the last post Testing Method in ADT/HANA Studio ABAP Console  which was the introduction to the ABAP Console use in ADT/HANA Studio. Here in this post, will see one step further, how to trace an AMDP method with ABAP Console and analyze the trace deatils.

Usually if there is a performance bottleneck, that time we are interested to do a performance trace and analyze which part of the program take more time and try to improve that. As this is just a introduction to AMDP Trace from ADT with ABAP console , we just begin with a very basic native sql within AMDP procedure, just to know how to do a AMDP trace from ADT/hana studio ABAP Console.


Below is a class with an AMDP procedure with a simple select and then we have the ADT abap console method IF_OO_ADT_CLASSRUN~MAIN.

1

From RUN AS.. we can choose ABAP Application (Console)

3

 

The output displayed in the console.

2


Now its time to enable, the AMDP Trace. Just right click on the editor and choose as high lighted below-

4

The below screen appears.

5

Select – Enable AMDP Trace and Finish.

6

One you select Finish, the Execution happened and we can see the ABAP Console with output.

7

Now time is to check the AMDP Trace. From the Access Command  ( as highlighted) search for    ABAP Trace.

8

The popup screen appears once you select the Access Command Icon. I already searched for ABAP Traces and it appears  in my previous choices but for first time it may not show.

9

Just type- ABAP Traces in the search area and Select.

10

Now  the ABAp Traces is opened. Double Click on it to open the details-

11

Now here the link page to the details of the trace with few statistical information. Select any link/tab as highlighted  to see further details of AMDP trace.

12

Click on SHOW button.

13

It gives a more deeper view of the time taken by the database procedure during execution and fetch.

14

Hope this help at least how to take a trace of AMDP Procedure with ADT/HANA Studio ABAP Console.


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s