Integrationintermediate

IDoc & ALE (Application Link Enabling)

SAP's classic asynchronous document exchange format and the distributed system linking framework built around it.

IDoc/ALE is a topic that never quite goes away in SAP integration interviews, even in a cloud-and-API-first era, because an enormous amount of real-world SAP-to-SAP and SAP-to-legacy integration still runs on it, so interviewers use it to check whether a candidate has actually supported a live integration rather than only having worked with modern REST/OData interfaces.

An IDoc is like a shipping manifest with a strict, standardized form (segments) that two companies' warehouses (SAP systems) both understand, dropped into a delivery service (the port/transactional RFC) that guarantees eventual delivery even if the receiving warehouse is temporarily closed, unlike a phone call (synchronous RFC) that requires both parties on the line at the same instant.

Key Concepts

1
An IDoc (Intermediate Document) is a strictly structured, segment-based data container - a control record (identifying sender/receiver, message type, IDoc type) plus one or more data segments following a defined structure - used to exchange business documents (orders, invoices, material master changes) between systems asynchronously. ALE (Application Link Enabling) is the broader framework around IDocs that defines the distribution model (which logical systems exchange which message types, configured via the distribution model editor, transaction BD64), partner profiles (WE20, defining per-partner inbound/outbound processing parameters like which function module processes an inbound IDoc and whether processing is immediate or via background job), and the port definitions (WE21, specifying the technical transport - RFC, file, or a middleware queue - an IDoc travels through).
BD64WE20WE21
2
Outbound, a message type triggers IDoc generation (via change pointers - a mechanism that watches specific fields for changes and queues a corresponding IDoc for distribution, configured in BD50/BD61 - or direct triggering from application logic), the IDoc is passed through its port (commonly transactional RFC to a receiving SAP system) to the partner system's inbound processing, which the partner's own partner profile routes to the correct inbound function module for posting. WE02/WE05 (IDoc list/display) and BD87 (status monitoring and reprocessing of failed IDocs) are the everyday operational tools - IDoc status codes (like 51 = error, 53 = successfully posted) are the language integration support teams speak daily, and being able to read an IDoc status and its accompanying error segment/message is a very practical, frequently-tested skill.
BD50BD61WE02WE05BD87
3
A senior-level answer positions IDoc/ALE clearly in context: it remains the standard, deeply proven mechanism for SAP-to-SAP asynchronous integration and many established EDI-adjacent scenarios, while newer point-to-point or event-driven integration increasingly favors OData/REST APIs or CPI-orchestrated flows - but IDoc/ALE isn't legacy cruft to be dismissed, since it's genuinely still the right tool for high-volume, guaranteed-delivery, asynchronous document exchange, especially between SAP systems.