EDI mapping
Last Updated: November 30, 2026
EDI mapping
EDI mapping defines how each field in a trading partner's electronic data interchange (EDI) document converts into your enterprise resource planning (ERP) data, and back. Unlike general data mapping between two internal systems, an EDI map must follow a public EDI standard and each partner's own implementation guide.
Your maps decide how fast you onboard a new customer, how much a partner's specification change costs, and whether orders post to the ERP untouched. A single wrong qualifier or unit of measure ships the wrong quantity, triggers retailer chargebacks, and leaves staff rekeying rejected documents by hand.
What is EDI mapping?
From a developer's view, an EDI map is a specification plus the program generated from it. The specification names the source document, the target document, and the link between every field. The program reads each incoming file and writes the converted output.
Every map has three parts. The source schema describes the incoming structure, such as an American National Standards Institute (ANSI) X12 850 purchase order. Many international partners send a United Nations Electronic Data Interchange for Administration, Commerce and Transport (UN/EDIFACT) message instead. The target schema describes what the ERP expects. That is often an SAP intermediate document (IDoc), an Extensible Markup Language (XML) file, or a flat file. Links connect the two, with conditions, code conversions, and calculations where fields do not match one to one.
EDI mapping sits between the EDI translator and the business application. The translator checks syntax and envelopes, while the map changes structure and meaning. General data mapping covers any two formats, but EDI maps also carry partner rules. In Axway B2Bi, this layer is Mapping Services, an Eclipse-based designer included with B2Bi for building, testing, and deploying maps.
How EDI mapping works
An EDI map moves through the same build cycle, whether it handles one partner's orders or a whole retail program.
- Gather specifications. Collect the partner's implementation guide, sample files, and the target layout your ERP team owns. The guide shows which segments, qualifiers, and codes this partner actually uses.
- Load schemas. Import the standard document definition and the application format into the mapping tool. Trim each view to the fields this exchange needs.
- Build links. Link source fields to target fields. Add conditions, code tables, loops, and calculations where the two structures differ.
- Test with real files. Run partner sample files through the map and compare the output with expected results. Then complete the partner's own test cycle before go-live.
- Deploy and version. Promote the tested map to production under a new version number. Keep the prior version ready for rollback.
A clean test run tells you the map produces valid structures from known inputs. It does not prove the data makes business sense. Wrong prices or units still need checks in the ERP or in a business rule.
Why EDI mapping matters for enterprise IT
Maps sit on the order-to-cash and procure-to-pay paths, between your partners and your ERP. Their quality decides how much partner work your team absorbs and how often documents fail.
- Faster partner onboarding. Reusable maps and prebuilt standard documents cut each new partner down to the differences in its guide. A partner that fits an existing pattern needs changes, not a new build. Sales teams stop waiting on integration to start trading.
- Fewer rejected documents. A map that misses one partner rule can reject a whole document. A missing qualifier or a wrong code list is enough. Staff then fix and resend the file by hand, often after the order deadline has passed.
- Controlled change. Partners revise their guides, and standard versions move forward. Versioned maps let you change one partner without breaking the others. If a release fails, you roll back that partner alone.
EDI mapping use cases
- Retail supplier teams use EDI mapping to convert inbound X12 850 purchase orders into ERP sales orders.
- Logistics teams use EDI mapping to build each retailer's outbound ship notices from warehouse management system (WMS) data.
- Finance teams use EDI mapping to turn ERP invoice records into the exact EDI invoice layout each customer requires.
Key concepts
Implementation guide
An implementation guide is a partner's own subset of an EDI standard. It lists the segments, elements, qualifiers, and code values that partner requires or ignores. Two retailers sending the same 850 can follow very different guides, so each needs its own map rules.
Source and target schemas
A schema is the structural definition of a document: its records, segments, fields, data types, and repeats. The source schema describes what arrives, and the target schema describes what must leave. Many map errors start where the two structures disagree, such as a repeating line loop mapped to a single record.
Map version
A map version is a numbered, stored release of a map, tied to a partner and a standard release. Its history shows what changed, when, and why. It lets you roll back one partner without touching the rest.
Benefits
- Post partner orders into the ERP without rekeying them.
- Start from prebuilt business documents and sample maps in the Axway B2B Standards Libraries.
- Onboard partners faster by adapting an existing map to each new guide.
- Catch structure errors in simulation before a partner sees them.
- Track every map change in Git or Subversion (SVN) version control.
- Convert the same partner document into IDoc, XML, flat file, or database formats.
EDI mapping best practices
- Start from the partner's guide, not the standard. Map only what the partner sends or requires. A map built from the full standard hides the fields that matter.
- Write a mapping specification first. Record each source field, target field, rule, and owner in one document. It becomes the reference for testing and later changes.
- Keep conversions in code tables. Store unit, item, and location code lists in tables rather than in map logic. Business users can then update values without a new release.
- Test with production-like files. Use real partner samples, including edge cases such as zero quantities and very long orders.
- Version every change. Store maps in version control and tie each release to a partner and a standard version. Rollback then becomes one step, not a rebuild.
- Route map errors to an owner. Send each failure to the owner of that partner relationship, with the failing segment named.
Avoid copying one partner's map to build the next without checking the new guide. Retailers change qualifiers, codes, and required segments. The copied map passes syntax checks and still posts wrong data.
Tools and technologies
- Axway B2Bi (Mapping Services): an enterprise B2B integration platform whose Mapping Services designer builds, simulates, versions, and deploys EDI maps. It includes B2B Standards Libraries with prebuilt X12 and EDIFACT business documents. A large language model (LLM) chatbot helps draft new maps.
- Cleo Integration Cloud: an EDI, API, and file integration platform with AI-assisted mapping between partner documents and backend formats. It reuses partner profiles to speed up onboarding.
Getting started with EDI mapping
- List your maps. Export every active map with its partner, document type, standard version, and owner. Flag maps nobody has touched in years. A spreadsheet is enough for this first pass.
- Collect current guides. Request the latest implementation guide from each partner. Compare it with the version each map was built against. Note every gap as a change request.
- Rank by risk. Mark high-volume partners, partners that issue chargebacks, and maps with frequent errors. Fix or rebuild those maps first, because they carry the most cost.
- Set a mapping standard. Agree on naming, specification templates, code tables, test files, and version rules. Store every new or changed map in version control. Write the standard down so new team members follow it.
- Choose the platform. Pick a tool that covers design, simulation, versioning, and deployment in one place. Axway B2Bi with Mapping Services covers that full cycle. Pilot it on one partner before migrating the rest.
Key takeaways
- EDI mapping is the field-by-field conversion between a partner's standard EDI documents and your internal application formats.
- Each map links a source schema to a target schema, then goes through real-file testing and a numbered, versioned release.
- Partner implementation guides, not the base standard, set what each map must handle and test.
- The main risk is a map that passes syntax checks but posts wrong quantities, prices, or codes into the ERP.
- The biggest gains come from reusable maps, shared code tables, and version control across every partner.
Build and manage EDI maps with Axway B2Bi
Axway B2Bi brings EDI mapping, partner management, and orchestration into one platform. Run it on-premises, in your cloud, hybrid, or in containers.
Frequently asked questions
How is EDI mapping different from EDI translation and general data mapping?
EDI mapping is one step inside a larger translation process. Translation covers the whole path from a raw interchange to usable application data. The translator first reads the envelope, checks the syntax against the standard, and returns a functional acknowledgment. The map then converts the validated document into the structure your application expects, and does the reverse on outbound flows. General data mapping uses the same idea of linking source fields to target fields. It applies to any pair of formats, such as two databases or two APIs. EDI maps add two layers that general mapping lacks. They follow a public standard with fixed segment and element rules, and they follow each partner's implementation guide. Many platforms sell translation and mapping together, so buyers often treat the terms as one. When you compare tools, ask which part handles validation and which part handles conversion. Then test each part on its own.
How often do EDI mapping changes happen, and what triggers them?
Expect EDI mapping changes all year, not once at go-live. The most common trigger is a partner revising its implementation guide. Retailers add required segments, change qualifiers, or move to a newer standard release. Your own systems create changes too. An ERP upgrade, a new warehouse, or a new product line can change target layouts and code lists. New partners bring new maps or variants of existing ones. Mergers and new markets bring new standards, such as EDIFACT partners for a business that only used X12. Plan capacity for this work instead of treating it as an exception. Keep a change log per partner that records each request, the guide version, and the release date. Review it each quarter to see which partners drive the most change. Those partners deserve the cleanest specifications and the most complete test files. The same review shows maps that no longer carry traffic and can be retired.
Why does EDI mapping for the same document differ between trading partners?
EDI standards define what partners are allowed to send, not what each one actually sends. An X12 850 purchase order has many optional segments and elements. Each partner picks its own subset and records it in an implementation guide. One retailer sends ship-to locations at header level, while another sends them on each line. One uses its own item numbers, while another uses universal product codes. Partners also run different standard versions, such as X12 4010 or 5010. Code values differ too, for units of measure, dates, and reference qualifiers. Your EDI mapping must turn all these variants into one consistent ERP record. That is why one document type often needs several maps, or one map with partner-specific branches. Shared logic keeps the common rules in one place. Partner-specific rules then cover only the differences. This structure also shows how far each partner sits from your standard, which helps during onboarding talks.
Can AI build an EDI mapping from a partner's implementation guide?
Yes, AI can produce a strong first draft, but a person still owns the finished map. Language models read a partner's guide and sample files quickly. They propose links between segments and target fields, suggest code conversions, and flag required elements. Axway B2Bi includes a large language model chatbot that creates maps from a plain-language request. That cuts the blank-page work on a new partner from a long specification session to a review. The draft still needs checking against what the partner actually sends. Guides often lag behind real files, and models guess when a qualifier or code list is ambiguous. Treat the AI output like a junior developer's work. Review each link against the specification, run the partner's sample files, and complete the partner test cycle. Keep the reviewed result in version control like any other map. The gain is speed on routine documents, not skipping the test steps that protect your orders.
What does good EDI mapping performance look like, and how do you measure it?
There is no published industry benchmark for EDI mapping quality, so set targets from your own baseline. Four measures matter most. The first is the share of inbound documents that post to the ERP with no manual touch. The second is the number of map-related errors per partner each month. The third is the time from a partner guide change to a tested map in production. The fourth is the share of releases rolled back after go-live. Track all four by partner, not only in total. A partner with frequent errors often points to an outdated guide or a copied map. Long change times usually mean weak specifications or missing test files. Rollbacks show gaps in regression testing. Review these numbers with the business owners of your largest partners. Then raise the targets each year as maps move onto shared logic, code tables, and version control.