Scheduling Background Jobs in SAP?

We can define and schedule background jobs in two ways from the Job Overview:
1. Directly from Transaction SM36.
2. The Job Scheduling Wizard. To use the Job Wizard, start from Transaction SM36, and either select Go to ->Wizard version or simply use the Job Wizard button.

Procedure
Enter Transaction code SM36 or select CCMS ->Jobs ->Definition
Assign a job name. Decide on a name for the job we are defining and enter it in the Job Name field.

Set the job’s priority, or “Job Class”:
1. High priority: Class A
2. Medium priority: Class B
3. Low priority: Class C

In the Target server field, indicate whether to use system load balancing.
1. For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
2. To use a particular application server to run the job, enter a specific target server.
If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
Define the job’s steps by choosing Step, and then specify the ABAP program, external command, or external program to be used for each step.
Save the fully defined job to submit it to the background processing system.
When we need to modify, reschedule, or otherwise manipulate a job after we’ve scheduled it the first time, we’ll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.

Specifying Job Start Conditions


When scheduling a background job (either from Transaction SM36, Define Background Job or CCMS ->Jobs ->Definition), we must specify conditions that will trigger the job to start.

Procedure
Choose the Start condition button at the top of the Define Background Job screen.
Choose the button at the top of the Start Time screen for the type of start condition we want to use (Immediate, Date/Time, after job, after event, or at operation mode) and complete the start time definition in the screen that appears.
For the job to repeat, check the Periodic job box at the bottom of the Start Time screen and choose the Period values button below it to define the frequency of repetition (hourly, daily, weekly, monthly, or another specific time-related period). Then choose the Save button in the Period values screen to accept the periodicity and return to the Start Time screen.
Once we’ve completed specifying the job start conditions, choose the Save button at the bottom of the Start Time screen to return to the Define Background Job screen.

ads