To debug a finished batch job
- Run tcode: SM37 and select for finished jobs.
- Select the job.
- In the command field, type JDBG and hit enter.
Do not use /n or /o.
This will simulate the exact background scenario with the same selection screen values as used in the job. SY-BATCH will be set to ‘X’.