Summary -

In this topic, we described about the Scheduling Background Job process in detail.

Before start processing, a background job must be defined and scheduled. SM36 transaction code used to schedule a background job. Below steps are to schedule a background job.

Step-1: Go to SM36.

Scheduling Background Job

Step-2: It navigates to “Define Background Job” screen. Fill the job name, job class and Execution Target server.

Scheduling Background Job

Once the job scheduled, the job runs on target server if specified. Target server used for only load balancing.

Step-3: Click on "spool list recipient". The output sends to your mailbox and check email from SBWP.

Scheduling Background Job

Step-4: Insert SAP username and click the copy button continue.

Scheduling Background Job

Step-5: Click on “Step” button to define ABAP program, variant's details and language.

Scheduling Background Job

Step-6: It has three types to execute in the job.

  • ABAP program
  • External command
  • External program

Click on the appropriate button to enter the details.

In this example, we are entering ABAP program. So, enter ABAP program name, variant and language details. If variant is not created, ignore the variant field as blank. Click on save button to continue.

Scheduling Background Job

Step-7: Once the job saved, the below screen will appear.

Scheduling Background Job

Step-8: Go back from the above screen, “define background job” screen appears. Click on “Start Condition” to define Schedule time.

If the schedule time is not set, the job in scheduled status and won’t run forever.

Scheduling Background Job

Step-9: It navigates to “start time” screen. Click on “Date/Time” button to enter the schedule date and time.

Scheduling Background Job

Step-10: Once the details entered, click on “Period Values” button to enter job running period values.

Scheduling Background Job

Step-11: Click on any of the period values as per requirement. In this case, it is “other period”. Enter the time gap as “6 hours”. Click on Save button.

Scheduling Background Job

Step-12: Click on Save button again.

Scheduling Background Job

Step-13: Click on Save button again.

Scheduling Background Job

Step-14: Click on Save button again.

Scheduling Background Job

Step-15: Once Job step and start conditions are defined the following window will appear.

Scheduling Background Job

Step-16: Click on Save button again.

Scheduling Background Job

Once the job saved, the job definition and scheduling is completed.