Best Ways to SAP Background Job Scheduling
There are two ways to define and schedule background jobs from the Job Overview:
- The best way for users who are already familiar with background job scheduling is directly from Transaction SM36.
- And if a user is not familiar with SAP background job scheduling then best way is the Job Scheduling Wizard. Try to start from Transaction SM36 and either select Goto → Wizard version or simply opt for the Job Wizard button to use the Job Wizard.
Process for Scheduling Background jobs is as follow:
In first step Call Transaction SM36 or choose CCMS → Jobs → Definition To Schedule Jobs.
Provide a job name. Decide on a name for the job you are defining and give it in the Job Name field.
Give Job Name EX:JOB1
Click Start Condition Button
Define or set the “Job Class” or job’s priority as follow:
- High priority: Class A
- Medium priority: Class B
- Low priority: Class C
- Indicate whether to use system load balancing in the Target server field.
- Enter a specific target server to use a particular application server to run the job.
- 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.
- Job are to be sent to someone as email so mention the email address if spool requests generated by this. Select the Spool list recipient button.
- Choose Start Condition and complete the appropriate selections to define that the job is to start. Check the box at the bottom of this screen if the job is to repeat or be periodic.
Specify the ABAP program, external command or external program to be used for each step to Define the job’s step by choosing Steps.
Enter Your Program Name (You Need To Schedule BG), Give Variant if it has (Optional), Click Check (Optional) and Save It.
To submit it to the background processing system SAVE the fully defined job.
Go To SM37 Give The Job Name EX JOB 1 and Click SCHD & Execute.
You'll manage jobs from the Job Overview when you need to modify, reschedule or manipulate a job after you've scheduled it the first time.
Click Job Log to note the Status of the Job and Click Spool to View the Result.
Important Thing to Remember: No job, even those scheduled for immediate processing can run without first being released. So you have to release the job so that it can run.
Read Here for More SAP BASIS Tutorials