Anda di halaman 1dari 12

IDocs

Agenda

• Introduction of Idocs
• Types of Idocs
• Segment Types, Message Types & Idoc Types (Basic Type)
• Step-by-Step Creation of Idocs
• Case Studies (Inbound & Outbound)
• Idoc List, Testing & Reprocessing
• Tcodes and Tables

1
IDocs

Introduction of Idocs

• IDoc stands for intermediate document. It is simply a data container


used to exchange information.

• Each IDoc is assigned a unique number for tracking and future


reference.

• In the SAP system, IDocs are stored in database tables.

• IDoc consists of several segments, and segments contain several


fields.

• IDoc contains the following three types of records.


1. One Control Record.
2. One or many Data Record.
3. One or many Status record.
3. One or many Status record. 2
2. One or many Data Record
Types of Idocs
• Depending on the direction of flow idoc can be inbound or outbound.
• Inbound Process : When the data is coming in the SAP system, the
process is called Inbound Process and the IDoc is known as Inbound
IDoc.
• Outbound Process : When the data is sent out from the SAP system,
the process is called Outbound Process and the IDoc is known as
Outbound IDoc.
Information flow Inbound

Application IDoc EDI System Partner System

Information flow Outbound


3
Segment Types, Message Types & Basic Type
Segment Type (WE31) : Idoc Segments contain actual data that is sent
to or received from a partner system.

Message Type (WE81) : Idoc processing involves transmission or receipt


of document in the form of message, each of which represents a
document in SAP. Message type is associated with Basic type & defines
the kind of data or document that is exchanged with the partner.

Basic Type (WE30) : Basic type defines the structure of an Idoc. It is


linked to different segments.

4
IDocs

Case Studies

Requirement :

Inbound IDoc will come from SAM System through XI. It contains E-Retail
fields including Web ID. Requirement is to modify ZERETAILMASTER
table with these IDoc fields. And send all data of that Web ID to PIM
System and Seller Portal System.

5
IDocs

Idoc List (WE02)

6
IDocs

Test Tool (WE19)

7
Debugging Of Idocs
How

Inbound Idoc :

Find FM in EDIFCT table with the help of message type.

Outbound Idoc :
• Go to SE11.
• Take segment from basic type.
• Put segment name in SE11.
• Click on Where-used List.

8
IDocs

Idoc Reprocessing (BD87)

9
IDocs

Important Tcodes
WEDI

10
Important Tables

1. EDIDC - Control record (IDoc)


2. EDIDS - Status Record (IDoc)
3. EDID4 - IDoc Data Records
4. EDIFCT - IDoc: Assignment of FM to log. message and IDoc
type

11
IDocs

Step-by-step guide to IDOCs

http://saptechnical.com/Tutorials/ALE/Guide/Index.htm

http://scn.sap.com/docs/DOC-34785

12