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

Lesson 2 of 5

From implementation guide to mapping spec

9 min

Listen to this lesson

0:00 / 12:47

A partner's implementation guide (IG) describes how that partner uses a standard: which segments it sends, which are mandatory for it, which qualifiers and codes it uses, and what each field means in its business. It is the source of truth for the partner's side. A mapping specification is your document: it states, rule by rule, how each element of the partner's message becomes a field in your system, or the other way around. Testers test against the spec, so a vague spec produces vague tests.

Reading an implementation guide

Read the IG with three questions in mind. Usage: is each segment and element mandatory (M), optional (O) or conditional for this partner, which can differ from the standard. Qualifiers and codes: which values the partner sends, for example N1 with qualifier ST for ship-to, DTM with qualifier 002 for the requested delivery date, or PO1 with qualifier BP for the buyer's part number. Meaning: what the partner intends, such as whether the price in PO1 is a unit price the supplier must honor or only for information.

If you use Integration Advisor, the IG becomes a message implementation guideline (MIG): the partner's profile of the standard, with its qualifiers and code values, and the mapping becomes a mapping guideline (MAG). Even then, keep a human-readable spec that business users can sign and testers can test against; export or cross-reference it with the MAG so the two never drift.

Collect the partner's code lists early, because they become value mappings. Northern Plains sends units of measure as EA and CA, depot codes such as D07, and its own part numbers; each needs a known SAP counterpart (PC, a case quantity, a ship-to party, a material). Put every list in the spec as a table owned by a named person, and agree what happens when the partner adds a value: in practice, a new depot or part number is the most common change request after go-live.

The columns of a testable spec

ColumnWhy it is thereBad exampleGood example
Rule IDTraceability to tests and defects(none)NPCL-850-07
SourceExact segment, element and qualifier"Ship-to"N1*ST, N104 (qualifier N103 = 92)
TargetExact IDoc segment and field"Partner"E1EDKA1, PARVW = WE, PARTN
RuleTransformation in one unambiguous sentence"Map the depot"Convert N104 depot code to the ship-to party number through the EDI partner conversion table
Example in / outOne worked example with real values(none)N1*ST*NPCL DEPOT 07*92*D07 → ship-to 17100457
Error behaviorWhat happens if the value is missing or unknown(none)Unknown depot: IDoc status 51 for Maria's team; 855 not sent
What makes a mapping rule testable: each column turns into part of a test case.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-304

The example column is the one teams skip and testers need most. A rule without an example invites two people to read it two ways; with an example, the expected result of the test case is already written.

Contoso's 850 to ORDERS05 spec for Northern Plains

RuleSource (850)Target (ORDERS05)Rule and example
NPCL-850-01BEG03 purchase order numberE1EDK02, QUALF 001, BELNRCopy as is. NP-77810 → customer PO NP-77810 on the sales order
NPCL-850-02BEG05 purchase order dateE1EDK02, QUALF 001, DATUMCCYYMMDD copied. 20261103 → 20261103
NPCL-850-04DTM*002 requested delivery dateE1EDK03, IDDAT 002, DATUMCopied; if missing, IDoc posts and Maria's team sets the date
NPCL-850-07N1*ST, N104 depot codeE1EDKA1, PARVW WEDepot code converted to ship-to party; D07 → 17100457
NPCL-850-10PO102 quantity, PO103 unitE1EDP01, MENGE and MENEEEA converted to PC; 10 EA → 10 PC
NPCL-850-12PO107 with PO106 = BP (buyer part)E1EDP19, QUALF 001, IDTNRBuyer part NP-ALT-24 → customer material; SAP finds CMC-ALT-100 through the customer-material info record
NPCL-850-14PO104 unit priceE1EDP01 price fieldsInformation only; SAP prices from the contract; a difference above 1% creates a warning for Maria

Selected rules from Contoso's mapping specification for the Northern Plains 850. The ship-to number is illustrative.

Outbound documents need specs too

Teams write careful specs for the inbound 850 and then wing the outbound documents, which are the ones the partner validates. Write a spec for each: the 855 from the ORDRSP IDoc, the 856 from the delivery's DESADV IDoc (DELVRY07), and the 810 from the INVOIC IDoc (INVOIC02). The 856 deserves the most care because of its hierarchical levels (HL segments for shipment, order, pack and item, as the partner's guide requires) and because the partner matches it to its PO and its receiving dock. The 810 needs rules for totals: in X12 the TDS01 total invoice amount carries an implied two decimals, so 12,000.00 is sent as 1200000. Each of these rules gets an example, and each example becomes a test.

Gaps: what the EDI doesn't carry

Every spec finds data SAP needs that the partner doesn't send, and data the partner sends that SAP doesn't store. For inbound orders in SAP S/4HANA, the sales area usually isn't in the 850, so it is assigned to the customer for EDI in Customizing (transaction VOE2, table EDSDC); external partner numbers such as depot codes are converted to SAP partner numbers with transaction VOE4 (table EDPAR); and buyer part numbers are resolved through customer-material information records. Write each gap into the spec with its owner, and treat the conversion tables as test data that must be right before testing starts.

Traceability from the partner's guide to evidence: the spec feeds both the build and the tests, and rule IDs tie them together.
The Sign-Off Table · thesignofftable.com/academy/sap-edi-304

What would you do?

A draft spec row says: "Map ship-to from the N1 segment." Priya returns it. Which rewrite makes it testable?

Key points
  • The partner's implementation guide defines its usage, qualifiers and meaning; the mapping spec defines your transformation.
  • A testable rule has an ID, exact source and target, a one-sentence rule, a worked example and the error behavior.
  • Write gaps into the spec, such as sales area assignment (VOE2), partner conversion (VOE4) and customer-material records.
  • Version and sign the spec; trace rule IDs into test cases and evidence.

Check your understanding · not graded

Lesson check

  1. 1. Which column of a mapping spec turns most directly into a test case's expected result?

  2. 2. In Contoso's ORDERS05 mapping, where does the customer's purchase order number from BEG03 go?

  3. 3. Which SAP setting converts a partner's depot code into an SAP ship-to party for inbound EDI?

  4. 4. What does a message implementation guideline in Integration Advisor represent?