You can schedule the background job using SM36. Planned or immediate jobs can be scheduled.
Step 1) Execute T-code SM36.
Step 2) Fill the job name, priority(A/B/C) and the target server. Background jobs once scheduled on a target server run on that server. Main purpose of defining target server is the workload balancing.
Step 3) Click on "spool list recipient". You will get output in your mailbox. You can check email from SBWP.
Step 4) Insert your SAP username and click the copy button.
Step 5) Click Step button to define ABAP program, variant's details, etc.
Step 6) Define program name, variant details.
- Enter your program name, Variant name in the field. If you have not created variant as per your requirement, then leave it blank.
- Press save button.
Step 7) Once you schedule the job you will get the following screen.
Step 8) Click Start conditions to fill start date, end date, frequency, etc for job. If you do not specify start condition then job will always remain in scheduled status. A job in scheduled status will never run.
- Click on Date/Time(For periodic jobs). If you click "Immediate" then job will start running right away. But it will not be set as periodic job. It's like "press and run."
- Define job's start date/time, end date/time. The job will be released only once it meets its Scheduled start date/time.
- Press periodic values.
Step 9) Click on Hourly/Daily/Weekly period to define the frequency of the job as per your requirement.We will select Other Period
Step 10) Here you specify the recurring criteria of the job.For example, You can have the Job run after every 5 days from the Start Date. Here we select job to run every 10 minutes
Step 11) Click on save button.
Step 12) Click on save again.
Step 13) Click save again
Step 14) Once Job step and start conditions are defined the following window will appear.
Step 15) Press save.
Step 16) Goto SM37 to know the status of the job.
Step 17) Select your criteria for the job which you want to monitor.
- Put your job name and username who scheduled the job.
- Select the status of the job.
- Specify the date range. In our scenario, we just specify the end date while keeping From Date Open.
Step 18) You will get the following screen. Look at the status, it's a released means start conditions are met, and the job is in the queue is waiting for background work process to be free.
Step 1) Execute T-code SM36.
No comments:
Post a Comment