IDOC Structure and Records, Sending and Receiving IDOCS tutorial for the functional consultants. Welcome to SAP ABAP Interview Questions.
Here in this post we are providing IDOC tutorial on Idoc structure and records, sending and receiving idocs. Before going to read this post we suggest you to go through the previous posts in this series of IDOC tutorials for the functional consultants.
IDOC STRUCTURE AND RECORDS
STRUCTURE
IDoc
structure is divided into Control Record, Data Records and Status records.
These
records are stored in the transparent tables in SAP. These are EDIDC, EDID4 and
EDIDS.
CONTROL
RECORD (EDIDC)
It
contains information such as IDoc number, direction, IDoc Status, Basic Type,
Message Type, Partner (Sender/Receiver), date and time of creation/update,
Interchange File or ISA number,etc.
DATA
RECORD (EDID4)
It
contains the details of the IDoc segments.
IDoc
segment has fields that contain the data necessary for posting the documents.
STATUS
RECORDS (EDIDS)
IDoc
Status defines the processing status of the IDoc. IDoc statuses are used to
track the IDoc and its various processing states. Status Numbers represents
IDoc status. Current status of the IDoc is present in Control record.
Initial
Status numbers are 64 for inbound and 03 for outbound. Successful status is 53
for inbound and 16 for outbound IDocs.
SENDING AND RECEIVING IDOCS
TRIGGERING AN OUTBOUND IDOC
Outbound
IDocs can be triggered from the output message types of Purchase Orders,
deliveries, Material Documents, invoices, etc.
The following figure shows that
once the output ZXX1 of PO XXXXXXX1 is processed an IDoc “000000XXXXXXXXX1” is
added/created.
The
relationship between the IDoc and the application document can be found in two
ways:
1. Relationship tab of IDoc
2. Relationship tab of
Application Document, e.g. PO, SO, Material Document, etc.
The
initial status of this IDoc will be 30, which after successful processing will
convert into status 16.
A
successful outbound IDoc will pass through all the above statuses in reverse
order (01-03-18-06-12-16). Each status represents an IDoc validation step. If
an IDoc passes all the validations it would reach status 16.
These different
validation steps for outbound IDocs are explained below:
01:
IDoc generation successful
30:
IDoc is ready to be processed by IDoc Processing job
03:
IDoc data is passed to the Port
18:
IDoc successfully triggered EDI subsystem
06:
IDoc data translated to EDI format
12:
IDoc is dispatched successfully to the partner
16:
Partner has received the IDoc successfully
IDoc
can possibly fail at any of the above steps during validation.
RECEIVING
AN INBOUND IDOC
The
initial status of an inbound IDoc is 64 and successful status is 53.
Different
validation steps for inbound IDocs are explained below:
50:
IDoc received successfully in the system
64:
IDoc is ready to be processed by IDoc processing job
53:
Application document created and saved successfully. The document number can be
found by expanding the status node 53
An
inbound IDoc goes through all the above statuses in reverse order (50-64-53).
"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.