Idoc Concepts
Idoc Concepts
Idoc Concepts
IDOC Concepts
2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice
IDOC Concepts
Audience ABAP Consultants & Functional Consultants
page 2
IDOC Concepts
Table of Contents IDOC Definition
IDOC IDOC IDOC IDOC IDOC IDOC IDOC IDOC IDOC
Benefits Components Message Types Process Codes Structure Types of Processing Outbound data flow Port Definition RFC Destination
page 3
page 4
System 1
SAP Document
System 2 IDoc
Document Transaction Message
R/3 System
IDOC Benefits
The advantage of using the IDOC interface is that it is an open interface. It is Independent of sending and receiving applications.
y The advantage of using the IDOC interface is that it is an open interface. It is Independent of sending and receiving applications.
Communication with back level IDOCS. Custom Applications, which are developed with the previous y Exception Handling via Workflow, SAP Uses the Workflow to route the errors to the Concerned Person. version of the IDOCS, are supported. SAP Can Generate Enhance the add on (Customer) Requirements. and process back level IDOCS.
y Communication with back level IDOCS. Custom Applications, which are developed with the previous version of the IDOCS, are supported. SAP Can Generate and process back level IDOCS.
Exception Handling via Workflow, SAP Uses the Workflow to route the errors to the Concerned Person. Enhance the add on (Customer) Requirements.
page 6
IDOC Components
The IDOC Components are as follows Segments
y The advantage of using the IDOC interface is that it is an open interface. It is Independent of sending and receiving applications.
y Communication with back level IDOCS. Custom Applications, which are developed with the previous version of the IDOCS, are supported. SAP Can Generate and process back level IDOCS. y Exception Handling via Workflow, SAP Uses the Workflow to route the errors to the Concerned Person.
page 7
Tree of Segments
Status Records
99
page 8
page 9
page 10
page 11
WE30
page 12
attribute s
page 13
WE81
Message type represents the Business process . For example ORDERS Message type for PO/Order.
page 14
page 15
Control Record
IDoc-ID Sender-ID Receiver-ID IDoc type and logical message External structure IDoc-ID Sequence/Hierarchy Segment Format definition for
header data item data
Data Record
Status Record
page 16
page 17
Outbound Messages
Inbound Messages
page 18
PORT
page 19
IDoc
IDoc
IDoc
IDoc
File + RFC
tRFC
CPI-C
MIME
ABAP
XML
EDI Any
2.1 on
ALE Any
3.0 on
R/2
3.0 on
Internet
3.1 on
Any
4.5 on
EC Any
4.6 on
page 20
page 21
Programs
page 22
page 23
R S N A S T E D
1/2
3/4
Single IDoc
page 24
by the SAP system: 01 IDoc created 03 Data passed to port OK 18 Triggering port OK 25 Processing despite syntax error (outbound) 26 Error during syntax check of IDoc (outbound) 29 Error in ALE service 30 IDoc ready for dispatch (ALE service) 31 Error - no further processing 37 IDoc created with errors 39 IDoc received in target system 40 Error - application document not created in target system 41 Application document created in target system 42 IDoc created by test transaction Status by the EDI subsystem: 06 Translation OK 08 Syntax check OK 10 Interchange handling OK 12 Dispatch OK 14 Interchange Acknowledgement positive 16 Functional Acknowledgement positive 22 Dispatch OK, acknowledgement still due 24 Control information of subsystem OK
page 25
SAP Application
page 26
In
this process inbound process code is defined with the workflow options. The WF task could be single or multiple tasks. This will be used in EDI process not in ALE.
Use
the direct input via function call rather than Workflow for inbound processing because of the performance overhead of invoking Workflow for each inbound IDOC or IDOC packet.
page 27
page 28
added 56 IDoc with errors added 60 Error during syntax check of IDoc (inbound) 61 Processing despite syntax error (inbound) 62 IDoc passed to application 63 Error passing IDoc to application 64 IDoc ready to be passed to application 65 Error in ALE service 66 IDoc waits for predecessor (Serialization) 68 Error - no further processing 74 IDoc added by test transaction Status by the SAP system (Applications): 51 Error - Application document not posted 52 Application document incomplete posted 53 Application document posted
page 29