Cover image for What is EDI: abstract blue-to-sky gradient with the Negzel mark

Knowledge

What is EDI? SAP EDI integration and its advantages

EDI (Electronic Data Interchange) is the exchange of business documents such as orders, despatch advices and invoices between companies in standard formats, without manual data entry. On the SAP side documents usually travel as IDocs, and the middleware maps between the IDoc and the partner's document standard.

EDI (Electronic Data Interchange) is the exchange of business documents such as orders, despatch advices and invoices between two companies, in standard formats agreed in advance and without manual data entry. EDI is not a single protocol: it is the combination of a document standard and a transport route.

Document standards

The document standard defines the structure, fields and code lists of a message. The main standards in the type libraries of SAP Integration Advisor:

StandardScopeExample messages
UN/EDIFACTThe United Nations EDI standard for administration, commerce and transportORDERS (purchase order), ORDRSP (order response), DESADV (despatch advice), INVOIC (invoice), DELFOR (delivery schedule)
ASC X12The standard maintained by the Accredited Standards Committee X12 (ANSI ASC X12)850 (purchase order), 856 (ship notice), 810 (invoice)
VDAMessages defined by VDA and used in the German automotive industryVDA 4905 (delivery schedule), VDA 4913 (despatch note)
OdetteMessages defined by Odette and used in the European automotive industryNewer Odette messages are a subset of EDIFACT
EANCOMGS1's subset of UN/EDIFACT; retail, consumer products, transport and logisticsGS1 versions of EDIFACT messages such as ORDERS

Transport routes

The transport protocol determines how the document reaches the other side:

  • AS2: transfer over HTTP; the document is encrypted, signed and can be compressed. The receipt comes back as an MDN message.
  • OFTP2: Odette's file transfer protocol (RFC 5024).
  • SFTP and FTP: file-based transfer.

EDI in SAP

On the SAP side, EDI documents are usually received and sent as IDocs; the basic types ORDERS05 for purchase orders and INVOIC02 for invoices are common. The middleware handles the mapping between the IDoc and the partner's standard, and the transport. Typical flows:

  • An order from a customer (ORDERS) becomes a sales order, and an order response (ORDRSP) goes back.
  • On shipment a despatch advice (DESADV) is sent to the customer.
  • The invoice (INVOIC) goes to the customer by EDI.
  • A delivery schedule (DELFOR or VDA 4905) is sent to the supplier.
The path of an EDI document between SAP and a trading partner The SAP system usually sends and receives EDI documents as IDocs. The middleware, the B2B add-on in SAP PI/PO or SAP Integration Suite, maps between the IDoc and the partner's document standard and transmits the document. The trading partner uses a document standard agreed in advance.
MiddlewareMaps and transmits the documentMappingBetween the IDoc and the partner'sdocument standardEDI documentSAP PI/POB2B add-onAS2OFTPX.400EDI SeparatorSAP Integration SuiteIntegration AdvisorTrading Partner ManagementSAP CPIorSAP systemSAPORDERS05orderINVOIC02invoiceIDocTransport routeAS2OFTP2SFTPFTPTrading partnerA document standard agreed inadvanceUN/EDIFACTASC X12VDAOdetteEANCOMMDN · receiptWith AS2 the receipt comes back as an MDN. Source: SAP Help Portal, B2B add-on adapter configuration and SAP Integration Suite B2B documentation.SAP systemSAPORDERS05orderINVOIC02invoiceIDocMiddlewareMaps and transmits the documentMappingBetween the IDoc andthe partner's documentstandardEDI documentSAP PI/POB2B add-onAS2OFTPX.400EDI SeparatororSAP Integration SuiteIntegration AdvisorTrading Partner ManagementSAP CPITransport routeAS2OFTP2SFTPFTPMDN · receiptTrading partnerA document standard agreed inadvanceUN/EDIFACTASC X12VDAOdetteEANCOMWith AS2 the receipt comes back as an MDN. Source:SAP Help Portal, B2B add-on adapter configurationand SAP Integration Suite B2B documentation.

EDI with SAP PI/PO

In SAP PI/PO, EDI uses the B2B add-on. It contains the AS2, OFTP and X.400 adapters and the EDI Separator, which splits a bulk EDI file into individual messages. According to SAP's 2019 statement, the B2B add-on has been part of the SAP PO licence since April 2014; its maintenance also follows the SAP PI/PO 7.5 schedule. For details see our SAP PI/PO consulting page.

EDI with SAP Integration Suite

In SAP Integration Suite three capabilities work together:

We describe the SAP Integration Suite side on our SAP Integration Suite consulting page.

What EDI delivers

The benefit of EDI is concrete: orders and invoices are not typed by hand, the same data is not entered twice, and delivery of the document is recorded at protocol level (with the MDN in AS2). With a middleware layer, failed messages show up on one monitoring screen and are reprocessed there.

In our EDI projects we build integrations to the specifications of our customers' trading partners. Companies whose EDI formats we have worked with in these projects include Audi, BMW, BSH, Dana, Drylock, Ford, Litens, Mercedes-Benz, Raicam, Robert Bosch, Siemens, thyssenkrupp, Timken, Valeo and WABCO.

Frequently asked questions

What is SAP Integration Suite?

Quick access

SAP module consulting

We provide consulting across SAP modules, from finance to manufacturing and from integration to data.

Looking for the right consultant?Find an Expert SAP Consultant
Finance8
Human resources3
Logistics11
Manufacturing7
Projects and engineering2
Platform and development4
Integration2
Data and control3