11-28-2007 7:28 AM
hi evrybody,
Can we debug the background jobs before scheduling or after scheduling in SM37?
Thanx in Advance.
11-28-2007 7:33 AM
11-28-2007 7:34 AM
Hi
You cannot debug background jobs directly, but you can acheive this task by putting a breakpoint on the statment where you are checking the job i.e.
IF sy-batch = 'X'.
sy-batch = 'X' for all background job.
During debugging you can change it's value to 'X' and proceed further.
<b>Reward i fuseful</b>
11-28-2007 7:35 AM
Hi Shuba,
It is not possible to debug background jobs. Use SE38 to debug the programs online.
11-28-2007 9:02 AM
Hello,
While running job in background, to debug got SM37 > select Job Schedule Check box and press F8.
Then Choose the job u want to debug and type jdbg in the command and press enter.
Debugger will start.
try this once
05-11-2021 4:56 PM
Hi ,
Step 1) Execute T-code SM37.
Step 2) Fill the required criteria.
Step 3) You will get a screen as shown below.
Step 4) Click on Job Log button to trace the error due to which job was canceled.
Step 5) You will get the following details. In the below example, job was canceled since there was an issue with RFC connection to the remote system. As a resolution use SM59 to check if there is an authorization issue to the remote system.
Wish you all the Best.
Regards ,
Siddharth
05-11-2021 4:57 PM
Welcome and thanks for visiting SAP Community to get answers to your questions. Check out our tutorial to get started in SAP Community: https://developers.sap.com/tutorials/community-start.html By adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile here: https://developers.sap.com/tutorials/community-profile.html