Académique Documents
Professionnel Documents
Culture Documents
Interface (CIF)
Contents
Introduction to CIF
CIF Functions
ERP -> APO
Master Data
Transaction Data
Locations
Products
PPMs (BOM+Routing)
Characteristics
Capacities
Planned/Production
Orders
Sales Orders
Purchase Orders
Stocks
ATP Requests
Planning Results
ATP Results
Manufacturing Orders
Procurement Orders
VMI Sales Orders
APO
ERP
BW
APO
ERP
ERP
APO
ERP
R/3
Set up a logical system
Assign LS to client
Set up RFC destination
Define target system (same
name as the RFC destination)
APO
Set up a logical
system
Assign LS to client
Set up business
system group
Assign LS to BSG
Master Data
Transfer
R3 to APO
R/3
APO
Plant
Location
Customer
Product
Vendor
Resource
Material master
Capacity
Production
process model
Routing and
bill of material
Integration Model
Transaction Code : CIF-EA
Integration Model distinguishes between
Master Data and Transactional Data elements
You can have multiple integration models.
However, there are certain recommendations in
deciding how many integration models to create
for an implementation (details given later)
In integration model, you select:
The data sets (master data objects,
transactional data objects)
APO target system for data transfer
Creation, Change, Display, Deletion possible
Name
Target system
target system
Material master
Resource
...
Integration Model
Generation
Integration Model = Name + Application
Target System = APO System (it should be a logical system having active
RFC connection)
Specify data objects to transfer - Filtering criteria available {Examples: Plant, MRP Type (X0 or X1), MRP Controller}
Execute system compiles the selected data objects (report available to
check compiled objects)
Generate (save the model)
Integration Model
Activation
Activate integration model (which
has been generated in previous
step)
This initiates data transfer from R3
to APO
The integration models are created
with time-stamps
The active integration model is
indicated by the icon
X0
MRP procedure
Without MRP,
with BOM explosion
Material master D
Material master C
Material master B
Material master A
Integration model
Name
PUMP
Target s. APOCLNT800
Applic.
MATERIALS
Material master
Mat. A
X0
... Customers
Relevant materials
Mat. B
X0
APO
Planning in
APO
Mat. C
X0
Mat. D
VB
Product C
Product B
Product A
Material
Plant
MRP type
Material
...
status
1000
X0
APO
recommended
Products manufactured
in-house at bottleneck
resources
Possible
in APO
APO not
recommended
(Non-critical) products
planned with reorder
point planning
(Non-critical) products
planned with KANBAN
Regenerate Data
Deactivate Model
Existing integration model
Execute+
Save
"Activate"
Active/Inact.
Activate Model
Re-Transfer of Product A, B & Q happens
Active
Inactive
PUMPS
Target system
APOCLNT800
Application
MATERIALS
JOB_1
Variant
PUMP_MAT
Execute
...
Step 1
Save
RIMODGEN report
alternative:
JOB_1_AND_2
Activate integration model
Name
PUMPS
Target system
APOCLNT800
Application
MATERIALS
RIMODAC2 report
JOB_2
Variant
PUMP_MAT
Active/
Inact .
+
Start
Step 2
Transaction CFC5
Material master
Business Transaction Event,
immed .
Customers
Business Transaction Event,
immed .
Vendors
Business Transaction Event,
ALE change pointer, periodic
no incremental data transfer
immed .
Change pointers are used by the ALE message distribution. Changes to Master Data are recorded
and given a change number (if they are in an active message type).
Transaction BDCP
CIF Message types must be activated for change recording. Transaction BD50
Activate Change Pointers. Transaction BD61
The fields relevant to a message type to be selected. Transaction BD52
Material master A
Change pointer
Mat.planning
MRP type
X0
Matl .
Customizing
11 days
Variant
DELTA_MAT
APOCLNT800
Object types
Material master
APO
Incremental
data transfer
Execute
...
Changed master
data in APO
Product A
Plan. deliv .time 11 days
Transactional Data
Transfer
R3 to APO
APO to R3 (Publication)
R/3
R/3 transaction data
Purchase orders
Initial data
transfer
Purchase requisitions
Sales orders
Planned orders
Planned ind.reqmts
Reservations
Stocks
...
Incremental
data transfer
Realtime
The APO transaction data objects are not generally identical to those of the R/3 System. The
system transfers various R/3 transaction data into APO as orders that differ by ATP category
Publication of Planning
Results APO to R3
Planning Results are transferred from APO to R3, which is termed
as Publication
Configuration in APO :
Basic settings (publication of planning results)
specify for each plant and publication type (example, inhouse production or external procurement,etc), which R/3
System (logical system) to publish planning results.
For PPDS :
In APO transaction /SAPAPO/C4 you set how (in what form) new
transaction data is to be transferred from APO PP/DS into R/3.
It is usually a real-time transfer (this is the default setting for
PP/DS data).
There is also the possibility of collecting the changes in APO
first, then transferring them to the R/3 as a collected group
(transaction /SAPAPO/C5).
Publication of Planning
Results
Report
T-Code
Function Module
: /SAPAPO/RDMCPPROCESS
: /SAPAPO/C5
: /SAPAPO/DM_CP_PUB
Publication of Planning
Results
In case the following objects have been created in R/3 and then changed in
APO, the changed parameters can be published back to R/3 without any
need to maintain the distribution definitions :
# Sales Order
# External Procurement
# Inhouse Production
# Production Campaign
# Delivery
# Confirmation Deletion (IS Auto)
# Reporting Points (IS Auto)
Consistency check
You can check the consistency of the selected
data in the integration model
CIF Monitoring
Data transferred in both directions (from R/3 to APO as well as from APO to
R/3) by means of one or more queued Remote Function Calls (qRFC).
The function calls are buffered in the sending system and executed
asynchronously in the same sequence they were called. This serialization is
controlled by the use of identical queue names and is required to assure
consistency.
Multiple qRFCs can be combined into a logical unit of work (LUW),
whereby one LUW on the sender side results in one LUW on the receiver side.
The system transfers only the planning of the active planning version '000'.
Product and location are assigned to the same business system group.In the
R/3 system, an active integration model exists for the respective material and
plant.
The application (for example the PP/DS or the SNP) in the APO system creates
an event.The event includes the Type of Change (Add, Change, Delete) and the
Internal Order Number.The system sends the event to a module of integration
module CIF (Core Interface) and stores it there temporarily.
The system transfers the changes to the R/3 system at a certain
time.Generally, the system transfers changes as mentioned below:
PP/DS : immediately (that is if you save the schedule in the APO system)
SNP : The system collects changes of the SNP and transfers them in blocks.
You can define deviations from this in Customizing.To do this, call
Transaction /SAPAPO/C4.In column 'Recording' you can define whether
the system collects changes or not.
If the system collects changes, it has to transfer all collected changes
via Transaction /SAPAPO/C5.
Alternatively, you can schedule a job periodically.Use report
/SAPAPO/RDMCPPROCESS to do this.
The system then sends the order data via qRFC to the R/3 system
(the q in qRFC stands for queue).
In the R/3 system, the system first converts the order data coming from the
APO into R/3 format. The system converts them into a date and a time.
During creation of new orders in the R/3 system, the system performs a
number assignment in the R/3.The system must transfer this new number
back into the APO system, together with other changes to the order, which
may have been made in the R/3 system.The APO system then makes the
assignment (mapping) between the R/3 order and the APO order and stores
it.
Communication Method
The queue for communication
might be of two types :
Outbound
Queue
Inbound Queue
Effect :
- Overloading of receiving system
- CIF performance deteriorates with high data volume
Effect :
- Better CIF performance
On R3 side
qRFC Monitor (Transaction CFQ1)
Application Log (Transaction CFG1)
On APO side
qRFC Monitor (Transaction SMQ1)
Application Log (Transaction /n/SAPAPO/C3)
Important Pre-Requisite at R3
and APO end (1)
Normal
the number of data records transferred is logged
Detailed
the number and content of the data records transferred is logged
Delete entries:
You can delete logs of the application log in R/3 and APO.
The system does not delete the logs automatically.
You can delete logs of the application log in R/3 and APO.
Recommendation : Deleting the logs periodically (schedule
background processing)
Refer Next slide for further details
CIF Monitoring
R/3
Application
log
R/3:
Error
APO
RFC
Master/
transaction
transaction data
data
Core
Core Interface
Interface
- Communication errors
- Application errors
APO master/
transaction data
RFC
Application
log
APO:
Error
live
live
Cache
Cache
User
800
800
MUSTER
MUSTER
Function module
Status text
CIF_ORDER_INBOUND_30A
CIF_ORDER_INBOUND_30A
User
02.10.2002 MUSTER
Number
Subobject type
120
In-house production
User
Number
Subobject type
02.10.2002 USERADMIN 1
In-house production
Problem class: very important
Problem class: medium
Problem class: additional information
Inbound R3CLNT800: For system APOCLNT800 no active integration
Example:
A planned order for
a finished product
and purchase
requisitions for the
components of the
finished product
have been created
in APO.
However, they were
not included in any
active integration
model in the R/3
System at the time
when the order was
created in APO.
Therefore, the
orders were not
created in R/3 but
kept in the queue
Initial supply
Stock
Purchase orders and purchase reqn
Planned orders/Production orders
Sales orders
Manual reservations
Confirmations
Planned independent Rqmnt
Materials
Production campaigns
Master data for classes
Master data for characteristics
CF_ADC_LOAD
CFSTK*
CFPO*
CFPLO*
CFSLS*
CFRSV*
CFCNF*
CFPIR*
CFMAT*
CFPCM*
CFCLA*
CFCHR*
Check R/3
application log
(T-Code: CFG1)
No
Check existence of
active integration
model
Yes
Yes
No
Correct error
Correct error
Reactivate queue
in R/3 and
retransfer
No
Check existence of
active integration
model
Yes
Yes
No
Correct error
Correct error
Reactivate queue
in APO and
retransfer
R/3
Report /SAPAPO/CIF_DELTAREPORT2
Partner system (R/3)
R3CLNT800
Material
P-102
(optional)
Plant
100
(optional)
Integration model
Pump
(optional)
Objects to be checked
Sales orders
Production/process orders
...
Purchase requisition
...
Database
Compare
live
Cache