Sap Idoc
Sap Idoc
➢ ALE
➢ EDI
➢ Configuration
iDoc are used in most SAP application for transfer of message (information ) from SAP to other
system or vice versa. Lot of documentation is available in iDoc they have technically different in
nature. For a functional consultant it is necessary to aware about concept of iDoc in order to
handle project/ support issues on iDocs. It is also known as Intermediate document.
Overview
iDoc is an SAP object that carries data of a business transactions from one system to another
system in the form of electronic message. The purpose of it transfer data information from SAP
to other system or vice versa. iDoc is an acronym intermediate document. The transform of data
from SAP to non-SAP system is perform via EDI (Electric Data Interchange) subsystems, ALE
(Application Link Enabling) is a mechanism for the exchange business data between loosely-
coupled T/3 application built by customers of SAP ERP program. Each Idoc number is unique to
the client. Denoted by binary system.
iDoc can be triggered in SAP system or in EDI subsystem, This depend upon direction in which
iDoc is sent and is called INBOUND or OUTBOUND iDoc accordingly.
INBOUND FLOW : EDI coverts the partner data and iDoc is created in SAP. After successful
processing of iDoc, Application Document is posted in SAP.
OUTBOUND FLOW : iDoc is triggered in SAP through message control which is then send to EDI
subsystem. EDI converts the data into XML or equivalent format and then sent data to partner
system through internet.
Information flow INBOUND
iDoc segments contain actual data that is sent to or received from a partner. These segments
Contains the actual values that are sent as part iDoc transmission.
iDoc sent outside the system are termed as Outbound iDocs and the ones are received into the
system, are called Inbound iDocs.
iDoc Direction :
This signifies the direction is which information is sent and is similar to terminology used in
mails. If information is sent outside the system then the direction is outbox when it is received
into the system then direction is inbox. In SAP Outbox direction is represent by “1” there fore
Outbox and Inbox direction is represented by “2”.
Partner :
Partner is the Business partner with which the exchange of information is to takes place using
iDoc. It can be vendor or customer or any other system, Depending on the direction of
information in which the information is sent it plays a role of either a “sending partner” or a
“receiving partner”.
Partner Type :
KU Customer
LI Vendor
LS Logical System
Message Type :
iDoc processing involves transmission or receipt document in the form of message, each of
which represents a document in SAP. These documents can be Order, Shipment Confirmation,
Advance Shipping Notification, Goods Receipt, or Invoice. Message type is associated with
Basic iDoc type (Basic Type) and defines the kind data or document that is exchanged with the
partner.
Process Code :
The process code contains the details of the function Module that are used for iDoc processing.
Message type can be linked to the process code.
Port :
iDoc Port contains the information about the way data is sent between the source or target
system. The type of port defines the information contained within the port. For port type “File” ,
directory or file name information is maintained. “tRFC “ port contains information about the
RFC destination of the target system. For iDoc transmission using ALE “tRFC” ports are used.
Message Type :
iDoc processing involves transmission or receipt document in the form of message, each of
which represents a document in SAP. These documents can be Order, Shipment Confirmation,
Advance Shipping Notification, Goods Receipt, or Invoice. Message type is associated with
Basic iDoc type (Basic Type) and defines the kind data or document that is exchanged with the
partner.
Process Code :
The process code contains the details of the function Module that are used for iDoc processing.
Message type can be linked to the process code.
Port :
iDoc Port contains the information about the way data is sent between the source or target
system. The type of port defines the information contained within the port. For port type “File” ,
directory or file name information is maintained. “tRFC “ port contains information about the
RFC destination of the target system. For iDoc transmission using ALE “tRFC” ports are used.
Partner Profile (WE20)
This contains application for which iDoc will be created for example EF for purchase order, the
message type of the application that will trigger the iDoc and process code that will convert SAP
document to an iDoc. For example if a Purchase Schedule agreement is to be sent to the vendor
1000 then in the outbound option of the partner 1000 we need to maintain the message type
DELINS and link it to process code ME14. When message type DELINS is triggered the PO then
iDoc will be created for the partner vendor 1000.
Inbound Option (Inbound Parameters)
Telephony (Inbound/Outbound
Parameters)
We can also maintain the contact
details in Telephony Option.
▪ Control Records
▪ Data Records
▪ Status Records
Manual Processing :
On the basis of Idocs statuses different programs can be used for reprocessing of failed Idocs.
If an Idocs contains error in the data then such Idocs can be edited using T-code : WE02 or
WE05. When and Idoc is edited the original Idoc information (backup) is saved in a New Idoc
under status 70 (for Inbound)/ 33 (For Outbound), These Idoc stays in the system for reference
only and cannot be processed. The status of the edited Idoc become 69 (Inbound) and 32
(Outbound). These Idocs can be processed using BD87 transaction or batch jobs. Can be done
Debugging of Idocs can be done using by copying the Idocs using T-Code WE19. WE19 is a test
tool for Idoc processing. W19 copies the existing idoc and creates new Idoc which can then be
modified as per testing needs. The newly generated Idoc can also processed using BD87.
Report RC1_IDOC_SET_STATUS can be used to change the status of Idoc. Status change s are
generally needed to move an Idoc to status 68 – no further processing.
Idoc can be displayed in system via T-code: WE02 and WE05. If Idoc number is not known then
search can be made on the bases of Idoc date, Direction, BASIC TYPE, MESSAGE TYPE, and
PARTNER NUMBER. Partner number can be found in the Output message of the documents.
Idoc search can also be made on the bases of ISA or Transfer file
T-Code : WE09 If we are looking for specific information within the Idocs segments then this
can be found. This is useful if you are searching for a particular information in similar kind of
Idoc within Idoc segments. For example if you want to search a particular purchase order
number for example 100000001 in multiple Idocs which lies in segments E1EDK01 of an Idoc
under field BELNR. Then the search can be extended in the following manner.
The Idoc failure may not be related to any of the above mentioned reasons, the best way to
fiend 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 describes below.
Idoc documentation can be found using T-Code WE60 and can be helpful to obtain information
of the Idoc Type or its particular segment. It also provides information such as mandatory and
optional segments, minimum and maximum number of segments etc.
The following list gives the Basic Type and Message Type combination for common Idocs.
As Idocs grow older they are archived and deleted from the database. Archive Idocs can be
viewed using T-Code SARI in Achieve Explorer using archiving object as Idoc. Following are the
few program that are used for archiving and deletion of Idoc from database.
We should always try to reuse Idocs Message Types
provided with standard SAP content, there could be
scenarios where you need to create completely new
Message Type and iDoc type with in your own custom
processing logic.
• A Client having operations in multiple countries and wants a central location where the data is
stored.
• If a customer is using SAP then we need the data transfer from his system to our system.
for example if a customer send us the Purchase Order to us through Idoc, then we can use that
and create a Sales Order .
SAP is an integration of many third party system and also SAP systems. It means ECC R/3
system can be communicate with GTS server or TM server.
Advantages of ALE :
Idoc is an Intermediate document which contain the data. It is a data container which carry the
data from one source system to the target system.
• That might be from SAP system to Non-SAP system.
• Each Idocs having a unique number with this number we can track whether this Idoc
successfully sent or not.
iDoc
SAP Non-SOP
Idoc Structure : Its contains three type of records
▪ Data Record : Whether it is Inbound or Outbound, the fields in which data record
▪ Status Record : tells about it is successful or not and where it is got save.
Standard message types from which data is sent from one system to another system:
T- Code : BD87 – to reprocess the data with the same Idoc no.
T- Code : WE19 – to reprocess the data with different Idoc no.
S.N0 Job Sender System Receiver System
1 Prerequisite The pass word and the ID should The pass word and the ID
be able to access for both the should be able to access for
client with in the IDES System. both the client with in the IDES
System.
2 Client 800 810
5 Maintain RFC Then create a RFC destination in Then create a RFC destination
destination sender system create the RFC in sender system create the
T-Code: SM59 for the Receiver Logical System RFC for the Receiver Logical
Execute RRL 810, all the basic System RLS 800, all the basic
connection need to setup connection need to setup
Job 1,
Job 1 to 5 is done by Bases Consultant
S.N0 Job Sender System Receiver System