Very often we come across the situation where we have to debug a report or a particular transaction which is run in background (Batch job). Debugging and analyzing the same when a job is scheduled cannot be done by conventional way. Follow the below steps to debug for a background job. Here we will take an example of a custom report, schedule a job & debug the same.
è Enter the custom transaction.
è Enter all required fields on the selection screen.
è Press F9 directly or Go to program and click Execute in Background
è A popup screen will appear, press ok once.
è A screen will appear asking for start time.
è Click on Date/Time and enter near future date and time. Note that this time should be relative to SAP system time and not your desktop system time. Then press save button.
è Information message will pop up saying background job has been scheduled.
è Now go to transaction SM37 (Background Job)
è Select your job and in the command box type JDBG (Note you only need to type JDBG and no /n or /o)
è And your debugging will start up as soon as you press enter. (You might have to press F7 to reach to the start of your report)
No comments:
Post a Comment