Escolar Documentos
Profissional Documentos
Cultura Documentos
Thomas Bollmeier
IBU Financial Services, NAD, Tools & Technology
Control of the start of processes depending on the technical and business processing status of other processes
Example : Mass processing of account extract only after successful processing of account balancing.
Report processes (Attributes: Report name, Variant, Mass run-ID); use in the daily end processing Processes in the parallel processing
Process flow:
BANK_PROCFL_FLOW BANK_PROCFL_REL
Process:
BANK_PROCFL_PROC BANK_PROCFL_LOG
Report process:
BANK_REPORTS BANK_REP_PARAMS
Jobsteuerung: Prozessablauf I
BANK_API_PROCFL_START
BANK_OBJ_PROCFL_GET_PROC(procid) Following checks are done : 1.) Check for restart . If the start counter is (START_COUNT) > 0 , then the code XREST_ALLOWED must be set for the process. 2.) Check whether external start is expected. (code.: XSTART_EXTERN). 3.) Status check. The status must have the value 'not yet started' . BANK_OBJ_PROCFL_LOCK_PROC
Start Checks
BANK_OBJ_PROCFL_WAIT_FOR_PRED
BANK_OBJ_PROCFL_GET_MODE
BANK_OBJ_PROCFL_START_ASYNC
BANK_OBJ_PROCFL_START_SYNC
Jobsteuerung: Prozessablauf II
:cl_procflow BANK_OBJ_PROCFL_START_ASYNC BANK_OBJ_PROCFL_GET_JOBDATA :R/3-Job control
JOB_OPEN( startjob ) endjob is planned as successor of startjob . It runs even during aborting of startjob and ensures such a defined process end even in case of aborting.
The Report RBANK_PROC_START is called. As Parameter P_ID the ID of the process to be started is transferred.
SUBMIT startreport
JOB_CLOSE( startjob ) Der Report RBANK_PROC_END starts the flow at the process end Its Parameter P_ID during calling is supplied with the ID of the process to be closed. :cl_procflow BANK_OBJ_PROCFL_START_SYNC
startreport
end report
:cl_procflow BANK_OBJ_PROCFL_END
Process::AT_START
COMMIT BANK_OBJ_PROCFL_REL_PROC
BANK_OBJ_PROCFL_GET_CHILDS
BANK_OBJ_PROCFL_GET_MODE
Jobsteuerung: Prozessablauf IV
BANK_OBJ_PROCFL_END
BANK_DB_PROCFL_GET_STATUS
closed, aborted]
BANK_OBJ_PROCFL_LOCK_PRC
[Locking not
possible ]
Get the method, which implements the interface method AT_END_OF_PROCESS of the interface if_proc .
BANK_OBJ_PROCFL_WAIT_FOR_CHILDS
cl_ooman::BANK_API_OOMAN_GET_METHOD
<Prozeklasse>:AT_END_OF_PROCESS:
BANK_DB_PROCFL_SET_STATUS
DB::COMMIT_WORK
BANK_OBJ_PROCFL_REL_PROC
BANK_OBJ_PROCFL_GET_FATHER
BANK_OBJ_PROCFL_START_SUCC
Monitoring and control of the procedural flow through report RBANK_JC_OVERVIEW (Transaction: BANK_JC_OVRVW)
Network plan diagram Restarting Stopping a flow (Emergency stop )
Start of the parallel processing through BAPI is supported Transactions for automatic generation of Callback-FuB and for checking the interface consistency
BANK_PP_GEN und BANK_PP_CHECK
SAP AG 2001, Title of Presentation, Speaker Name 12
1 1..* Pack administrator PVerw-ID Kz. Standard Def.Type of packs 1 0..* work reserve
1 1..* Work package header work reserve-ID PackNo. Code.: requested number of open Obj. number of returned Obj. 1
BANK_PP_STEPDATA
Package administrator
BANK_PACKMAN_HD
Work stock(reserve)
BANK_WORKL_HD,
BANK_WORKL_CNT
:Mass runAPI
:Mass runOBJ
:Application
:PVerw-API
Method 0120: Set Parameter Call in UPDATE TASK, if I_X_TRIGGER... = 'X' BANK_OBJ_PP_EXECUTE _STEP BANK_OBJ_PP_START_CONTAINER Method 0160:Checks prior to start of a mass run In process flow within a update(entry) work process (WP-Types 2 and 6) BANK_OBJ_PP_START_CON TAINER is called with the addition STARTING NEW TASK
Mass run::BANK_OBJ_PP_JOB
Mass run::BANK_OBJ_PP_JOB
Mass run::BANK_OBJ_PP_JOB
Mass run::BANK_OBJ_PP_CONT_WITH_STEP
After Synchronisation with the help of Object status counter (Table BANK_WORKL_CNT) and the job status a mass run status is determined. If the percentage of the objects in the status 'reset' exceeds the threshold value stored in the Customizing (TBCAMPPAPPL) , the current step is repeated. If the maximal step number is not yet reached and the run status not 'aborted' or 'in asynchronous processing', the next step is started.
Method 1100: select data First processing of package without preselection BANK_API_WORKL_GET_OBJECTS BANK_API_PACKMAN_GET_OBJECTS [1.Pack processing] Follow up processing of the package or first processing with preselection [Follow up processing] BANK_DB_WORKL_GET_PACKOBJ
Method 1300: process data End of the package processing loop BANK_API_WORKL_CHANGE_STATUS
Other Literature
Design-Document on Job control in the InfoCenter
Title
H. Knallinger, D. E. Knuth, J. v. Neumann(), A. Turing() (Eds.): The Art of Parallel Processing, 347th. Ed., Berlin, Heidelberg, New York, 1999, ISBN: 0-123-4567-8