Application Development and Automation 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: 
Read only

Read memory variables

Evaristo
Explorer
0 Likes
1,769

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.

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
1,581

maybe you need to restart by explaning what is your objective

Read only

Evaristo
Explorer
0 Likes
1,581

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.

Read only

0 Likes
1,581

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

Read only

1,581

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

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,581

Transaction SAT? Debugger script? Like Frederic, I don't get your objective, so I can't answer precisely.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,581

Hi Evaristo Broullon Couso

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.