Skip to Content

ABAP stack, get stack due to save

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 27, 2017 at 11:48 AM

    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*

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 27, 2017 at 02:28 PM

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

    Add comment
    10|10000 characters needed 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.

  • Apr 28, 2017 at 07:50 AM

    Hi,

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

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2017 at 09: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 :)

    Add comment
    10|10000 characters needed characters exceeded