Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Trace of ABAP Debugger

anand_nidamanuru
Active Participant
0 Kudos

Hi All,

Suppose if I am testing a program/function/class module etc.

Is there a way to find out all the statements that are executed from the start till the end of the module (program/function/class module)?

For Eg: Suppose there is a function A

1) A Calls B

2) B is executed completely

3) B returns to A

4) A calls C

Now the trace should give

1) Statements executed in A

2) Call to B, Statements executed in B

3) Now the statements in A and then C,...

I know that this is a kind of strange idea, but if there is any such functionality it would be very useful. I got this idea, when I found that there are classes like CL_FUNCTION_BUILDER, CL_FB_FUNCTION_EDITOR, CL_WB_NAVIGATOR (work bench navigator), that are used in the background while testing a function.

Please let me know if it is possible.

Thanks,

Anand

3 REPLIES 3

Former Member
0 Kudos

Hi Anand,

In the ABAP Stack of the New ABAP Debugger i guess we can see all the function calls it makes.

Regards,

Sai

0 Kudos

Hi Sai,

No the ABAP Stack contains the stack at a given snapshot.

Suppose A calls B, B returns, A calls C... Now if we see the stack it will have just C, A...

Also when new reports/programs are submitted, only the submitted program stack we can see...

There is a function, that gets the active stack for a function. I dont remember the name.

Thanks,

Anand

0 Kudos

Ok Anand,

I'll try to find it out for you.

Regards,

Sai