Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Job scheduling

Former Member
0 Kudos

hi evrybody,

Can we debug the background jobs before scheduling or after scheduling in SM37?

Thanx in Advance.

6 REPLIES 6

former_member195698
Active Contributor
0 Kudos

Hello Subha,

Please check the thread below :

Regards

AJ

Former Member
0 Kudos

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>

Former Member
0 Kudos

Hi Shuba,

It is not possible to debug background jobs. Use SE38 to debug the programs online.

Former Member

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

0 Kudos

Hi ,

Step 1) Execute T-code SM37.

Step 2) Fill the required criteria.

  1. Job name and username(who scheduled the job). You can put * to get details of all jobs scheduled by all the users.
  2. Select job status which you want to monitor. If you find that a background job is not completed, select Canceled status.
  3. Put the date range as per your requirement.

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

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

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