08-21-2007 1:09 PM
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
08-21-2007 1:13 PM
Hi Anand,
In the ABAP Stack of the New ABAP Debugger i guess we can see all the function calls it makes.
Regards,
Sai
08-21-2007 1:16 PM
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
08-21-2007 1:18 PM