ALE Idoc - Abap Development
ALE Idoc - Abap Development
ALE Idoc - Abap Development
Community WIKI SAP Community Welcome, Guest Login Register Search the Community
ABAP Development / Data Transfers - BAPI, BDC, ALE, LSMW, DX-WB / ALE and IDocs
ALE,IDOC
Created by Former Member, last modified by Abdul Hakim on Dec 31, 2008
ALE Technology : Application Link Enabling (ALE) is a technology to create and run distributed applications. ALE Technology is proprietary of SAP.
ALE Objectives - ALE incorporates controlled exchange of data messages ensuring data consistency across loosely coupled applications. ALE comprises of three layers. Application Services Distribution
Services and Communication Services .Basic principle of ALE is to provide a distributed and fully integrated R/3 system. Each application is self-sufficient. The use of self-sufficient system implies a
certain measure of data redundancy.Hence data has to be both distributed and synchronized.
Difference Between ALE and EDI :Normally we refer to EDI technology when a non SAP system is one of the communication channel. ALE communication occurs from the SAP side and EDI from the
non-SAP side. IDOCs uses ALE and EDI to deliver the data to the receiving system. If the data needs to be exchanged between two SAP systems, then IDOC uses ALE technology . For the exchange of
data between a SAP and Non SAP system, IDOC uses EDI subsystem to convert and deliver the data.
1. What is the difference Between IDOC type and Message type? How to link the IDOC type with Message type?
Message type gives the meaning of the IDOC . IDOC type gives the structure of an IDOC.The messages exchanged between systems are of various message types. The message type depends on the
data contained and the process involved. It determines the technical structure of the message and the IDOC type.The IDoc type indicates the SAP format that is to be used to interpret the data of a
business transaction.
In the OO(Object Oriented) approach, Message Type can be refferred to a Class and IDOC Type as an instance of the class Message Type
The linkage will happen in transaction WE82.
Table Description
Process code refers to an workflow or a function module which helps in reading or writing data from/to Idoc. Process Codes are used in both ALE and EDI framework to identify the function module or API
(Application Programming Interface) to be invoked for subsequent processing. Inbound as well as outbound interfaces use process code but for different purposes. Outbound process codes are stored in
table TEDE1, while inbound process codes are stored in TEDE2.
Outbound Process Code This will read application data and place data in Idoc
Inbound Process Code This will Idoc and create corresponding application data
System Process Code This will create work item in case some error occurs in idoc / application document processing
Status Proces Code This will handle error that occurs when a idoc is sent to some other system
https://wiki.scn.sap.com/wiki/display/ABAP/ALE,IDOC 1/3
8/7/2018 ALE,IDOC - ABAP Development - SCN Wiki
RBDMANI2 : Reprocess Idocs manually
RBDMANIN : Posting of IDocs with Status 51
RBDMOIND : Outbound Idocs status 03->12
RSEOUT00 : For Processing 30 Status IDocs
RBDAPP01 : For Processing 64 Status IDocs
RBDAGAIN : Reprocess Incorrect Outbound IDocs
RBDAGAI2 : Reprocessing of IDocs after ALE Input Error
5. How to trace the IDocs of the Receiving system from the Sending system?
Steps:
Steps:
Steps :
E.g.: If ERP_100 is the logical system of the R/3 then create ERD_100 as the dummy system.
Create Port for the Original System, (ERP_100)
Goto WE21 and select Transactional Port and press the Create button. Name the Port as "SAP" contatenated with the SYSID in our example it would be SAPERP Select the appropriate version and
enter the RFC dest of the system that you are working on in this case it will be 'ERP'.
Create Partner Profile in partner type LS:
Receiver Side ( Outbound to ) : In Partner type LS name ERD_100create the Outbound Parameters, give the Message type, Receiver Port same as the port we created in step 2. Enter the Basic
type.
Sender Side ( Inbound From ): In partner type LS name ERP_100 create the Inbound Parameters, give the appropriate message type and the process code.
Now create the stand alone program to send the IDoc:
The program will at some point calls the MASTER_IDOC_DISTRIBUTE function module. When you pass the EDIDC structure it will be populated as follows:
i_edidc-mestyp = message type.
i_edidc-idoctp = basic type.
i_edidc-rcvprt = 'LS'.
Concatenate 'SAP' sy-sysid into l_port.
i_edidc-RCVPOR = l_port.
i_edidc-rcvprn = 'ERD_000'.
CONCATENATE sy-sysid '_' sy-mandt
INTO l_sndprn.
i_edidc-SNDPRN = l_sndprn.
i_edidc-sndprt = 'LS'.
i_edidc-sndpor = l_port.
Observe that the Sender port and the receiver port is the same, this does the trick. The outbound Idoc is sent on the port SAPERP with the Sender as ERP_100 and receiver as ERD_100 and then the
Inbound Idoc is also sent to the same port SAPERP with the Sender as ERP_100 and receiver as ERD_100.
Message control is a mechanism by which documents are output based on a selection criteria and requirements. This concept is applicable not only to EDI and ALE, but also to other output mediums (for
example: print, fax). Message control determines the type of document, its timing, number, and the medium. NAST table stores output records. The conditions (selection criteria and requirements) for
creating an output message are stored in condition tables. Search mechanisms are used through access sequences, output processes, and requirements to determine whether an application document
qualifies for output.
You can reprocess the failed trfc entries using the program RSARFCEX.
10. What is the transaction used to find the outbound and inbound process codes at one place?
https://wiki.scn.sap.com/wiki/display/ABAP/ALE,IDOC 2/3
8/7/2018 ALE,IDOC - ABAP Development - SCN Wiki
WE64
idoc
16 Child Pages
7 Steps For ALE Configuration
Administration of ALE Functions and Troubleshooting ALE
ALE- DDIC tables that are reflected with respect to Partner Profiles
Change Pointers
Creating an ABAP program from a BDC recording
Customer Master Record (Tax Groupings) in Customer ALE
EDI 997 - Functional acknowledgement
Handling Idoc Acknowledgements
Idocs
IDOC Steps
Interface Development using IDOC's
Managing Data in different Formats with IDOC
Message Control for ALE
Modify IDOC Status by Program
Outbound Idoc Through ALE
TO BE DELETED
2 Comments
Former Member
good article
Former Member
Great article. Short and precise.
https://wiki.scn.sap.com/wiki/display/ABAP/ALE,IDOC 3/3