What is an IDoc?
Type is SAP's format for data being moved betweenlike electronically. This includes how ﬁelds are grouped together (segments), the order and hierarchyof these groupings, and the format of each individual ﬁeld.If you're familiar with EDI at all, then an IDoc will look very familiar to you. Nearly everything you'reused to is there: from segment name to allowable codesto min/max occurs.It is important to note that an IDoc Type is really just a structure deﬁned on the system and given aname (i.e., ORDERS04). An actual IDoc, however, consists of data, which ﬁts within the deﬁnedstructure of the IDoc Type. This IDo
The "only once" rule
It is valuable to note that SAP only allows one occurence of each segment type within the IDocstructure. For instance, the E1EDKA1 segment may only exist once withinthe IDoc type.Now, does that mean you can only have one E1EDKA1 segment in an actual IDoc? Of course not.04IDoc.
Data within an IDoc is divided1.Control Record, which contains (Table EDIDC)1.Key Fields (for inbound)1.Receiving Partner Type/ID (RCVPRT, RCVPRN)2.Logical Message Type3.Test Flag2.Other Fields1.IDoc Number (DOCNUM)2.3.Sending Partner Type/ID (SNDPRT, SNDPRN)4.Status5.Receiver/Sender Port6.Created Timestamp7.Changed Timestamp3.etc.2.Data Records (Table EDID4 in 4.6C)1.Admin Data (39 bytes)