2017 Apr 27 12:10 PM
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
2017 Apr 27 12:48 PM
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*
2017 Apr 27 12:48 PM
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*
2017 Apr 28 5:36 AM
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.
2017 Apr 28 6:35 AM
2017 Apr 27 3:28 PM
no chance w/o activating trace? in the debugger there is a part of the stack.
2017 Apr 28 6:46 AM
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.
2017 Apr 28 8:50 AM
Hi,
FM SYSTEM_CALLSTACK can be used to get all the call stack of any program. Hope it helps.
Thanks
2017 Apr 28 10:42 AM
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 🙂