‎2019 Dec 09 12:11 PM
Hi Experts!
I need to build a program to monitor in realtime the execution of a program in SAP.
Similar the SQLTrace, where I can activate or deactivate the trace.
When I activate the trace, this program should read the memory variables and those values.
It could be a standard or Z program.
Any tips?
Thank you very much.
Best regards,
Evaristo.
‎2019 Dec 09 12:13 PM
maybe you need to restart by explaning what is your objective
‎2019 Dec 09 12:58 PM
Hi Frederic
Thank you for your answer.
Basically what I need, when a program is executed, I need be able to get its in memory variables names and values.
Thank you.
Best regards,
Evaristo.
‎2019 Dec 09 1:11 PM
Basicaly you will need to scan the source of the program : SCAN ABAP-SOURCE ...
it will gives you the list of variable
and after to access the content you could play with (program)variable (with field symbol assignment)
but ...
the problem is, the variable content will change, maybe quickly, and you have nothing to say to your trace : take a screenshot
for my point of view, it is more easy to play with Ball Log.
Create a class that activate a ball log, with a trace level. In each program you have to use this class at specific moment.
If you have issu in production system, you just have to increase the trace level to have all detail information
‎2019 Dec 09 7:12 PM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area. At the same time, the person will be informed of your comment (currently not).
‎2019 Dec 09 1:39 PM
Transaction SAT? Debugger script? Like Frederic, I don't get your objective, so I can't answer precisely.
‎2019 Dec 10 5:34 AM
Are you looking for something like transaction S_MEMORY_INSPECTOR.
To create snapshot from program, select main menu - System - Utilities - Memory Analysis - Create snapshot
then go to S_MEMORY_INSPECTOR to analyse it.