• Home
  • Testing
  • SAP
  • Web
  • Must Learn!
  • Big Data
  • Live Projects
  • AI
  • Blog

Monitoring background job is important because once you schedule the job it might be canceled due to some error. To investigate the root cause use SM37.

Step 1) Execute T-code SM37.
 

SAP SM37: How to Monitor a Background Job

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.

SAP SM37: How to Monitor a Background Job

Step 3) You will get a screen as shown below.
 

SAP SM37: How to Monitor a Background Job

Step 4) Click on Job Log button to trace the error due to which job was canceled.
 

SAP SM37: How to Monitor a Background Job

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.
 

SAP SM37: How to Monitor a Background Job

Sometimes jobs in Active status may also cause an issue.

You may face issues like tablespaces are full; the duplicate job is running with the same name and timing, job is selecting or updating large data, etc.

You can also check such jobs from SM37. Follow the procedure as below.

Step 1) Execute SM37.

Step 2) Fill the required criteria.

  1. Job name and username(by which job is scheduled).
  2. Select job status which you want to monitor. If you find a system performance issue or if a task is not completed for a very long time, then select active status.
  3. Put the date range as per your requirement.

SAP SM37: How to Monitor a Background Job

Step 3) Look into Duration column (which signifies the job is running since n seconds). If you find a large number in duration then investigate the job details from job log. Some jobs use a large number of data.Using SE16 check table entries for the tables used by the job.
 

SAP SM37: How to Monitor a Background Job

Sometimes jobs show to be in Active Status even though they are completed.

How to correct them? Follow the below set of procedure -

Step 1) As shown above, Execute T-code SM37 and select the job with an active status.

Step 2) Select the active job which is causing the problem.
 

SAP SM37: How to Monitor a Background Job

Step 3) Click the Job->Check status.
 

SAP SM37: How to Monitor a Background Job

Step 4) In the status bar of the window you will find as below message. This will repair Job Status if there was a problem
 

SAP SM37: How to Monitor a Background Job

Step 5) If still job is in running status then goto SM50. Below screen will open. Have a look at "Reason" column which shows any errors or exceptional issue. Investigate it further.
 

SAP SM37: How to Monitor a Background Job

 

YOU MIGHT LIKE: