‎2010 Mar 18 6:23 AM
Hi All,
I have a batch job which gets failed.I want to know how to debugg the batch job.
Regards,
Rahul.
‎2010 Mar 18 6:34 AM
hi,
You can debug it as a normal report program by setting the sy-batch as Initial at runtime.
‎2010 Mar 18 6:36 AM
Hi Rahul,
Does your batch job contain a program run in background?
If yes, then you can debug this only after the job has finished execution.
This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X'.
Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER
You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.
Hope this helps.
Thanks,
Anusha
‎2010 Mar 18 7:28 AM