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

Lesson 6 of 6

Testing and signing off inbound orders

15 min

Listen to this lesson

0:00 / 11:46

An inbound order flow is proven when real partner files create the right sales orders, and wrong files fail in the right way. Priya's team built Contoso's inbound test pack for Great Lakes in CMQ with three principles: use the partner's own sample files, compare field by field, and test the failures as carefully as the successes.

Use real samples

Great Lakes provided twelve sample 850s from its test system: single and multi-line orders, both depots, a heavy-duty alternator, an order with a future delivery date and one with a price that deliberately did not match. Each file went through the real path: AS2 into PO on XQ1, translation, IDoc into CMQ client 100. Test files typed by hand prove the map's happy path; partner files prove what the partner actually sends, including the qualifiers and padding nobody wrote into the guide.

Compare field by field

FieldSource in the 850Where to read it in SAPExpected for GLF-PO-55120
Customer referenceBEG03Order header, customer referenceGLF-PO-55120
Sold-toN1*BYOrder header, sold-to17100001
Ship-toN1*ST GR04Order header partners, ship-to17100006
Sales area and typeContoso's supplier number via EDSDCOrder header1710 / 10 / 00, OR
MaterialPO1 BP GLF-ALT-100Item material and customer materialCMC-ALT-100 / GLF-ALT-100
Quantity and unitPO1-02, PO1-03Item quantity50 PC
Expected pricePO1-04Item conditions, EDI1 vs net price240.00 = 240.00, order complete
Requested delivery dateDTM*002Header requested delivery date2026-10-21

The field-by-field comparison for one inbound order; every row is evidence.

Comparing in two steps, file to IDoc and IDoc to order, shows whether a defect is in the map or in SAP.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-203
  1. Week 1Samples receivedTwelve Great Lakes sample 850s and the signed partner spec; EDPAR, EDSDC and KNMT entries loaded in CMQ
  2. Week 2Positive runAll samples through AS2, PO on XQ1 and CMQ; field-by-field comparisons completed
  3. Week 3Negative runUnknown part, unknown ship-to, duplicate PO, price mismatch and unknown sender tests
  4. Week 4Partner confirmationGreat Lakes confirms the 855s it received; defects retested; evidence reviewed
  5. CutoverProduction checkConversion data verified in CMP before the first Monday batch
Contoso's inbound order test pack for Great Lakes ran over four weeks of integration testing plus a production data check.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-203

Test the failures

Negative testHowExpected result
Unknown part numberSample 850 with a part not in KNMTStatus 51 "material not determined", work item at the O2C EDI desk, no 855
Unknown ship-to codeN1*ST with an unmapped locationStatus 51 for the ship-to, no order
Duplicate purchase orderResend the same 850 with a new interchange numberDuplicate PO check stops or warns per the sales document type setting; no second order unnoticed
Price mismatchPO1 price 228.00 against 240.00Order incomplete for price, no 855 until resolved
Unknown senderEdited IDoc from an unknown partner in WE19Status 56, work item for the IDoc administrator

Negative tests in Contoso's inbound order test pack.

Automating the comparison

The comparison table is mechanical, which makes it a good candidate for automation: read the created order through an API, find it by the customer's purchase order number, and assert the fields from the partner file. SAP S/4HANA exposes sales orders through the OData-based Sales Order API, where the header carries fields such as PurchaseOrderByCustomer, SoldToParty and SalesOrderType, and items carry Material, MaterialByCustomer and RequestedQuantity. A check that searches by PurchaseOrderByCustomer and expects exactly one result also proves the duplicate rule on every run.

What would you do?

Two days before cutover, all twelve Great Lakes samples pass in CMQ, but nobody has checked that EDPAR, EDSDC and KNMT entries exist in CMP. Priya asks whether to sign off. What is the right call?

Key points
  • Test with the partner's own sample files through the real path, not hand-typed IDocs.
  • Compare file to IDoc and IDoc to order, field by field; each row is evidence.
  • Negative tests (unknown part, unknown ship-to, duplicate PO, price mismatch, unknown sender) must fail in the expected way.
  • Sign-off includes the conversion data (EDPAR, EDSDC, KNMT) in the CMP cutover load.

Check your understanding · not graded

Lesson check

  1. 1. Why does Contoso compare the file with the IDoc and the IDoc with the order separately?

  2. 2. Which negative test proves the duplicate purchase order rule?

  3. 3. Which data must be in the CMP cutover load for Great Lakes orders to post?