How to Debug a Completed SAP Background Job?

It is easy to debug an error job to find out the cause of the error. To debug the background job, go to transaction code SM37 and display the jobs.

debug-completed-jobs-1

First we need to keep a break-point in the program, so that the control stops at the break-point when the debugger is switched on. To find the name of the program, select the job that we want to debug and press step in the application toolbar.

debug-completed-jobs-2

Display the program by using the Menu Goto –> Program.

debug-completed-jobs-3

Keep a break-point in the program and go back to Job overview screen.

debug-completed-jobs-4

Again select the job that we want to debug and enter JDBG in the command field and press enter.

debug-completed-jobs-5

Once JDBG is entered in the command field the debugger will get switched on. Now press F8 to reach the break-point in the program.

debug-completed-jobs-6

Now we can analyze the program for the cause of the error.


1 Comment

Comments are closed.