Knowledge Base · EDI
EDI mapping explained: from EDIFACT segment to ERP field
An incoming EDI message is unreadable to your ERP until someone defines which part of the message belongs in which field. This definition is called mapping, and it is the stage where most time is spent and most errors occur. This page explains how a message is structured, why every partner fills it in differently, and where mappings break down.
The Concept
A translation table, not a programMapping is an agreement that happens to live in software
At its core, a mapping is a list: this element from the message goes to this field in your system, and this code from your partner represents that value in yours. This is not complex work, it is precision work. Where it gets difficult: every trading partner uses the standard slightly differently, and your own system expects data that isn't always present in the message.
Structure
How an EDIFACT message is built
Envelope
The outer layer containing the sender, recipient, and a unique transmission number. Comparable to the address on an envelope.
Message
Inside the envelope are one or more messages, each with a type such as ORDERS or INVOIC and its own unique number.
Segment
A line with a fixed code, for example for a date, a party, or a line item. Segments appear in a prescribed sequence.
Data Element
The individual values within a segment: the number itself, the unit, the quantity.
Qualifier
A code that specifies what the adjacent value means. The same position in a message can contain a delivery date or an order date; the qualifier makes the difference.
Code Lists
Fixed lists of permitted values for units, currencies, reasons, and so on. Anyone using custom values will have their message rejected.
Example
One line, three decisions
Imagine: an order line contains a number, a qualifier stating it is an international article number, a quantity, and a unit. For your ERP, this involves three decisions. Which field receives the article number, knowing your system uses an internal code? What do you do if the number is unknown: reject it or let it through with a notification? And how do you convert the unit if your partner orders in boxes and you stock in units? Those three decisions are the mapping. The surrounding technology is the easy part.
Failure Points
Four classic causes of a failed mapping
Your partner changes something
An extra field, a different code list, or stricter validation. If no one reads the announcement, you will only notice through rejected messages.
You change something
A new field in your ERP, a modified article numbering scheme, or a migration. Every change on your side affects every mapping using that field.
Unmapped exceptions
Partial deliveries, credit notes, free items, promotions. These rarely appear during testing but always show up in production.
Lack of documentation
The person who built the mapping has left and no one knows why a specific conversion exists. Every change then becomes guesswork.
Management
What makes a mapping maintainable
Documentation in your own environment
Per partner and per message type: which fields, which code lists, which deviations, and why. Stored with you, not just with your service provider.
Version control
Knowing which version has been running since when and what changed, so you can look back during a failure instead of guessing.
A permanent test environment
Not just during the project. Every subsequent change should be tested before going live.
Standardise where possible
Build a base mapping per message type and keep partner-specific logic separate. Otherwise, every new partner starts from scratch.
Frequently Asked Questions
Briefly answered
Mappings that no one dares to touch anymore?
We map out what is running, document it, and make it modifiable again. Schedule a no-obligation consultation.