Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 1 of 5

Why EDI still runs supply chains

9 min

Listen to this lesson

0:00 / 9:41

Every Monday morning, Great Lakes Fleet Services, Contoso Motor Co.'s largest fleet customer, sends a batch of purchase orders for alternators. Nobody at Great Lakes types those orders into a Contoso web shop and nobody at Contoso keys them into SAP. Great Lakes' purchasing system writes each order as an ANSI X12 850 file, the file travels to Contoso, and a few minutes later a sales order exists in SAP S/4HANA. That is electronic data interchange (EDI): the exchange of business documents between two companies' computers in a standard, structured format, with no human re-keying in between.

EDI is older than the web. It grew out of transport and retail in the 1970s and 1980s, and the two standards still in daily use date from that era: ANSI ASC X12 (developed by the Accredited Standards Committee X12 and usually just called X12) and UN/EDIFACT (United Nations rules for Electronic Data Interchange for Administration, Commerce and Transport). New projects often ask why a 40-year-old format has not been replaced by APIs. The honest answer is that EDI solves a different problem.

What EDI is good at

  • Contract-grade documents. An 850 is a purchase order in the legal and commercial sense. Trading partner agreements say which transaction sets each side sends, how fast they must be acknowledged and what happens when they are wrong.
  • Many-to-many standardization. A supplier that sells to 40 retailers can send the same 856 ship notice structure to all of them, with small partner-specific rules, instead of integrating with 40 different APIs.
  • Batch and asynchronous by design. An order does not need an immediate answer. Files can queue at a network provider overnight and still arrive intact.
  • Proof of exchange. Envelopes carry control numbers, and acknowledgments (997, CONTRL, AS2 receipts) give both sides an audit trail of what was sent and received.
  • Chargebacks enforce quality. Large retailers and automotive OEMs fine suppliers for late or wrong ship notices. That money keeps EDI data accurate in a way voluntary integrations rarely are.
QuestionEDI (X12 / EDIFACT)Partner API (REST / OData)
Who defines the format?Standards bodies plus a partner implementation guideEach API owner
TimingAsynchronous, often batchedUsually synchronous request and response
Typical documentsOrders, acknowledgments, ship notices, invoices, forecastsLookups, status, small transactions
Proof of deliveryControl numbers, functional acknowledgments, transport receiptsHTTP status codes and logs
Onboarding a new partnerMapping to their guide, testing, certificationCredentials and API client code
EDI and APIs coexist: EDI carries contract documents between companies, while APIs serve lookups and system calls.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-101

APIs are growing, and SAP's own B2B direction (Trading Partner Management and Integration Advisor in SAP Integration Suite) supports both. But in automotive, retail, distribution and transport, the X12 850, 856 and 810 and their EDIFACT twins remain the baseline that a supplier must support to do business. Job postings for SAP EDI analysts still list them by number.

Where SAP fits

SAP S/4HANA does not read or write X12 or EDIFACT itself. SAP's own documentation for the sales EDI component says it plainly: SAP does not provide EDI converters. Inside SAP, business documents travel as IDocs (intermediate documents). A translator outside SAP, which the industry calls the EDI subsystem or middleware, converts between the partner's X12 or EDIFACT file and the IDoc.

At Contoso, Process Orchestration translates between Great Lakes' X12 files and the IDocs that SAP S/4HANA reads and writes.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-101

At Contoso, that translator is SAP Process Orchestration 7.5, the same PO landscape (XD1, XQ1, XP1) that runs about 60 of its interfaces. Theo, the integration lead, keeps the EDI flows on PO through go-live and hypercare; they move to SAP Integration Suite only after hypercare. So the course examples follow one real chain: Great Lakes' 850 arrives over AS2 at PO, PO validates and translates it, and PO hands an ORDERS IDoc to SAP S/4HANA, which creates sales order 1000457. On the way back, SAP produces order confirmation, ship notice and invoice IDocs, and PO turns them into an 855, an 856 and an 810.

What EDI is not

Three misunderstandings cost projects time. EDI is not email with attachments: a PDF purchase order needs a person to read it, while an 850 is processed by software on both sides. EDI is not a product you buy from SAP: it is a set of standards plus the translator, transport and partner agreements around them. And EDI is not "done" once the map works: partners change their guides, add locations, renew certificates and change versions, so every EDI relationship needs an owner after go-live. At Contoso that owner is Theo's integration team for the technical side and Maria's order-to-cash team for the business side, with a shared list of partner contacts.

Who cares about EDI on a project

EDI touches more roles than the integration team. Sales users like Maria, Contoso's order-to-cash key user, live with the result: an order that arrives wrong is her problem, not the translator's. Testers must prove the whole chain, including the acknowledgments. Finance cares about 810 invoices because the customer's accounts payable system may reject them. Cutover managers care because EDI partners must be switched over on the go-live weekend, and the partner's team needs to know exactly when.

What would you do?

In a steering meeting, a sponsor asks Theo whether Contoso could drop EDI with Great Lakes and ask them to call an SAP API instead, since S/4HANA has modern APIs. What is the best answer?

Key points
  • EDI is the computer-to-computer exchange of business documents in a standard format, without re-keying.
  • ANSI X12 and UN/EDIFACT are the two main standards; both are decades old and still dominant in supply chains.
  • SAP S/4HANA speaks IDocs, not X12 or EDIFACT; middleware such as SAP Process Orchestration translates.
  • Contoso exchanges 850, 855, 856, 810 and 997 with Great Lakes Fleet Services through PO 7.5 until after hypercare.

Check your understanding · not graded

Lesson check

  1. 1. Which component converts a partner's X12 850 file into the IDoc that SAP S/4HANA processes?

  2. 2. What is the main reason EDI remains in use alongside modern APIs?

  3. 3. Until when do Contoso's EDI flows with Great Lakes Fleet Services run on SAP Process Orchestration 7.5?