Structure of the IDoc
An IDoc consists of * Control record (it contains the type of IDoc, port of the partner, release of SAP R/3 which produced the IDoc etc.) * Data records of different types. The number and type of segments is mostly fixed for each IDoc type, but there is some flexibility (for example an SD order can have any number of items). * Status records containing messages like 'IDoc created', 'The recipient exists', 'IDoc was successfully passed to the port', 'Could not book the invoice because..' The IDoc itself is a structured Text-File, that means IDocs can be used on all platforms, there is no need to translate binary data. Each record is identified by the name of the record. The load (data) is stored in a 1000 byte long container. Use transaction WE60 in a SAP-System to get documentation for IDocs, like HTML files and C-header files. Example ORDERS01 Segment E1EDK01 /* -------------------------------------------------------------------------------------------------------------------- */IDoc Transactions in SAP
The following transactions can be used to create and process IDocs. The list does not include any transaction required for the development of new IDoc types. Please note that you get a comprehensive list of available transactions by using area menu WEDI. * WE02 - IDoc List report * WE05 - IDoc List * WE09 - IDoc Search for Business Content * WLF_IDOC - IDoc Processing ** This transaction is used to display and edit IDocs. * WE19 - Test Tool for Idoc Processing * WE20 - Partner Profile ** This transaction determines a processing code based on the partner profile identified by the control record of the IDoc. * WE21 - Ports in IDoc processing ** This transaction identifies an external port (RFC, File, ABAP-PI, etc.) that controls the IDoc flow to an external system. * WE30 - IDoc Type Development * WE31 - Development IDoc Segment * WE32 - Development IDoc View * WE41 - Outbound process code ** This transaction links an outbound processing code specified in a partner profile to a function module. * WE42 - Inbound process code ** This transaction links an inbound processing code specified in a partner profile to a function module. * WE60 - IDoc Documentation * BD87 - Inbound processing ** This transaction processes outbound IDocs.NAST
NAST is a technique in SAP-Systems to create messages. Messages can be printed, sent or transferred into IDocs. SAP uses this for many applications e.g. Purchase Orders (PO ). The PO can create a message which might be printed, sent by FAX, or translated into an IDoc of type ORDERS. The IDoc ORDERS can be forwarded in an B2B-process to a vendor.Error Handling
Transactions like WE02, WE05, WE09, WE19, and BD87 are used in traditional approaches to error handling in IDOC administration. Drill down through the idocs status data to find the actual root case. However, SAP S/4 HANA has rectified this and now provides an upgraded version of all of these with the WLF_ IDOC transaction.References
External links