PROCESSING IN SAP R/3
What the scheduler can do
steps within a job: A job can consist of many steps,
each running a different program.
Each step waits for the previous step to run
before it starts.
jobs: A job can be scheduled to run every minute,
hour, day, week, month, or any other specified time
jobs: A jobs can be scheduled to wait for another
job to finish before it executes.
the scheduler cannot do
dependent jobs: If you have a job that runs every
night and another that depends on it, the dependent
job will run the first time, but not again after that.
a job that has crashed: If a job crashes on step
1, the whole job stops, and there is no way to continue
from certain job steps: If your job crashes at step
2, there is no facility to re-run, without changing
the job and removing step 1 so it does not run again.
for a Batch Input Session: If you run a job which
runs RSBDCSUB, the second step will not wait for the
batch input session to process, as it is executing in
a separate job.
Suggested methods for processing
a self-scheduling job: A program can be set up to
re-schedule itself in a job after a specified time.
This is more flexible than a periodic job.
that create other jobs:
to dependent jobs, is to run a program in the first
job which will create the next job.
that wait for other jobs: A program can be set up
that will wait for a specified job, and runs a
batch input session.
Use this as a step in your job after a batch
input session has run.
and Success messages: Write the message text to
the job log. Program and job continues as normal
and Abend messages: Write the message text to the
job log. Stop the current program from running. Cancel
the entire job.
any dependent programs must be scheduled in a different
Suggested methods for error handling & reprocessing
subsequent steps in a job are not dependent on the first
one finishing successfully, the first program should
be set up to crash using a success message followed
by the ‘STOP’ statement.
Before every error message, call a routine which notifies
the ‘Operations Center’ of error type, severity, action,
used for Background JOBS:
to define Periodic Jobs
Job name, Job class, Target server
on 'START CONDITION' button
on 'Date/Time' button
Scheduled start DATE & TIME. Check mark 'Periodic
Job' field. Click on 'Period values' button and select
'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other
period and SAVE. Go back to main screen.
on 'STEPS' button and enter Program name and Variant
under box 'ABAP Program'. Click on 'Print
Specification' button and enter Printer name under 'Output
device' and SAVE
on SAVE button until you get message on bottom of the
screen that describes 'Job XYZ saved with status: Scheduled'.
on 'Job overview' button or execute SM37
the appropriate 'Job name', 'User name', 'Job Status'
& Schedule date under 'Job start condition' and
click on 'Execute' button or press F8.
will now see all your scheduled JOBS.