Вы находитесь на странице: 1из 8

Why Background Processing?

Dispatcher
D B

Reasons for Background Processing Reducing load on dialog workprocesses 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 Job 2 Job 3
Step 1

A job consists of one or more steps A job step is one of the following:

ABAP program (maybe with variants) external command external program


One job is processed by one background workprocess

Step n

A job can be triggered


11 10 9 8 7 6 5 12 1 2 3 4

high Priority low

by time

by event

There are 6 priorities: Class A job with target server Class A job without target server Class B job with target server Class B job without target server Class C job with target

Defining a Job Using the Job Wizard


Task flow
Transaction SM36 Job Wizard General job information Define a step Define start conditions

The Job Wizard is an easy way to create a job. Step-by-step dialog screens guide you through the process. You can use the navigation buttons go back to previous steps. On the last screen, you will see what you have defined before you save

Start condition of a job could be one of th 1.) immediately - meaning as soon as pos 2.) based on exact date time assignment 3.) after another job 4.) after an event 5.) when a certain operation mode switch
Immediately Date/time After job After event At operation mode switch Start on workday Job not released Job view

Congratulations!
You have successfully defined a job. Choose 'Done' to actually create the job in the system. You can also choose 'Back' to revise the job definition or Cancel' to cancel the whole process. -----------------------------------------------------------------Here is the job you have defined: Job name : GULP Job class : C - LOW PRIORITY Target server :
Back Cancel Complete

Start Conditions of a Job


Time based
11 10 9 8 7 6 5 12 1 2 3 4

Event based

Immediate

After event

once or periodically if periodic, exceptions possible


At Date/Time

once or periodically with or without parameter


After job
Job 1 Job 2

status dependent
At change of operation mode Day
Night

once or periodically if periodic, exceptions possible


On chosen workday (per rdisp/btctime month)

rdisp/btcname

once or periodically

Executing Programs as Job Steps


R/3 System
ABAP Program External Command External Program

No selection screen

With selection screen

+
Variant

predefined within R/3 Operating system Command Parameters

Any command on Operating System level

sapxpg

sapxpg

Operating System

External Program

External Program

Status of a Job
Scheduled Change job Released

Ready

Active

Use Copy to create a new job

Finished

Canceled

Monitor Job log Spool list (only for ABAPs)

Operation Modes: Concept


NIGHT

Dialog processing

11 10 9 8

12

Background processing
1 2 3
11

12

1 2 3

4 7 6 5

10 9 8 7 6 5

BTC

DAY

Job Monitoring: Text Form


Sp oo l Sta t Jo bl og

Job overview and path to more details

Selection criteria

us

lis t

Double-click on line for ...

Jo b

de tai ls