Why Background Processing?
Reasons for Background Processing
Dispatcher Reducing load on dialog workprocesses
D B Scheduling regular activities
vs
Mon Tue Wed Thu Fri Sat Sun
Mon Tue Wed Thu Fri Sat Sun
What is a Background Job?
Job 1 A job consists of one or more steps
A job step is one of the following:
Job 2
ABAP program (maybe with
Job 3 variants)
Step 1 external command
external program
One job is processed by one background
Step n workprocess
A job can be triggered There are 6 priorities:
high
12
Class A job with target server
11 1
10 2 Class A job without target server
9 3 by time Priority Class B job with target server
8 4
7 6 5
Class B job without target server
Class C job with target server
Class C job without target server
by event low
Task flow Defining a Job Using the Job Wizard
Transaction SM36 General job Define Define
Job Wizard information a step start conditions
The Job Wizard is an easy way to
create a job. Start condition of a job could be one of th Congratulations!
1.) immediately - meaning as soon as pos
Step-by-step dialog screens guide you 2.) based on exact date time assignment
through the process. You have successfully defined a job. Choose 'Done' to
3.) after another job actually create the job in the system.
You can use the navigation buttons 4.) after an event
go back to previous steps. 5.) when a certain operation mode switch You can also choose 'Back' to revise the job definition or
Cancel' to cancel the whole process.
On the last screen, you will see what Immediately
you have defined before you save Date/time
After job
------------------------------------------------------------------
After event
At operation mode switch Here is the job you have defined:
Start on workday
Job not released
Job view Job name : GULP
Job class : C - LOW PRIORITY
Target server :
Back Complete Cancel
Start Conditions of a Job
12
11 1
10 2
Time based 9 3 Event based
8 4
7 6 5
Immediate After event
once or periodically once or periodically
if periodic, exceptions with or without parameter
possible
After job
At Date/Time status dependentJob 1 Job 2
once or periodically
if periodic, exceptions At change of
possible operation mode
Day Night
On chosen workday (per month)
once or periodically
rdisp/btctime rdisp/btcname
Executing Programs as Job Steps
R/3 System
ABAP Program External Command External Program
No selection screen
With selection screen predefined within R/3
Any command on
• Operating system
+ • Command
Operating System
level
Variant • Parameters
sapxpg sapxpg
Operating System External Program External Program
Status of a Job
Scheduled
Change job
Released
Ready
Active
Monitor
Finished Canceled Job log
Use Copy Spool list
to create a new job (only for ABAPs)
Operation Modes: Concept
NIGHT
Background
12
processing
11 1
10 2
Dialog 9 3
11
12
1
processing 8 4
10
9
2
3
7 6 5 8
7
6
5
4
BTC
DAY
Job Monitoring: Text Form
Job overview and
path to more details
Selection
criteria
Double-click
on line for ...