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

Lesson 1 of 6

From 850 to ORDERS05

7 min

Listen to this lesson

0:00 / 13:28

Every Monday, Great Lakes Fleet Services sends Contoso Motor Co. a batch of X12 850 purchase orders over AS2. SAP Process Orchestration 7.5 on XP1 validates each interchange, returns a 997, translates each 850 into an ORDERS IDoc with basic type ORDERS05, and hands it to SAP S/4HANA CMP, where process code ORDE creates a sales order. This course follows one of those orders, GLF-PO-55120 for 50 alternators, all the way to sales order 1000457, and shows every place where it can go wrong.

Start with the structure. SAP's documentation lists ORDERS01 to ORDERS05 as the IDoc types for inbound sales orders, with ORDERS05 adding segments such as E1EDK17 (terms of delivery) and E1EDP19 (item object identification) to the earlier versions. The segments are shared across purchasing and sales, which is why their names say "document" rather than "sales order".

E1EDK01 header generalCurrency, document type hints, the purchase order number in some maps; one per IDoc
E1EDK14 organizational dataQualifier + value: 008 sales organization, 007 distribution channel, 006 division, 012 order type
E1EDK03 datesQualifier + date: 002 requested delivery date
E1EDKA1 partnersPartner function + number: AG sold-to, WE ship-to, LF supplier (Contoso as seen by the customer)
E1EDK02 referencesQualifier + number and date: 001 customer purchase order number and PO date
E1EDP01 itemsItem number, quantity, unit; children E1EDP19 (material), E1EDP20 (schedule lines), E1EDP05 (conditions)
E1EDS01 summaryTotals such as number of items, for control
The ORDERS05 segments that matter for an inbound sales order, from header to summary.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-203

Above the data records sits the control record. For Great Lakes' orders, PO fills it with direction 2 (inbound), message type ORDERS, basic type ORDERS05, the sender partner type KU and number 17100001, and Contoso's own logical system CMPCLNT100 as the receiver. The sender fields are what the partner profile lookup uses; nothing in the data records can rescue an IDoc whose control record names the wrong partner. That is why the first check on any odd inbound order is the control record, and the second is the data.

Qualifiers carry the meaning

ORDERS05 reuses generic segments and qualifies them, exactly like X12 does. E1EDK14 with qualifier 008 carries a sales organization, while the same segment with 012 carries an order type. SAP's segment documentation for inbound processing lists 006 division, 007 distribution channel, 008 sales organization, 010 sales group, 012 order type and 016 sales office among the qualifiers the inbound program reads. E1EDP19 identifies the material: qualifier 001 is the customer's material number and 002 the supplier's, as SAP's mapping tables state. A map that writes the customer's part number with qualifier 002 makes SAP look for a material called GLF-ALT-100 in its own material master, which fails.

Great Lakes' 850 mapped

X12 850 (Great Lakes guide)ORDERS05 segment and qualifierExample value
BEG03 purchase order numberE1EDK02 qualifier 001GLF-PO-55120
BEG05 purchase order dateE1EDK02 qualifier 001, field DATUM20261014
DTM*002 delivery requestedE1EDK03 qualifier 00220261021
N1*BY buying partyE1EDKA1 partner function AGCustomer 17100001 (Contoso's number for Great Lakes)
N1*ST with qualifier 92 location codeE1EDKA1 partner function WEGR04, converted to ship-to 17100006 in SAP
Contoso's supplier number at Great Lakes (from the guide)E1EDKA1 partner function LF400817
PO1 quantity, unitE1EDP0150, ISO unit for each
PO1 BP part numberE1EDP19 qualifier 001GLF-ALT-100
PO1 unit priceCustomer expected price (condition EDI1)240.00 USD

How Contoso's map places Great Lakes' 850 data into ORDERS05.

Each part of the 850 lands in one ORDERS05 segment, and the qualifier says what it means.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-203

The EDIFACT twin

If a European distributor sent an EDIFACT ORDERS message instead, the same targets apply with different sources: BGM provides the order number for E1EDK02, DTM+2 the requested delivery date for E1EDK03 002, NAD+BY and NAD+DP the sold-to and delivery party for E1EDKA1 AG and WE, and each LIN group with QTY+21 and PRI one E1EDP01 with its children. That is the point of the IDoc layer: SAP sees one structure, whatever standard the partner speaks, and the middleware owns the differences.

Business dataX12 850EDIFACT ORDERS (D.96A)ORDERS05
Order numberBEG03BGM, document numberE1EDK02 qualifier 001
Requested delivery dateDTM*002DTM+2E1EDK03 qualifier 002
Sold-to / buyerN1*BYNAD+BYE1EDKA1 AG
Ship-to / delivery partyN1*STNAD+DPE1EDKA1 WE
Item quantityPO1-02QTY+21E1EDP01
Buyer's part numberPO1 with BPLIN or PIA with buyer's item typeE1EDP19 qualifier 001
The same order data in X12, EDIFACT and the ORDERS05 IDoc that SAP reads.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-203
Key points
  • Inbound orders arrive as message type ORDERS with basic type ORDERS05 and are posted by process code ORDE.
  • Header segments: E1EDK01, E1EDK14 (org data), E1EDK03 (dates), E1EDKA1 (partners), E1EDK02 (references).
  • Item segments: E1EDP01 with E1EDP19 (material: 001 customer, 002 supplier), E1EDP20 (schedules), E1EDP05 (conditions).
  • X12 and EDIFACT map to the same ORDERS05 targets; the middleware owns the differences.

Check your understanding · not graded

Lesson check

  1. 1. Which ORDERS05 segment and qualifier carry the customer's purchase order number?

  2. 2. In E1EDK14, what does qualifier 008 carry?

  3. 3. A map writes Great Lakes' part number GLF-ALT-100 into E1EDP19 with qualifier 002. What happens?