cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Background Job Processing

Mouni_Priyanka
Discoverer
0 Kudos

Introduction:

In this blog post I am going to explain the steps required for Background Job processing.

What are Background Jobs:

Background jobs are automated tasks that run in the background without any user interaction. They are scheduled to run at specific times and are useful for executing time-consuming and repetitive tasks such as data archiving, batch processing, and report generation. In SAP, background jobs are scheduled using the Background Job Scheduler.

T Codes for Background Processing:

SE38 – To Create variant for background job.

SM36 – To schedule the job.

SM37 – To Monitor the job.

Step-by-Step Guide for Scheduling a Background Job in SAP:

Step 1: Create a Variant to schedule the background job: -

Before you can create a background job, you need to define the variant for the job. A variant is a set of parameters that define how the job is executed. To create a variant, follow the below steps.

Execute SE38 transaction code and enter the name of the program you want to execute in the Program field and select Variants.

Mouni_Priyanka_0-1711517871963.png

Execute it to create a new variant as per your requirement. Select and enter all the required parameters and click on save as variant.

Mouni_Priyanka_1-1711517871968.png

In the next screen enter the name of the variant and description and save the variant.

Mouni_Priyanka_2-1711517871971.png

Step 2: Schedule the background job:

Execute SM36 or You can go to transaction SM36 from SAP Easy Access menu. SAP Menu -> Tools -> CCMS -> Background Processing -> SM36

Mouni_Priyanka_3-1711517871988.png

Enter the name of the background job in the Job Name field and click on the Step button to add a step to the job.

Mouni_Priyanka_4-1711517871991.png

Select the Program of the job you want execute and select its variant in the variant field which you have created and enter the user with which it should be run. Click on the save button.

Mouni_Priyanka_5-1711517871994.png

You can create any number of steps as per your requirement by clicking on the below create button.

Mouni_Priyanka_6-1711517871996.png

Once the step got saved go back and click on the Start condition.

Mouni_Priyanka_7-1711517871998.png

Click on Date/Time and enter the date to which it should be scheduled and the time at which it should be run. Also, you can select the frequency of the job as per your requirement by clicking on the period and save.

Mouni_Priyanka_8-1711517872000.png

If you click on the Restrictions, you can see few more restrictions and that’s depends on your requirement of the job. Select and save.

Mouni_Priyanka_9-1711517872004.png

Go back to the initial screen and click on save. Now the background job got released to run.

You can click on E-Mail Notification and give the mail IDs to whom the status of the job can be sent.

And Spool list recipient is for the people to whom the output report should be send.

Mouni_Priyanka_10-1711517872007.png

Mouni_Priyanka_11-1711517872010.png

Step 3: Monitor the background job: -

Execute SM37 to check the status of the released background job and enter the name of the batch job which you have scheduled in Job name field and select the parameters and click on execute.

Mouni_Priyanka_12-1711517872012.png

You can see the status of the batch job after executing.

Mouni_Priyanka_13-1711517872014.png

You can also edit or suspend or copy and schedule one more job if needed by clicking on Job button.

Mouni_Priyanka_14-1711517872018.png

You can see the job log if the background job got failed or completed successfully. Click on the Job log button.

Mouni_Priyanka_15-1711517872020.png

Conclusion: -

In conclusion, creating background jobs in SAP is a way to automate time-consuming and repetitive tasks, freeing up resources for other important tasks.

 

 

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos
I believe you have posted a question here instead of a blog....

Accepted Solutions (0)

Answers (0)