How to check the status of a running program

I guess I have an ABAP program that takes a lot of time. Therefore, I want to check what the program is doing at the moment, which line of code is running or which tables the program is writing at the moment.

I think there is a transaction for checking running programs. I'm right? If so?

+6
source share
3 answers

What you want to do is go to the process overview.

Transaction SM66 shows all active processes of the current system. This is especially useful if you have multiple application servers.

SM50 will show you all the processes of the current application server on which you are logged in. To view available application servers, go to SM51.

From the process overview (in SM66), you can click on the process and click on the Debug button.

Similarly, from the SM50 you can select Administration -> Program -> Debugging from the menu to debug the program.

You can determine the process in which your program is executed from the details of an element in the process overview.

Another thing you might want to do if you can test your program with a limited data set is to run through runtime analysis (transaction SE30 or SAT on new systems). This will make it easier to identify bottlenecks during processing.

+11
source

You can check the status of the ABAP process on a fairly limited scale using the SM50 overview. If the program runs in the background (and you have the appropriate permissions), you can debug the background job from transaction SM37 .

+3
source

If you turned to the database, in particular, it bothers you, you can use transaction ST05 to start SQL Trace. When you show the trace, it will show you the executable SQL statements and give them some information, for example, how long it took, how many records were returned, and what indexes were used. It also allows you to see where the statement was called in the source.

ST05 is a system-wide trace, but you can filter the trace by user name / transaction / program / table to narrow the results. Also note that only one trace can work at a time, so be sure to turn it off when you're done so that the next person can use it.

+2
source

Source: https://habr.com/ru/post/945678/


All Articles