Debugging A Background Job
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Topic Covered:
1) What is SAP Background Job?
2) How to create SAP Background Job?
3) Tips and steps to debug Background Job
Save
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Class C (Low Priority) − these job runs once class A and class B jobs are
completed.
Go to step
Select Variant that we created before
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Immediate: If you press immediate, it means that you want to run the job in the
background immediately.
Date/Time: if you want to start it on a specific day and time
But for the test purpose I will run this immediately because I want to show you
the result right now
Execute
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
As you can see the Status is finished that means our report is ready
3) Tips and steps to debug Background Job
Now let's see how we can debug the SAP background job. A particular event may
cause us to debug the background work, for example when the output is incorrect
or we have no output at all.
Select the job and in the command line enter the background debug command
JDBG and hit enter
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
When you are in debug mode, the first thing to do is to look at the top of the
debug screen to see if it is the same name as the program we are running in the
background.
In our example you can notice that the name of the program is different
Now hit (F7 icon strip) until you reach in the name of the program you run in the
background job
If you want to debug a running job, you have to go to SM50 and select the
background process. Then choose the menu option Administration / Program /
Debugging. Confirm the prompt:
Select Yes then the system will open the running job in debugging mode
Thank you