Академический Документы
Профессиональный Документы
Культура Документы
IDocs are text encoded documents with a rigid structure that are used to exchange
data between R/3 and a foreign system.Therefore an IDoc data exchange is always an
asynchronous process.
The signi cant difference between simple RFC-calls and IDoc data exchange is the
fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be
reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are
typical use cases for IDocs.
R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system.
The difference between EDI and ALE can be de ned ,If we send data to an external
partner, we generally using EDI, while ALE is a mechanism to reliable replicate data
between trusting systems to store a redundant copy of the IDoc data.
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 1/10
12/1/2017 IDOC in SAP ABAP
ALE is used to support distributed yet integrated processes across several SAP
systems whereas EDI is used for the exchange of business documents between the
systems of business partners ALE is SAP's technology for supporting a distributed
environment whereas EDI is a process used for exchange of business documents
which now have been given a standard format Both ALE and EDI require data
exchange.
In simple words , an idoc is like a data le with a speci ed format which is exchanged
between 2 systems which know how to interpret that data.
IDOC stands for " Intermediate Document" When we execute an outbound ALE or EDI
Process, an IDOC is created.
IDOCs are based on EDI standards, ANSI ASC X12 and EDIFACT. In case of any con ict
in data size, it adopts one with greater length.
EDI (Electronic Document interchange) - EDI is the electronic exchange of business
documents between the computer systems of business partners, using a standard
format over a communication network.
EDI is also called paperless exchange.
Idoc Advantages:
Outbound Process:
SAP
5.Edi ABAP
document AND WEBDYNPRO
is transmitted TUTORIALS
to the business partner SUBSCRIBE
6.The Edi Subsystem report status to SAP
Inbound Process:
IDOC:
IDOC is a container that can be used to exchange data between any two processes.
Each IDOC is assigned a unique number for tracking and future reference.
PORT:
Port is used in the outbound process to determine the name of the EDI subsystem
program, the directory path where the IDOC le will be created at the operating system
level, the IDOC le names and the RFC destinations.
RFC Destination:
Used to de ne the characteristics of communication links to a remote system on
which a functions needs to be executed.
Message Control
Used in pricing, account determination, material determination, and output
determination. The message control component enables you to encapsulate business
rules with out having to write ABAP programs.
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 3/10
12/1/2017 IDOC in SAP ABAP
Transaction code: WE 30
Steps of De ning Segment
Creating Segment : Tcode - WE31
Creating Message Type : Tcode - we81
Assigning Message type to Idoc type: Tcode - we82
Process
The two processes for IDoc are Outbound Process and Inbound Process.
Outbound Process
When the data is sent out from the system, the process is called Outbound Process
and the IDoc is known as Outbound IDoc.
Inbound Process
When the data is coming in, the process is called Inbound Process and the IDoc is
known as Inbound IDoc.
SAPHost
Target ABAP
: AND WEBDYNPRO
sappdc.hcl.com TUTORIALS SUBSCRIBE
System No : 01
Client : 220
User : Login user name
Password :
Save this & Test it and Remote Login
M t id t l d
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 5/10
12/1/2017 IDOC in SAP ABAP
Master idoc control record
SAP ABAP =AND
wamas_con-rcvprt 'LS'. WEBDYNPRO TUTORIALS SUBSCRIBE
wamas_con-rcvprn = e_rcvprn.
wamas_con-idoctp = 'ZIDOC'.
wamas_con-mestyp = e_msgtyp.
APPEND ittble_data.
ENDLOOP.
Tcode - we05
ALE/IDOC Status Codes (outbound):
01= IDoc Added
30 = IDoc ready for dispatch
29 =Error in ALE service Layer
12 =Dispatch ok
03 = Data passed to port ok.
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 6/10
12/1/2017 IDOC in SAP ABAP
Basic type:
Message type:
Direction: 2 (inbound)
2) Creating Inbound process code - we42
3) Verifying Idoc List Tcode - we05
4) ALE/IDOC Status Codes (Inbound):
50 = IDoc Added
51= Application Document not posted
64 =IDoc ready to be transferred to application
62 =IDoc passed to application
53 = Application Document posted
From this lesson ,we have learnt what is an idoc? and its de nition and how to create
an idoc and how to check it and how to create program for an idoc?.
Read also
IDOC Status Codes
ALE IDOC Program to send an IDOC
ALE/IDOCs Interview Questions
RELATED POSTS:
How To Disable SAP ABAP Full Form How To Check RFC How To Write A
Icons In SAP ALV Connection Using Program In SAP
Too... F... ABAP
No comments yet
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 7/10
12/1/2017 IDOC in SAP ABAP
SAP ABAP ALV Reports Interview Questions and Answers for Experienced Here, i am
sharing very import real time oriented questions which are faced at several interviews
on ALV Reports to help for freshers and experienced SAP ABAP consultants with …
KEEP READING
Sample ABAP Programming Examples for Practice Are you beginner to ABAP
Language ,you're looking for example programs for practice .Here i collected some
sample programs from various objects in ABAP useful for beginners to improve …
KEEP READING
What is smartform? Smart Forms are printing forms used to print Invoice and …
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 8/10
12/1/2017 IDOC in SAP ABAP
at s s a t o ?S a t o sa ep t g o s used to p t o ce a d
SAP ABAP Data Dictionary Real Time Interview Questions and Answers
These interview Questions from the SAP ABAP Data Dictionary are faced at the
different companies in the several interviews which are useful for real time …
KEEP READING
KEEP READING
Like on Facebook
Liked Share
Powered by Blogger
Labels
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 9/10
12/1/2017 IDOC in SAP ABAP
Monthly Updates
SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE
Report Abuse
Donate to Me
Donate with PayPal
Privacy Policy
http://www.sapabapwebdynprotutorials.com/2017/03/idoc-in-sap-abap.html 10/10