background processing

8
Why Background Processing? 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 B D Dispatcher

Upload: laasyasweet

Post on 05-May-2017

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Background Processing

Why Background Processing?

Reasons for Background ProcessingReducing load on dialog workprocesses

Scheduling regular activities

vs

Mon Tue Wed Thu Fri Sat Sun

Mon Tue Wed Thu Fri Sat Sun

BD

Dispatcher

Page 2: Background Processing

What is a Background Job?A job consists of one or more stepsA job step is one of the following:

ABAP program (maybe with variants)

external commandexternal program

One job is processed by one background workprocess

Job 1Job 2

Job 3

Step 1

Step n

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

Prio

rity

high

low

A job can be triggered

by time

by event

12

6789

1011 1

2

34

5

Page 3: Background Processing

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 th1.) 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

ImmediatelyDate/timeAfter jobAfter eventAt operation mode switchStart on workdayJob not released

Job view

Back Complete Cancel

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 :

Task

flow

Transaction SM36Job Wizard

General jobinformation

Definea step

Definestart conditions

Defining a Job Using the Job Wizard

Page 4: Background Processing

Time based Event based

Immediateonce or periodicallyif periodic, exceptions

possible

At Date/Timeonce or periodicallyif periodic, exceptions

possible

On chosen workday (per month)once or periodically

rdisp/btctime rdisp/btcname

After eventonce or periodicallywith or without parameter

After jobstatus dependent

At change ofoperation mode

Job 1 Job 2

Day Night

12

6789

1011 1

2

34

5

Start Conditions of a Job

Page 5: Background Processing

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 onOperating System

level

External Program External Program

sapxpg

Operating System

sapxpg

Executing Programs as Job Steps

Page 6: Background Processing

Use Copyto create a new job

Scheduled

Finished Canceled

Released

Ready

Active

Change job

Monitor Job log Spool list (only for ABAPs)

Status of a Job

Page 7: Background Processing

Dialogprocessing

Background processing12

9

6

3

11 1

7 58 4

210

DAY

NIGHT

12

9

6

3

11 1

7 58 4

210

BTC

Operation Modes: Concept

Page 8: Background Processing

Job overview andpath to more details

Job

log

… Job details

Selectioncriteria St

atus

Double-clickon line for ...

Spoo

l lis

t

Job Monitoring: Text Form