Shreeja SAP Learning Hub
IDoc
Types of IDoc
1) ALE IDoc (Application link enabling)
Use to transfer data between SAP to SAP.
2) EDI IDoc (Electronic data interchange)
Use to transfer data between SAP to Third party system and vice versa.
IDoc direction
1) Outbound – Code of direction (1)
When IDoc is going from SAP to Third party
2) Inbound – Code of direction (2)
When IDoc is from Third party to SAP
Partner in IDoc -
Partner represents the type of your business partner.
1) Customer (KU)
2) Vendor (LI)
3) Logical system (LS)
Partner profile creation-
T code- WE20
Basic types- (Std)
1) ORDERS04 – for PO (04 is extension of IDoc)
2) MATMAS04 – for Materials
Message types- (Std)
1) ORDERS – for PO
2) MATMAS – for Materials
How to monitor IDoc? Or Which type of data contains in
IDoc?
T- code – WE02
1) Control record- (Table- EDIDC)
IDoc no-
Direction-
Status-
Basic type-
Message type-
Receiver or sender information
Port no-
Partner no-
Partner type-
2) Data record- (Table- EDIDD)
Data record contains data of IDoc in form of segments. Segments contain
fields.
3) Status record- (Table- EDIDS)
Status record represent stage of IDoc
0-49 for Outbound
50-75 for Inbound
Real time use of IDoc -
Company is using third party system for warehouse management WMS.
So, it important to send Material data, PO data from SAP to WMS
On other hand, when any GR, GI or physical inventory will happen In
WMS then data should send from WMS to SAP
If above activities will not happen on time inconsistency will happen in
both systems.
Systems involved in IDoc
SAP
Middleware – Work as bridge between SAP and Third-party system (Mule
soft, PI/PO)
Third party system- (In our case consider WMS warehouse management
system)
Outbound IDoc-
Middleware Third party
SAP
system (WMS)
(MuleSoft)
PO Created in SAP
PO data (PO no. vendor, Material, Qty, Plant, Price) will send to WMS.
Data gets updated in WMS.
Inbound IDoc-
Staging table in SAP gets Data gets updated
Middleware updated. Custom ABAP
Third party in SAP. Eg Material
system (MuleSoft) program scheduled to run doc gets triggered
(WMS)
GRN posted in WMS -
GRN data for respective PO no. (Document date, posting date, Qty
received, Stg location) will send to SAP from WMS.
This data gets stored in staging table in SAP
When custom program runs, by using above data material document
created in SAP automatically.