IDocs (interchange documents) are the medium of data interchange between SAP and other application.
IDocs are ASCII-based flat files containing lines of text that are ordered into data fields.
A typical IDoc contains a header line (control record) followed one or many data lines (data records).
Message type - A message type is a definition of the type of data generated and sent out from the target system.
An IDoc type defines the structure of data in an IDoc.
Export and Import IDoc
Steps in IDoc Sender SAP System
- SALE - Create Logical System ECDCLNTXXX and PID to represent Partner
- SM59 - Create RFC destination for target system PID_RFC
- Single Stack - TCP/IP type with Program ID
- Dual Stack - ABAP Connection
- WE21 - Create Port for target system SAPPID with above RFC destination.
- WE20/BD82 - Create Partner Profile and assign the outbound idoc with Port
- BD64 - Create Distribution Model (Optional) and Model view. It is used to decide who sends what to who.
Steps in Target PI(dual) system
- IDX1 - Create a Port SAPECD and assign RFC destination ECDCLNTXXX
- IDX2 - Create Metadata in the defined port SAPECD
- IDX5 - IDoc Monitoring
Steps in IDoc Receiver SAP System
- SALE - Create Logical System ECDCLNTXXX and PID to represent Partner
- SM59 - Create RFC destination for sender system PID_RFC
- Single Stack - TCP/IP type with Program ID
- Dual Stack - ABAP Connection
- WE21 - Create Port for sender system SAPPID with above RFC destination.
- WE20/BD82 - Create Partner Profile and assign the inbound idoc with Process code (FM)
- BD64 - Create Distribution Model (Optional)
IDoc Message Type
- CREMAS - Vendor Master (CRE1)
- DEBMAS - Customer Mater (DEMB)
- MATMAS - Material Master (MATM)
- SRVMAS - Service Master (SRVM)
- PRCMAS - Profit Center Master (PRCM)
- GLMAST - G/L Account Master (GLMA)
- COSMAS - Cost Center Master (COSM)
- INVOIC - Invoice/Billing Document (INVF/INVM)
- ISU_MR_UPLOAD - Upload Meter Reading Results (ISMR)
- HRMD_A - Employee Master
Monitoring at IDOC Receiver
- weinbqueue - tcode for Inbound idoc queue monitoring
- RSETESTD - report for idoc deletion
- RSEINBQUEUE_PARTNER - report for starting inbound idoc queue of sender
IDoc Acknowledgement
- Schedule report RBDSTATE to send IDoc Audit Confirmation(ALEAUD Message Type)