Professional Documents
Culture Documents
SAP IDoc Overview and Outbound IDoc
SAP IDoc Overview and Outbound IDoc
Internal
IDoc (Intermediate Document)
Documents)
IDoc is an SAP object that carries It stored in character format or
data of business transactions from stored in structure but not in
one system to another system in binary format with file.
the form of electronic messages.
Internal
IDoc (Intermediate Document)
Documents)
“EDI is electronic exchange of business document between the computer systems of
business partners, using a standard format over a communication network”. EDI stands
for Electronic Data Interchange.
For transmission of information electronically, two widely used standards are ANSI ASC
X12 and EDIFACT. ANSI ASC X12 is a committee formed by representatives of major
organizations, government bodies and EDI software companies which defines standards
and guidelines for information interchange over EDI. UN/EDIFACT stands for United
Nations EDI for Administration, commerce and Transport and was formed in 1985 using
ANSI X12 and UNTDI (United Nations Trade Data interchange) as base standards. ANSI
X12 describes business document as transactions and each transaction is represented
by three-digit number e.g., 850 – Purchase Order, 855 - Purchase Order
Acknowledgement. EDIFACT describes business document as messages, represented by
standard names e.g., ORDERS for purchase order.
Internal
IDoc Structure & Records
Control Record- contains information such as IDoc no,
direction, basic type, message type, partner, date & time.
This records are stored in the transparent table EDIDC.
Internal
IDoc (Intermediate Document)
Documents)
There are mainly two directions of IDocs. Below are
those
1. Outbound
2. Inbound
Internal
IDoc (Intermediate Documents)
1- Outbound IDoc
Internal
Outbound IDoc
Outbound IDoc can be sent in 3 ways
1
• Custom Program(using FM MASTER-IDoc-
DISTRIBUTE)
2
• Message Control
• Ex: PO Status, GR Status, IR Status
3
• Change Pointer/Change documents
• Ex: Material Master, Price Condition Records
Internal
Outbound IDoc
Internal
JSON/XML Format Sample
JSON XML
Internal
Outbound IDoc Status
01 Idoc created
03 Data dispatched to port ok (so the Idoc has successfully passed from the ALE layer to the RFC layer
for transmission to the receiver)
12 Dispatch ok
18 Triggering port ok
25 Processing despite syntax error (outbound)
26 Error during syntax check of Idoc (outbound)
29 Error in ALE services
30 IDoc ready for dispatch (ALE service)
31 Error no further processing
37 Idoc created with errors
39 IDoc received in target system
40 Error application document not created in target system
Internal
Purchase Order Output
Configuration
Output Type Configuration:
Internal
Outbound IDoc Configuration-
ABAP
Step Terminology Transaction
Code
1 Create a segment : WE31
Result of dividing up a portfolio. A segment is a subset of a portfolio.
A segment of a portfolio can have different attributes depending on the
assigning criteria that are used.
3 Create Message Type Message type associate with basic IDoc type & WE81
defines the kind of data that is exchanged with the partner. One IDoc
type can be associated with many message types.
Internal
Outbound IDoc Configuration-
ABAP/Basis
Step Terminology Transaction
Code
4 Create Message Type- IDoc Type-Extension: In this step, Message type is WE82
assigned to the IDOC type and extension if it is available.
5 Create the RFC Destination: RFC destination will be going to contain the SM59
external system endpoint including Host, Path Prefix. Also maintain the basic
authentication. In order to send the outbound IDOC to we need to maintain
the RFC destination in SAP System
Internal
Outbound IDoc Configuration-
Basis
Step Terminology Transaction
Code
6 Create Port : WE21
The technical attributes of a communication channel (a port).
IDoc interfaces include information such as the IP address of a target system (port type
"Internet"),
or the directory and name of the file in which the communication data should be
transferred (port type "file").
Internal
Outbound IDoc Configuration-
ABAP
Step Terminology Transaction
Code
7 Create Process Code : WE41
Process code refers to a workflow or a function module which helps in reading
or writing data from/to IDoc. Process Codes are used in both ALE and EDI
framework to identify the function module or API (Application Programming
Interface) to be invoked for subsequent processing. Inbound as well as
outbound interfaces use process code but for different purposes. Outbound
process codes are stored in table TEDE1
Note: Process Code is assigned under Message Control during Partner Profile
setup
Internal
Outbound IDoc Setup - Functional
Step Terminology Transaction
Code
8 Partner Profile Contains parameters for inbound & outbound processing of IDocs. WE20
Receiver Side ( Outbound to ) : In Partner type LS name XXXXX create the
Outbound Parameters, give the Message type, Receiver Port same as the port we
created in step 2. Enter the Basic type.
Message Control: Contains application for which IDoc will be created. The
message type of the application will trigger the IDoc.
Note: For outbound IDoc with Message types, respective Message Type and
Process Code needs to be assigned in Partner Profile which is not needed for
Change Pointers. PO Output configuration needs to be completed before this
setup
9 Change Distribution Model- This is required for the outbound IDoc with Change BD64
Pointers. A model view needs to be created and assign to the Message Type
Internal
Outbound IDoc Testing
Purchase Order Status:
Internal
Important Links of IDoc
https://wiki.scn.sap.com/wiki/display/ABAP/ALE+and+IDocs?original_fqdn=wiki.s
dn.sap.com#ALEandIDocs-ALE
https://wiki.scn.sap.com/wiki/display/ABAPConn/IDoc+Overview
https://wiki.scn.sap.com/wiki/display/ABAP/ALE%2CIDOC
Internal
IDoc (Intermediate Documents)
THANK YOU