Purpose
If the IDoc types (basic types) supplied with the standard SAP System do not meet your requirements, you can define your own IDoc types.
Prerequisites
Before you define a new IDoc type, you should first check whether the basic types can be made to meet your requirements. You can display a list of these basic types and their meaning with the documentation tools of the IDoc interface, as described in point 1 of the section
Display IDoc Type or Segment DocumentationProcess flow
Preparation
New IDoc types should be defined within the scope of a customer extension within which customer segments are appended to an existing basic type. The section entitled
Important Termsexplains these and other important terms and should be read first.
Design Guidelines and Formatting Rules for Creating New SegmentsWhen creating a customer extension, you should first list the segments which are required. You may have to develop your own segments, in which case you should follow these guidelines. The following section:
Design Guidelines for Creating New IDoc Typesshould also be read before proceeding.
Definition
To define your IDoc types, you should use the development tools in the IDoc interface, which are described in the following sections:
Segment editor IDoc Type Editor The Programming Interface (API) for Defining IDoc TypesAutomatic definition of IDoc types is only required in special cases. You can generally skip this section.
Check lists: From definition to implementation
The following two checklists describe a general procedure from definition to implementation for new IDoc types in two cases:
Extending an IDoc TypeDefining and Using a New Basic Type