CIF Monitoring Error Handling SCM
CIF Monitoring Error Handling SCM
CIF Monitoring
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
CIF
Core Interface
tRFC
Queue 1
tRFC
Queue 2
.
.
. tRFC
Queue 10
.
.
tRFC
. <n>
Queue
Outbound Processing
Queues of RFCs
qRFC LUW
Core Interface with Help of Queued RFC (2)
tRFC
Queue 1
tRFC
Queue 2
.
.
. tRFC
Queue 10
.
.
tRFC
. <n>
Queue
Outbound Processing
Queues of RFCs
qRFC LUW
Core Interface with Help of Queued RFC:
Errors
Error
Sending System Receiving System
tRFC
Queue 1
Dependency
tRFC
Queue 2
.
.
. tRFC
Queue 10
.
.
tRFC
. <n>
Queue
Outbound Processing
Queues of RFCs
qRFC LUW
Outbound Queue Scenario
Outbound scheduler
booking of LUWs
OLTP APO
booking of LUWs
Outbound scheduler
Inbound Queue Scenario
book LUW
OLTP
APO
book LUW
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 Dialog
Transaction SM37
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
Customizing Possibilities in Inbound Scenario
WP5
WP2
Calls WP Books LUW
using RFC-logongroup
in RFC-Destination WP4
Calls WP5
using AS-Group
WP1
Inbound scheduler
Calls WP2 WP3
using AS-Group
Saves LUW into
inbound queue
Outbound scheduler
Customizing Possibilities : RZ12
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.
Check available resources for RFCs
Work processes
currently availabe for
qRFC / tRFC / aRFC
processing
Local Outbound Queue Overview
Transaction SMQ1
Show
blocked
Queues
Details of Selected Queues
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.
!
Don't simply delete queue entries.
You might cause inconsistencies.
Protocol of deleted CIF Entries
Transaction SM21
Local Inbound Queue Overview
Transaction SMQ2
Display Inbound Queues with Problems
WAITING Waiting until the LUWs with a higher priority are executed
SYSLOAD No free DIALOG work processes in the sending syste
RETRY Temporary problem during execution (locking issue),
background job scheduled
TRFCQIN
Receiver system
TRFCQDATA
ARFCRDATA ARFCRSTATE
TRFCQSTATE
This table is not filled
by tRFC – instead the
function module is
called directly
OLTP and APO: Stopping and Starting Queues
/SAPAPO/CIFSTOPQUEUES /SAPAPO/CIFSTARTQUEUES
Local Application Logging
Database Space
DB Size 880.98 GB steady 88.81 GB
Management
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
Postprocessing
is an alternative strategy to avoid blocked CIF queues.
CIF Error Handling Default
CFPLO2222222222
Error
Confirmation
CFCNF1111111111
Confirmation
CFCNF2222222222
Stock XXX
CFSTKXXX
Stock YYY
CFSTKYYY
CIF Error Handling with Postprocessing
CFPLO2222222222
Error
Confirmation
CFCNF1111111111
Confirmation
CFCNF2222222222
Stock XXX
CFSTKXXX
LUW is skipped and
will be rebuilt during
Stock YYY post processing
CFSTKYYY
Postprocessing Facts
Default :
Error handling is switched OFF
Storing Postprocessing Records
APO OLTP
CIF
DB DB
Resent Postprocessing Records
Procedure of postprocessing
APO OLTP
CIF Post Processing
CIF
Resend LUWs
DB DB
Usage types for Postprocessing
Postprocessing transactions
!
Postprocessing Records
must be reorganized
!
Whether an entry should be
postprocessed or not must be
determined by the application
team
Important Administrative Reports and Jobs (1)
Important Administrative Reports and Jobs (2)
Important Administrative Reports and Jobs (3)
Summary
Priorities in 7.40:
High: request from UI (by default only SAP GUI)
Low: batch processing (RFC started from BTC session)
Medium: all other requests (HTTP, RFC)
Quotas
Work process quota for sessions with medium and low priority
A maximal runtime can be configured for each priority (instead of using
“rdisp/max_wprun_time”)
Session Priorities
SAP Note 2129291 - Session Priority and Work Process Quota in SAP Kernel
7.4x
Preemption
Session preemption
Imagine that a request (with high/middle priority) cannot be processed because all work
processes all work processes that can handle this sessions are busy.
The ABAP VM periodically checks whether there is such a request of higher priority and a
rollout of the current session is possible (via check function ThCheckForPreemption).
If this is the case, the session with lower priority is rolled out.
Configuration
Request Queue Configuration
All processes and queues share the same request queue infrastructure in shared memory
Limitation is the maximum number of requests
Configuration via profile parameter rdisp/max_elems_per_queue
Default: 2000
Results in 7 ×
rdisp/max_elems_per_queue requests Default: 14000
(to keep old profiles
compatible)
Protect the request queue from being flooded by requests for a certain worker type
Protect the request queue from being flooded by requests for a single session
Maximum quota for dialog work process used for medium/low prio requests:
rdisp/scheduler/prio_low/max_quota Default: 80%
rdisp/scheduler/prio_normal/max_quota Default: 80%
Deprecated and Removed Parameters
Deprecated parameters:
rdisp/rfc_min_wait_dia_wp Number of work processes not used for RFC
rdisp/http_min_wait_dia_wp Number of work processes not used for HTTP
usage overwrites quotas set by
“rdisp/scheduler/prio_*/max_quota”
Removed parameters:
rdisp/rfc_check Enable/disable work process check for RFC
rdisp/http_check Enable/disable work process check for for HTTP
rdisp/max_arq Length of local wp queues for asynchronous requests
rdisp/appc_ca_blk_no Maximum number of ca blocks reserved for CPIC/RFC