Search This Blog

Wednesday, November 10, 2010

debug batch

How do I debug completed background process?
You can do 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, put the cursor on the job, type JDBG in the command line ( no '/' ), 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.
  • Note: though running interactively, you can see that sy-batch = 'X'.

More ABAP debugger options - http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Debugger

No comments: