Skip to Content
0

ABAP stack, get stack due to save

Apr 27, 2017 at 11:10 AM

89

avatar image

Hi all,

I want to analyze some customer specific functionalities in user exits, BADIs etc.

My requirement: VT01N or VT02N will be called (for new document or change of existing documents). In the last user exit for saving changes I want to store all processed sub routines / function modules etc. which were processed in the user exits and BADIs etc. in a customer table. Then I will create a report where I can scan the processed routines / function modules etc. to analyze something...

My question: Is there any possibility to get all processed objects in one step without adding a "INSERT INTO TABLE" in all exits and includes etc.?

Thanks for help, best regards

Michael

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Sandra Rossi Apr 27, 2017 at 11:48 AM
3

Activate the ABAP trace (SAT/SE30/ST12) from the place you want and stop where you want. You may read the trace using classes CL_ABAP_TRACE*

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Sandra,

"from the place you want and stop where you want" -Interesting.

So far I was in the impression that trace can be taken on a whole for a transaction. Is it really possible to activate & deactivate the trace from a paritcular point to a particular point of process flow in an ABAP Program ?

put a break point at a particular place in the program

run the program

once it reaches the break-point,then activate the trace

continue with program execution

once it reaches a particular point in the program,deactivate the trace .

Kindly let me know is this what you mean ? Thanks.

K.Kiran.

0
yes, thank you for detailing, that's exactly the way to go. In SAT, there's an option to activate the trace for an ongoing workprocess.
0
Michael Geist Apr 27, 2017 at 02:28 PM
0

no chance w/o activating trace? in the debugger there is a part of the stack.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

That would be nice to have the trace activated from the debugger, but unfortunately I don't think this feature was developed.

Addendum: by the way, a debugger script could be also easily developed (does a standard one already exist?) to save the stack everytime there is a +1/-1 in the stack, and display it in some way.

0
Always Learner Apr 28, 2017 at 07:50 AM
0

Hi,

FM SYSTEM_CALLSTACK can be used to get all the call stack of any program. Hope it helps.

Thanks

Share
10 |10000 characters needed characters left characters exceeded
Michael Geist Apr 28, 2017 at 09:42 AM
0

no, because I would need to add this f/m in all includes etc. where I need the information.

I am trying to copy report of transaction SAT because the trace result contains all information I need, I will try to organize the result by another way.

Thanks for help, if anyone has any idea please let me know :)

Share
10 |10000 characters needed characters left characters exceeded