IDoc Part 2: Message Type, Basic Type and Extension
Preview · a free account unlocks the full lesson
Distinguish the IDoc building blocks: message type (business meaning, e. g. ORDERS), basic type (technical structure, e. g. ORDERS05), segments and segment hierarchy, extension types for custom segments, and the transactions WE30, WE31, WE60, WE81 and WE82.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 1 introduced IDocs in general; this lesson explains how their structure is actually defined.
The message type carries the business meaning — ORDERS for a purchase or sales order, INVOIC for an invoice, MATMAS for a material master record — while the basic type, also called the IDoc type, is the technical structure underneath, defining the segments and their hierarchy, as in ORDERS05, INVOIC02, or MATMAS05.
An extension is a customer addition of segments on top of a basic type, and the message type, basic type, and extension together are linked through transaction WE82.
It's worth noting that one message type can actually be used with several different basic types, or versions, and it's the partner profile that decides which one gets used in a given case.
The message type, maintained in WE81, simply describes what's being exchanged — ORDERS, ORDRSP, DESADV, INVOIC, MATMAS, DEBMAS, CREMAS, and so on — and is used both in partner profiles and in the distribution model to route IDocs to the right place.
The basic type, maintained in WE30, defines the segments themselves, their order, their hierarchy, and their minimum and maximum occurrences. Versions matter here too: ORDERS01 through ORDERS05, for example, with newer versions generally containing more segments, and the latest released version usually being the one in use. WE60 shows the full documentation for a basic type, including the structure and fields of every segment, which makes it essential reading when you're mapping data.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.