Date post: | 02-Jun-2018 |
Category: |
Documents |
Upload: | mkumarshahi |
View: | 218 times |
Download: | 0 times |
of 22
8/11/2019 BC420_46C - 014Background Processing
1/22
0
SAP AG 1999
Scheduling jobs
Using the job overview
Using parallel BI processing through RSBDCSUB
Background Processing
Contents:
SAP AG BC420 14-1
8/11/2019 BC420_46C - 014Background Processing
2/22
0!
SAP AG 1999
Course "verview Diagra#
Daten$bernah#e
D% &orkbench
'S( &orkbench
Principles o) Standard
Data *ans)er
DirectInput
B+PI
*+R
ecorder
Course "verview
Batch
Input
Call*ransaction
,
-DI
Basics
.
/
1 206
20
3
22
2,
2!
22
2!
2
! 22
22
SAP AG BC420 14-2
8/11/2019 BC420_46C - 014Background Processing
3/22
0,
SAP AG 1999
Background Processing 4 Contents 526
Basics o) Background ProcessingBasics o) Background Processing
Per)or#ance and Scheduling BI SessionsPer)or#ance and Scheduling BI Sessions
SAP AG BC420 14-3
8/11/2019 BC420_46C - 014Background Processing
4/22
0
SAP AG 1999
7ob
Scheduled
5*i#e 8 Date6
-9ecuted on
background serverDispatcher
B B
Step 2
Step n
Step 1
. . .
Program 1Program 2
Program 3
Concept o) Background Processing
R/3 background processing is used to automate routine tasks and optimize the use of the R/3
resources within a company. You or your users schedule programs to be run by the R/3 System and
specify which programs to execute and when.
The R/3 System proides comprehensie support for background processing including a number of
methods for scheduling and maintaining !obs. You can execute both internal R/3 and external
programs. To simplify scheduling" you can execute related internal and external !obs as #!ob steps$
within one background processing !ob. %sing !ob steps" you can define a complex background !ob
that includes seeral processing steps. &ob scheduling includes all process actiities re'uired to
execute the task.
(n addition" there are arious !ob administration and diagnostic tools" including a graphical monitor.There is a powerful" easy)to)use programming interface you can use to program your own
applications for background processing" if needed* you can use the !ob wizard to schedule your !obs.
The wizard automates the basic definition of the background processing !ob and guides new users
through the entire process.
SAP AG BC420 14-4
8/11/2019 BC420_46C - 014Background Processing
5/22
0.
SAP AG 1999
Create progra# variant
De)ine job na#e and priorit
Create step list 5enter progra#s6
De)ine job start ti#e
Displa job logs
7ob runs
Step 2
Step !
Step 2
Step !
Step 2
Step !
Background Processing Steps
To create a background processing !ob" proceed as follows+
,- (f the program to be scheduled contains a selection screen" create a ariant.
- (n the !ob definition" you must specify the !ob name and priority.
ptional+ Target serer
3- The step list contains all programs to be se'uentially processed within a !ob.
0- You must set the start time for the !ob.
1- 2hen the start time is reached" the !ob is processed in a free background work process.
- You can then display the !ob logs.
SAP AG BC420 14-5
8/11/2019 BC420_46C - 014Background Processing
6/22
0;
SAP AG 1999
BC!0
8/11/2019 BC420_46C - 014Background Processing
7/22
0/
SAP AG 1999
BI
8/11/2019 BC420_46C - 014Background Processing
8/22
01
SAP AG 1999
After you create and sa!e the steps$ the step list appears.'
+o,
*o add additional steps@ choose(reateA to leave the step list@ choose Bac)
* +, &nitial screen-.
Pro)ra( na(e ,,, &'t, pr) ist Para(eters
BC!0
8/11/2019 BC420_46C - 014Background Processing
9/22
03
SAP AG 1999
Scheduled start
Do not start a/ter
((ed,
/ou ha!e se!eral options for job start date and time.0
Date i(e A/ter o!
Date 8 *i#e
Sa!e
7ob is now scheduled I#portant: Choose Sa!e
on the initial screen o) transaction S(,;
A/ter eent , , ,
Date
Date
i(e
i(e2*,0.,1999 23"0%
Step 2
7ob: BC!0
8/11/2019 BC420_46C - 014Background Processing
10/22
020
SAP AG 1999
BC!07ob na#e
Job o!er!ie#transaction 5S(,/6
User na#e
Sched, eleased ead6 Actie 7inished Canceled
2*,0.,1999 to7ro(
23"24 23"5%
2*,0.,1999
or start a/ter eent
7ob start conditions
7ob status
Step 2
7ob: BC!0
8/11/2019 BC420_46C - 014Background Processing
11/22
022
SAP AG 1999
+)ter speci)ing the selection para#eters@ the selected jobs appear
7ob na#e Created b Status Start date
BC!01?
;inished+ &ob completed without errors
7anceled+ &ob ended* =rrors occurred.
SAP AG BC420 14-11
8/11/2019 BC420_46C - 014Background Processing
12/22
02!
SAP AG 1999
Background Processing 4 Contents 5!6
Basics o) Background ProcessingBasics o) Background Processing
Per)or#ance and Scheduling BI SessionsPer)or#ance and Scheduling BI Sessions
SAP AG BC420 14-12
8/11/2019 BC420_46C - 014Background Processing
13/22
02,
SAP AG 1999
SeHuential
ile
enerate se!eral sessions
Dispatcher
B B
Dispatcher
B B
Dispatcher
B
ScheduleRSBDCSUB
Process B& sessions in se!eral bac)ground 3Ps in parallel.
BI Progra#
Parallel Processing with RSBDCSUB
You can process 8( sessions in parallel in the background using the program RS8@7S%8. (f seeral
8( sessions were generated from the external data" RS8@7S%8 schedules a separate !ob for each 8(
session.
n the selection screen of RS8@7S%8" you specify the names of the 8( sessions you want to
process 4generic entry possible+ Abc0?
8/11/2019 BC420_46C - 014Background Processing
14/22
SAP AG 1999
+B+P Develop#ent+B+P Develop#ent
SaveSave
Progra# RSBDCSUB
Create background job
with S*-P: RSBDCSUB
Create background job
with S*-P: RSBDCSUB
Session na#eCreated on)ro#
8/11/2019 BC420_46C - 014Background Processing
15/22
02
SAP AG 1999
Job #ith t#o steps
Step !: RSBDCSUB
Step 2: BI Progra#
&n the first step$ the se4uential data isread and then B& sessions aregenerated from this data.
&n the second step$ the B& sessions arescheduled by the 5SBD(S6B to runin parallel and then processed bythe bac)ground #or) processes.
7obs
The external data conersion and import of the data into the R/3 System can be automatically
scheduled through background processing.
This re'uires two program steps+
,- (n Step ," the 8( program is called that reads the external data and conerts the data. 8( sessions
are then created.
- (n steps " RS8@7S%8 is called and transfers the generated 8( sessions to background
processing.
SAP AG BC420 14-15
8/11/2019 BC420_46C - 014Background Processing
16/22
02.
SAP AG 1999
5SBD(S6B creates a job for each B& session #ith the job name identical to
the B& session name.
o! o)7he job log contains the results of the
B& runs.
7ob na#e Created b Status Start date
BC!0
8/11/2019 BC420_46C - 014Background Processing
17/22
02;
SAP AG 1999
+pplication
Presentation
Database
READ DATASET
TRANSFER
'ocal seHuential
)iles
SeHuential
)iles
rontend +ccess in Background
Dispatcher
B
The A@2:C5@A and A%9C5@A function modules are designed for online operation and
cannot be executed in the background.
SAP AG BC420 14-1*
8/11/2019 BC420_46C - 014Background Processing
18/22
02/
SAP AG 1999
Schedule and ad#inister jobs
Use RSBDCSUB to schedule batch input sessions
in the background
Gou are now able to:
Background Processing: Unit Su##ar
SAP AG BC420 14-1.
8/11/2019 BC420_46C - 014Background Processing
19/22
Exercises
Unit: Background Processing
Topic: Scheduling of Batch Input in the Background
Scheduling of batch input sessions in the background.
9arallel processing of the processing
The transfer of the legacy data should be automated. This is done by
scheduling a specific 5859 program 4RS8@7S%8- ia the R/3
background processing. There are different possibilities for performingthe scheduling.
Job: BC!"#$$#Job
, Optional:Start a !ob consisting of one step using @ate/Time.
,), @efine a ariant for the program S59870?DS9T@DC(STD7E=7F8G=S.
,) 7reate the !ob 870?&8HH),. Start this !ob using @ate/Time. You can enter
AStart nowA or the system time I 3 minutes. The only step the !ob should contain
is the 5859 report.
,)3 ;ollow the flow of the !ob in the S>3J and analyze the !ob log.
SAP AG BC420 14-19
8/11/2019 BC420_46C - 014Background Processing
20/22
@efine and schedule a !ob to generate and run batch input sessions. @efine one !ob
#870?DHHD&ob$ that performs the follwing tasks in two steps+
a- Run a program to generate one or more batch input sessions. 8efore you start"
generate a ariant for the scheduled batch input program.
b- 7all the RS8@7S%8 to schedule the batch input session that has been created in the
preious step. You must also first create a ariant for RS8@7S%8.
Steps+
), 7reate the ariant K5RDHH for the program R;8(8C??. >aintain the
) ;ile name 6 ...... 4;ile name see outbound file respectiely conerted data in
the CS>2 ob!ect 7T)HH-.
) Type of data transfer is batch input
) 7reate a ariant for the RS8@7S%8. This ariant should process the batch input
sessions 7T)HH. 4This session name is from the CS>2 outbound file and
corresponds to the ob!ect name-.
)3 Schedule a !ob consisting of two steps+ The first step contains your batch input
program R;8(8C??" the second step contains RS8@7S%8. The ariants you
defined before are necessary for both steps.
)0 (n order to run 8( sessions" follow the flow of the !ob and check the !ob log for
each !ob that has been created by the RS8@7S%8.
3 Optional+ Lenerating seeral 8( sessions by changing an CS>2 setting and scheduling
the CS>2 main program.
3), @isplay all ob!ects for your pro!ect. Select the ob!ect 7T)HH and copy it to the
new ob!ect 8()HH.
3) >ake the following changes in the =:@D;DR=7R@ of structure 8LR??. The
field g_cnt_transactions_group determines the number of records
according to which the next 8( session is generated. 7hange this alue to .
at_first_transfer_record.
if g_cnt_transactions_group = 2.
g_cnt_transactions_group = 0.
transfer_record.
endif.
3)3 (n the ob!ect attributes set the data transfer toperiodic.
Then you get the main program/SAP!C/SAP"#S!$"%&T'R(AC')which will
perform the steps of the CS>2 automatically.
SAP AG BC420 14-20
8/11/2019 BC420_46C - 014Background Processing
21/22
3)0 7reate the ariant Kar)HH for this main program.
Settings+
9ro!ect+ 870?)HH
Sub)pro!ect+ @7%)HH
b!ect+ 8()HH
Set the parameters of some batch input/direct input programs#8(" @(" 7all Transaction$ to #8$.
3)1 Schedule a !ob that consists of one step and that contains the main program with
the ariant K5R)HH. Start the !ob.
3) ;ollow the the !ob flow and check the !ob log.
SAP AG BC420 14-21
8/11/2019 BC420_46C - 014Background Processing
22/22
Solutions
Unit: Background Processing
Solution to %&!
3 ptional+ 7reate seeral 8( sessions by changing an CS>2 setting and scheduling the
CS>2 main program.
3) Lo to =xtras )M @isplay ariant and set the ATechnical fieldA and A9rocessing
eentsA checkboxes to change a technical CS>2 field mapping setting. A7odingA
and ALlobal data definitionsA should also be selected.
The processing eent A=:@ ; R=7R@A is below the structure 8LR?? and
determines how many transactions a new 8( session processes with a counter.
7hange the test Aif g_cnt_transactions_group = 5000" to Aif
g_cnt_transactions_group = 3"to create a new 8( session after
reading three records.