The SAP ALE interface enables business process integration and asynchronous data communication between two or more SAP systems or between SAP and external systems. The data is exchanged in the form of Intermediate Documents (IDocs).
To use the ALE interface for inbound processing, you must make sure that your SAP server is properly configured (for example, you must set up a partner profile and register a program ID to listen for events).
Application systems are loosely coupled in an ALE integrated system, and the data is exchanged asynchronously.
IDocs are containers for exchanging data in a predefined (structured ASCII) format across system boundaries. The IDoc type indicates the SAP format that is to be used to transfer the data. An IDoc type can transfer several message types (the logical messages that correspond to different business processes). IDocs are used for outbound and inbound processing. The SAP adapter supports the basic and extension type of IDocs.
For example, if an application developer wants to be notified when a sales order is created on the SAP server, the developer runs the external service wizard to discover the ORDERS05 IDoc on the SAP server. The wizard then generates the business object definition for ORDERS05. The wizard also generates other artifacts such as an EIS export component and SCA interfaces. These artifacts are saved in an integration module. The application developer can then use this SAP inbound module to build the application.
IDocs are exchanged for inbound and outbound events, and IDocs can be exchanged either as individual documents or in packets.
For outbound processing, the adapter uses the IDoc business object to populate the appropriate RFC-enabled function call made to the SAP server.
The adapter uses tRFC (transactional RFC) to guarantee delivery and to ensure that each IDoc is exchanged only once with SAP. The tRFC component stores the called RFC function in the database of the SAP system along with a unique transaction identifier (TID).
The SAP transaction ID can be used for cross-referencing with a global unique ID that is created for an outbound event. The global unique ID is something you can create for managing integration scenarios.
The adapter uses qRFC (queued transactional RFC) to ensure that IDocs are delivered in sequence to a queue on the SAP server or are received in sequence from the SAP server.