Sie sind auf Seite 1von 5

How to Schedule Background Jobs

Background Job Processing

Author: Prasad Samatshetti Associate SAP BASIS Consultant Dexler Information Solutions

Page 1 of 5

How to Schedule Background Jobs

Index
1. Abstract ....................................................................................................................................... Error! Bookmark not defined. 2. Required Information...................................................................................................................................................................3 3. Steps to schedule a background job ...........................................................................................................................................3 4. Verify job scheduling and execution ............................................................................................................................................4 5. Summary .....................................................................................................................................................................................5

Page 2 of 5

How to Schedule Background Jobs

Abstract SAP background processing automates routine tasks and helps you optimize your organizations SAP computing resources. Long-running programs can be scheduled as background jobs a) 1) 2) 3) 4) 5) b) Required Information Prior to scheduling a background job, you need to have the following inputs: Job Name; ABAP Program which needs to be executed; Variant information for a particular ABAP Program, which will be used during execution; Execution time and frequency for the job; Printer device name, in which you want to have output of the background job for further action. Steps to schedule a background job 1. Login to SAP R/3 and execute T-code: SM36

Provide the job name and set the Job Class: High priority: Class A Medium priority: Class B Low priority: Class C

Provide Execution Target server name on which you want the job to be executed. Generally the field is left blank, which means, any application instance that is having a free background work process at the time of execution of job will be selected based on the system load. To use a particular application server for job execution, enter a specific target server.

If the spool request generated by this job is to be sent to someone as an email, then specify the email address using the Spool list recipient button. 2. In the next step, provide start/execution condition. Click on execution time and frequency schedule. , to provide the

Job can be scheduled for execution immediately, at a particular date/time, after completion of a specific job, after triggering a particular event or switching on an operation mode.

Page 3 of 5

How to Schedule Background Jobs 2.1 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. 2.2 Once you have completed specifying the job start conditions, click on the Save button at the bottom of the Start Time screen to return to the Define Background Job screen. 3. Define the jobs steps by choosing Step. Specify the ABAP program and the command or program to be used for each step. Provide variant information, if needed, for execution of the defined program. external

Save the steps to return to the Define Background Job screen. 4. Job is scheduled now for execution at a given date/time. c) Verify job scheduling and execution Using T-Code SM37, you can view the status of the job. 1. Once the job execution is completed, you can refer job logs to check what all steps are taken for execution of the job. 2. You can modify or reschedule a defined Released job from this screen.

Page 4 of 5

How to Schedule Background Jobs

Summary This paper provided us a quick overview of the requirements to schedule a background job, and explained the steps that need to be followed to know the status of the Background Job.

Page 5 of 5

Das könnte Ihnen auch gefallen