CIF Monitoring Error Handling SCM
CIF Monitoring Error Handling SCM
CIF Monitoring
Consistency
Contents/Objectives
Contents
Core Interface and Queued RFC Inbound and Outbound Queues Queue Management Application Logging
Objectives
At the end of this unit, you will be able to: Describe the components of CIF Describe the technology of CIF Set up and use monitoring tools for CIF
Interface Scenario
SAP OLTP
SD LO
qRFC
SAP APO
HR
CIF
Core Interface
Sending System
Receiving System
Queue 1
tRFC
Queue 2
tRFC
Queue 10
. . .
tRFC
. . Queue <n> .
Outbound Queues
qRFC
tRFC
Processing of RFCs
LUW
Sending System
Receiving System
Queue 1
tRFC
Queue 2
tRFC
Queue 10
. . .
tRFC
. . Queue <n> .
Outbound Queues
qRFC
tRFC
Processing of RFCs
LUW
tRFC
tRFC
Queue 10
. . .
tRFC
. . Queue <n> .
Outbound Queues
qRFC
tRFC
Processing of RFCs
LUW
Outbound scheduler
booking of LUWs
OLTP
APO
booking of LUWs
Outbound scheduler
Outbound scheduler
Inbound scheduler
book LUW
OLTP
book LUW
APO
deliver LUWs to inbound queue
Inbound scheduler
Outbound scheduler
Transaction CFC1
QOUT Scheduler
Transaction SMQS
Transactional RFC Options for automatic Error Handling Transaction SM59 double click on RFC-Destination <SID>CLNT<nnn> -> Destination -> TRFC options
Batch
Background job ARFC:<Transactional ID> based on RSTRFCSL High number of such background jobs if there are network problems
Dialog
Manual scheduling of periodic background job RSQOWKEX ( outbound ) and RSQIWKEX ( inbound ) for example every 15 min Higher waiting time in queues if there is an error Resets status of all queues
SAP recommendation : background jobs for connection errors Set the time between tries to 2 or 3 minutes Set the number of tries to 10 Adapt your response to the customer situation!
Retry every Entry every 3 Minutes in a batch job with upto 10 Attempts
Remind that status complete does not mean that the transmission was successful you have to look into the queue to determine the entry status.
QIN Scheduler
Transaction SMQR
Inbound scheduler
WP3 Saves LUW into inbound queue
Outbound scheduler
Quota Parameter : rdisp/rfc_check Keep in mind that there is only ONE rfc profile parameter set per instance : If two different rfc-Logon Groups of the same Instance refer to the same set of online parameters and you change the parameters for Logon Group CIF for instance cigsb_GSB_10 also the parameters of Logon Group Clientcopy for instance cigsb_GSB_10 are changed accordingly.
Transaction /SAPAPO/CQ
Activate the qRFC Manager for a selected queue. The LUWs in the queue will be sent immediately.
Lock a selected queue. A stop mark will be set on the end of existing queue. All previously recorded LUWs will be processed up to the stop mark.
Unlock a selected queue. The first stop mark in the queue will be removed. The qRFC Manager will be started immediately and execute the LUWs until the next stop mark, or the end of the queue, if no stop mark is set.
Lock a selected queue immediately. The stop mark will be set to the very first line in the queue, so the complete queue will be stopped.
Unlock a selected queue without activation. The stop mark will be removed without activating the qRFC Manager ( e.g. used for debugging).
!
Don't simply delete queue entries. You might cause inconsistencies.
Transaction SM21
Queue names R/3 => SCM (for a complete list see Note 786446)
Queue name
CFSTK* CFPO* CFPLO* CFSLS* CFRSV* CFCNF* CFPIR* CFMAT* CFFCC* CFPCM* CFCLA* CFCHR* CFCUVT* CFSHP* CFTL* CFTG* FC* CFCB* CFCR* CFCD** CFCL*
Description
Stock Purchase orders and purchase requisition Planned orders/Production orders Sales orders Manual reservations Confirmations Planned independent requirements (created in R/3) Reduction of PIRs Reduction of PIRs (if separate Imod is used) Production campaigns Master data for classes Master data for characteristics Planning tables Transports (TP/VS scenario) Transport locks (TP/VS scenario) Deletion of temporary quantity assigments GATP (in one LUW with CFSLS*) Fulfillment coordination (only if qRFC consumption is used) CBase Configuration CBase Configuration, special case CDP Configuration Classification
Not yet executed (only temporary) Execution active Waiting until the LUWs with a higher priority are executed No free DIALOG work processes in the sending syste Temporary problem during execution (locking issue), background job scheduled Execution explicitly stopped Outbound: LUW is not sent (only used for debugging) Inbound: LUW is not processed (only used for debugging) A serious error has occurred in the target system (APO) while the LUW was executed An error occurred during establishing the connection
double-click
Queue display with all related tables and their content in DDIC format on SCM side
Receiver system
ARFCRDATA
This table is not filled by tRFC instead the function module is called directly
ARFCRSTATE
Outbound Queue Transaction / Report Stop selected queue(s) Start selected queue(s) SMQ1 / RSTRFCQ1 SMQ1 / RSTRFCQ3
/SAPAPO/CIFSTOPQUEUES
/SAPAPO/CIFSTARTQUEUES
Display Application Log in OLTP System: Transaction CFG1 Display Application Log in APO System: Transaction /SAPAPO/C3
qRFC Monitoring
qRFC monitor
Display transfer queues Display waiting qRFC calls Restart waiting calls
Application problems must be solved by a system administrator in cooperation with an application manager
APO
Value 10
638 ms
down
2862 ms
73508
down
181
3591 ms
100 %
214 ms
390 ms
down
214 ms
880.98 GB
steady
88.81 GB
17.98 GB
up
0.07 GB
Active Users
Normally very high number in R/3, Less in APO ( only Planners )
Database Size
R/3 databases are often big and increase rapidly In general APO is smaller and growths slowly
R/3 Key Performance Indicators ( KPI ) do not work in APO Service Level Agreements ( SLA ) have to be adapted
Postprocessing
is an alternative strategy to avoid blocked CIF queues.
Receiving System
qRFC
Error
Receiving System
qRFC
Error
Postprocessing Facts
After activation of CIF error handling, the chance of blocked queues after online data transfers of transactional data will decrease Improved analysis of qRFC warnings and errors without automatic interruption of queue transfer process Instead of blocked queues a so called CIF error log will be created Warnings/Errors can be solved offline without stopping data transfers Integration of new CIF Error Handling in CCMS is currently not planned
Postprocessing Limitations
APO CIF
OLTP
DB
DB
Procedure of postprocessing
OLTP
DB
DB
Send to R/3
Add to Worklist
Refresh button
!
Whether an entry should be postprocessed or not must be determined by the application team
Summary