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: 

ABAP stack, get stack due to save

michael_geist4
Explorer
0 Kudos

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

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

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*

7 REPLIES 7

Sandra_Rossi
Active Contributor

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*

0 Kudos

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 Kudos
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.

michael_geist4
Explorer
0 Kudos

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

0 Kudos

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.

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi,

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

Thanks

michael_geist4
Explorer
0 Kudos

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 🙂