Idoc Part 2
Idoc Part 2
In the post processing option we can maintain the workflow details of the
users or positions to which an error notification will be sent if an IDoc
processing fails.
EDI standard screen contains the details of the Standard EDI terminology
used for the IDoc transmission.
For example, Message Type 850 is an EDI standard for Purchase Order
IDoc and is linked to IDoc Message Type Orders.
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.
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.
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:
IDOC PROCESSING
AUTOMATIC/IMMEDIATE PROCESSING
In this case, IDoc are processed immediately as they generated or added
in the system. The check “Transfer IDoc immediately” is selected in
Outbound Options and “Trigger Immediately” is selected in Inbound
Option. These checks are generally used when the real time information
exchange is necessary between two systems.
MANUAL PROCESSING
IDocs can also be manually processed using the TCODE BD87 in SAP.
REPROCESSING IDOCS
These IDoc stays in the system for reference only and cannot be
processed. The status of the edited IDoc becomes 69 (inbound) and 32
(outbound).
These IDocs can then be processed using BD87 transaction or batch jobs.
IDoc search can also be made on the basis of ISA or Transfer file
Reference.
Though, the IDoc failure may not be related to any of the above-mentioned
reasons, the best way to find the IDoc error is to compare the existing
IDoc with the good example. Good example IDoc can be easily searched
with any of the IDoc search methods as described above.
The following list gives the Basic Type and Message Type combination
for common idocs
ARCHIVING/DELETION OF IDOCS FROM DATABASE
As IDocs grow older they are archived and deleted from the database.
Archived IDocs can be viewed using TCODE SARI in Achieve Explorer
using archiving object as IDoc. Following are the few programs that are
used for archiving and deletion of IDocs from database.