4 minute read

Difference Between IDocs, ALE, RFC and EDI in a SAP ERP system

Various terms and concepts will crop up when data is exchanged with a SAP ERP system, whether communication is handled via in-house or external systems. This article discusses the relationship between IDocs, ALE, RFC and EDI in a SAP ERP system and points out which concepts to use and where.

IDoc – intermediate document

IDocs is the standard exchange format used for importing/exporting data into/from SAP systems. Business data such as master data, invoices, delivery notes etc. may be exchanged with external systems via IDoc interfaces. These external systems may be within your own company or data may be exchanged with systems belonging to other companies.

An IDoc interface has a defined data structure and IDoc processing logic.

The SAP term for data exchange with other in-house systems is ALE (or Application Link Enabling). The term EAI stands for Enterprise Application Integration and is also commonly used in non-SAP environments. ALE communication may be synchronous or asynchronous.

Data exchange to other companies is referred to as Electronic Data Interchange, or EDI. EDI communication is message-based and thus always asynchronous.

The figure below shows an example of a scenario with ALE and EDI.

Difference between ALE and EDI
Difference between ALE and EDI

Customers and suppliers are linked to the SAP system via EDI. In-house third-party software such as CRM (Customer Relationship Management), HR (Human Resources) and PDM (Product Data Management) will be linked via ALE.

White Paper - EDI Integration in SAP

Within the ALE framework, business processes take place across different in-house IT systems. The systems are physically separate, and communication takes place between different Logical Systems (LS).

A logical system is comprised of specific software such as CRM systems. In SAP, a logical system is assigned to a client and has an own system name. Logical systems may be defined in SAP using Transaction BD54, as shown in the figure below.

Logical systems in Transaction BD54
Logical systems in Transaction BD54

© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

Specific clients are assigned to a logical system via Transaction SCC4.

A distribution model must be set up to define which IDocs to exchange using which logical system. A distribution model may be defined using Transaction BD64.

ALE is based on RFC (Remote Function Call) for communication.

RFC – Remote Function Call

RFC is another commonly seen EDI acronym and stands for Remote Function Call. RFC a process used to call up a function (also referred to as function module in SAP) in a remote system. Business logics may thus be called up in a third-party system.

In the SAP environment RFC is effectively synonymous with Remote Procedure Call (RPC), but it is also used as an umbrella term for SAP interfaces and protocols used for the implementation of function calls.

A DESTINATION parameter is given when calling up a remote function module in ABAP. The following is an example of a call-up of the STORE_NEW_CUSTOMER function in the CRM4711 system.

      customer = cust
      crm_customer_id = id
      customer_exists = 1

A customer object is passed to this method, to store in the CRM system. The CRM system customer ID number is returned to, for instance, store with the master debtor data in the SAP system.

SAP distinguishes between four different types of RFCs:

  • Synchronous (sRFC)
  • Asynchronous (aRFC)
  • Tranactional (tRFC)
  • Queued (qRFC)

EDI – Electronic Data Interchange

Data exchange with other companies is referred to as EDI (Electronic Data Interchange). Instead of the direct exchange of IDocs, data will first be converted to a uniform exchange format, the so-called EDI format. Well known EDI formats include, for instance, UN/EDIFACT, ANSI ASC X12, VDA etc. and the corresponding derivatives and sub-standards.

An EDI converter is used for conversion between IDocs and the EDI format.

SAP systems do not use logical systems for electronic data exchange, but they define partners. These partners may, for instance, be customers or suppliers. The settings for specific partners are also called partner agreements and configured in Transaction WE60.

Any questions about SAP, IDocs, ALE, RFC or EDI?

Do you have any questions about SAP ERP, SAP SD and the associated EDI processes? Please contact us or check out our chat – we look forward to assisting you!

Alternatively, please see our resources section to check out some of our many helpful webinars, infographics and white papers!

SAP ERP and SAP S/4HANA are the trademarks or registered trademarks of SAP SE or its affiliates in Germany and in several other countries. 

most read

Keep on reading

2 minute read

How to End Another User's SAP Session

Unable to edit a crucial document in SAP® because you're locked out? Learning how to end another user's SAP session will solve this issue.

3 minute read

Finding Translations for SAP® Terminology

Using the correct translations for SAP® terminology is important in international projects. Discover how to find these quickly.

2 minute read

How to Save an IDoc Parser Report to a Local File

In this short and simple guide we show you how to save an IDoc parser report to a local file in just a couple of easy steps.

6 minute read

How to Debug SAP Message ME161 - "The Notified Quantity Exceeds the Ordered Quantity"

Don't know how to fix SAP error message ME161 "The notified quantity exceeds the ordered quantity"? In this article we break it down.

3 minute read

ecosio to Host SAP/EDI Workshop at UKISUG Connect 2021

ecosio is exhibiting and running an SAP/EDI workshop at this year's UKISUG Connect conference. Find out what attendees can enjoy at the event.

6 minute read

SAP® EDI Project Roles - A Breakdown

Learn the various EDI project roles involved in achieving successful EDI integration in SAP systems and how the different roles interact.

10 minute read

Alternative Solutions for EDI Data Exchange with SAP PI

Many companies use SAP PI to enable data exchange between a given SAP ERP system and its connecting systems. Discover the options available.

6 minute read

How do I Implement EDI with SAP Integration Suite®?

EDI with SAP Integration Suite®: take over internally yourself or hire a fully managed EDI service provider? In this article we explore the positives and negatives of these approaches.

3 minute read

How to create an SAP transaction code

Want to know how to create an SAP transaction code for an existing ABAP program so that you can easily call the program?

9 minute read

Alternative Solutions for EDI Data Exchange with SAP PI and SAP PO

Discover the three possibilities when it comes to implementation of electronic data interchange (EDI) in SAP Process Integration or SAP Process Orchestration (SAP PI/PO).

6 minute read

How to Set Up and Manage Automatic SAP Jobs

SAP jobs can be used to automate processes in SAP ERP so they can be carried out without user intervention. We explore the key features.

4 minute read

IDoc Status Change in SAP ERP

IDoc statuses are not always the clearest - particularly when errors occur. In this article we explain how to change IDoc status as required.

We use cookies to provide an optimal website experience. You decide which one you want to allow. Depending on the setting, however, not all functionalities may be available to you. Data protection & imprint.