IDOCs D
IDOCs D
An IDoc is simply a data container that is used to exchange information between any two processes that can understand the
syntax and semantics of the data. IDoc is not a process.
- IDocs are stored in the database.
- In the SAP system, IDocs are stored in database tables.
- IDocs are independent of the sending and receiving systems.
- IDocs are independent of the direction of data exchange.
Creation of IDOCs
Transaction code: WE30 – IDOC Basic Type
Process
The two processes for IDoc are Outbound Process and Inbound Process.
Outbound Process
When the data is sent out from the system, the process is called Outbound Process and the IDoc is known as Outbound
IDoc.
Inbound Process
When the data is coming in, the process is called Inbound Process and the IDoc is known as Inbound IDoc.
BD87 - Process inbound IDoc - When you restart processing of a failed IDoc in BD87 you only deal with
this failed IDoc.
BD87 you can process any number of Idocs.
You CANNOT process a SUCCESSFUL Idoc in BD87.
WE19 - IDoc: Test tool inbound - If you open an existing IDoc in WE19 and process it again you create a
new IDoc.
You can process only one Idoc at a time.
You CAN process a successful Idoc in WE19.
Both tcodes are attached to same program RSEIDOC2. There is nothing much difference.
WE02 - Display IDoc
WE05 – Idoc List. WE05 to view the IDocs and their statuses.
Now, let us understand the ALE Configuration by means of an example scenario below:
The Scenario
▪ Go to WE81
▪ Create a new Message type ZRZSO_MT
▪ Save the object
▪ Go to WE82 and create new entry
▪ Assign the message type ZRZSO_MT to the basic type ZRZORDER
▪ Also specify the Release Version
▪ Save the object
Question- What are the types of records in SAP ALE Idoc and where is this information stored?
There are three types of records in SAP ALE Idoc:
Control Records : Control record information for an IDoc is stored in standard table EDIDC.
Data Records : Data record information for an IDoc is stored in standard table EDIDD.
Status Records : Status record information for an IDoc is stored in standard table EDIDS.
Question- What is a Message type and Idoc Type? What is the difference between Message type and an
IDoc type?
Answer: Message type and an IDoc type are closely related. In fact, you will find that a Message type is
always associated with an IDoc type. Whereas an IDoc type is a detailed version with all the segments and
fields, a Message type is used just to specify the kind of information that a system can send or receive to or
from another system.
So If system SAP1 has a Partner Profile where it specifies MATMAS as an outbound message type, it just
means that SAP1 can send material master data to say system SAP2.
If system SAP1 has a Partner Profile where it specifies MATMAS as an inbound message type, it just means
that SAP1 can receive material master data from say system SAP2.
What all fields can be sent and received will be specified in the IDoc type.
Some other message types: DEBMAS (Customers), CREMAS (Vendors) belong to the Master data.
The link between a message Type and an IDoc type is maintained in Tcode WE82.
Question - What is a partner profile? What are the types of partner profiles?
To be able to communicate with a partner via an IDoc interface, each system needs to maintain a partner
profile. A partner profile is a mechanism by which the system can specify what kind of messages (message
types) it can send or receive.
Partner profiles can be maintained in WE20.
ALE Configuration
Click on Sending and Receiving Systems à Select Logical Systems--Here Define the Logical Systems à Click on Execute
Button
Go for New Entries
1) System Name : LOG1:Description: Sending System
2) System Name : LOG2:Description: Receiving System
Press Enter & Save it will ask for Request if you want new request create new request or press continue for transferring the
objects.
Assigning Client to the Logical System:
Select Assign Client to Logical Systems -