EDIFACT Explained: Message Standards and Transaction Sets

Electronic Data Interchange (EDI) should be invisible to the business operations it facilitates. But this is far from true if you’re tasked with building and implementing an EDI system, or enabling your EDI architecture to translate messages from another EDI standard. 

Although only one of many EDI standards, EDIFACT stands out as a comprehensive EDI methodology used by organisations across the globe.1  

Here, we aim to provide practical guidance about the EDIFACT Transaction Sets (T-sets), syntax, and message construction to help you understand how to translate messages into EDIFACT and coordinate with supply chain partners. 

What is EDIFACT?

EDIFACT, or ‘Electronic Data Interchange For Administration, Commerce, and Transport’, is a robust set of standards developed by the United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT).

In essence, EDIFACT works by standardising the electronic data interchange between business partners. Created to serve any business transaction in any industry, it encompasses a wide range of document types (e.g. invoices, purchase orders, delivery notes, etc.), and has even spawned a number of industry-specific ‘subsets’ like EANCOM, which was created for the retail sector.

EDIFACT, like all EDI standards, was designed to facilitate the global and multi-industry exchange of electronic business documents in order to streamline the complexities inherent in global trade. However, this only works if you formulate your messages using the right codes, T-sets, and syntax.

Components of an EDIFACT message

An EDIFACT message is a complete, structured data sequence representing a single business transaction, such as an order, an invoice or a shipping notice. Each message begins with a ‘message header’ (UNH) segment and ends with a ‘message trailer’ (UNT) segment. For example, an invoice message (INVOIC) includes all the details related to invoicing a shipment or a service.

Each EDIFACT message is composed of logically related data elements assembled in a specific order. The building blocks of these data elements are codes, segments and T-sets, which are distinct but related concepts: 

  • EDIFACT Codes: Business documents are converted from internal formats (such as XML or CSV) into the standardised formats used in EDI, such as EDIFACT or X12. This transformation ensures that the data can be accurately interpreted and understood by the recipient’s systems. 
  • EDIFACT Segments: A collection of related data elements that together convey a distinct piece of information within a message. Each segment begins with a unique three-letter code that indicates the type of information contained in the segment.
  • EDIFACT T-sets (Transaction Sets): A standardised collection of related data segments representing a specific type of business transaction. Each T-set is identified by a unique EDIFACT code.

Confusingly, a T-set can be considered a type of message. For example, the Transaction Set ‘ORDERS’ corresponds to the Purchase Order message type. However, the simplest way to understand this is that an EDIFACT message is the complete structured data representation of a business transaction, and a Transaction Set (T-set) is the type of business transaction that the message represents. 

EDIFACT code list

EDIFACT has a more comprehensive set of codes than most EDI standards, resulting in more possible segments and T-sets. Understanding these codes simplifies the usage of the system and aids in its successful application. The most common examples of EDIFACT codes include:

EDIFACT CodeDescription
DELFORDelivery Forecast
DELJITDelivery Just-In-Time
DESADVDispatch Advice
IFTMINInstructions for Transport
IFTMBFTransport Booking Request
IFTMBCTransport Booking Confirmation
INVOICInvoice
ORDERSPurchase Order
PAYORDPayment Order
PRICATPrice Catalogue
PRODATProduct Data
INVRPTInventory Report
RECADVReceipt Advice
MSCONSMetered Services Consumption Report
UTILMDUtilities Master Data
ORDCHGPurchase Order Change Request
CONTRLFunctional Acknowledgement
REMADVRemittance Advice
SLSRPTOutgoing Sales Report
ORDRSPPurchase Order Response
Note: There are many more codes included within the EDIFACT format, each aimed at optimising a specific sector of commerce, transport, or administration.

How EDIFACT messages are constructed

The syntax rules of the EDIFACT standard are vital for constructing and interpreting EDIFACT messages by ensuring each message’s coherence and uniformity. Let’s deep-dive into those details.

Usable Characters: The language

EDIFACT has a specific set of characters that can be used within messages. These include:

  • Alphabetic characters: A to Z (uppercase only)
  • Numeric characters: 0 to 9
  • Special characters: A set of special characters, such as . , – ( ) / = + : ? ‘ and spaces

These provide a range of options to construct all types of commercial, administrative, and transport messages.

Data Elements: The building blocks

Data Elements are the fundamental units in an EDIFACT message, encapsulating individual pieces of information analogous to words in a language. They can be either simple or composite and align within segments following a pre-defined sequence.

Key points about Data Elements:

  • Simple Data Elements contain a single piece of data. For example, a specific price or date.
  • Composite Data Elements hold multiple related pieces of data, or sub-elements. For instance, a composite data element could encapsulate a complete address.
  • Each Data Element has a unique number as defined in the UNTDED (United Nations Trade Data Element Directory).2

Segments: The framework of EDIFACT

Segments function as containers for logically related data elements, akin to sentences in a language that convey a complete idea. They outline specific information, such as customer details or product information. 

Key points about Segments:

  • Standard segments like the ‘NAD’ and ‘DTM’ have specific purposes, providing name and address details or specifying a date or time.
  • The segments in a message follow a definite sequence as defined in the ‘message structure diagram’ — the framework for each EDIFACT message type.
  • A segment begins with a Segment tag, which is a three-letter code indicating the type of data contained in the segment.

Below is a table listing some common EDIFACT segments:

Segment CodeSegment NameDescription
UNHMessage HeaderStarts a message and assigns it a unique reference number.
BGMBeginning of MessageIdentifies the message type and function.
DTMDate/Time/PeriodProvides date and time information.
NADName & AddressSpecifies name and address details of parties involved.
LINLine ItemIdentifies line items within a transaction.
UNTMessage TrailerMarks the end of the message and counts the total number of segments.

Each data element within the LIN segment holds a piece of information related to an item in an order, e.g. its identifier, the action required, item number, and any sub-line information.

T-sets: Groups of segments 

EDIFACT segments group together to create T-sets, which represent a specific business transaction or unit of communication. For example, a T-set can represent a purchase order, invoice or logistics shipping instruction. 

Key points about EDIFACT T-sets:

  1. Each T-set adheres to a standardised structure, prescribed by the EDIFACT standard. This ensures that irrespective of the parties involved, the T-set is consistently interpreted and processed.
  2. Every T-set has a unique EDIFACT code, ensuring that it can be universally recognised. For example, the code ‘ORDERS’ represents a Purchase Order T-set, and ‘INVOIC’ signifies an Invoice T-set.
  3. A T-set consists of multiple segments, each carrying a distinct piece of information relevant to the transaction. Segments in a T-set are organised in a specific, predefined order.

To illustrate this, here is an example of the LIN segment used to construct a T-set representing a line item in a purchase order, and a breakdown of data elements that might be included.

Segment (T-Set)Data ElementDescriptionSample Value
LIN1082Line item identifier1
C212Item Number Identification
7140Item numberABC123
7143Item number type, codedIN

Message: The complete EDIFACT transaction

A Message in the EDIFACT system is akin to a paragraph or a complete letter. It’s the assembled form of all related segments required to represent a business transaction.

Key points about Messages:

  • Each message starts with a ‘message header’ (UNH) segment and ends with a ‘message trailer’ (UNT) segment, forming a self-contained data exchange unit.
  • The messages depict specific transactions like invoices, purchase orders, or transport instructions.

Example of a Message:

  • UNH — Message Header
  • BGM — Beginning of Message (identifies the type and function of the message)
  • DTM — Date/Time/Period (provides date and time information related to the transaction)
  • NAD — Name and Address (provides name and address information related to parties involved in the transaction)
  • LIN — Line Item (defines specific line items within the transaction)
  • UNT — Message Trailer

To provide more detail, here are all the components that might go into an EDIFACT message representing a line item purchase order.

Segment CodeData ElementDescription
UNH1Message Header
ORDERS:D:96A:UNIdentifies the message type as a purchase order
BGM220Identifies the document/message name and function
BKOD99Document/message identifier (e.g., order number)
DTMC507Date/Time/Period
DATE CODEDate or time or period function code qualifier
DATEDate or time or period text
NADC082Party Identification Details
PARTY CODEParty identifier
PARTY NAMECode identifying a data element
LIN1Line item identifier
C212Item Number Identification
7140Item number
7143Item number type, coded
UNT22Message trailer
1Control count

When formulated as a real EDI message, this information would look like:  

UNH+1+ORDERS:D:96A:UN’

BGM+220+BKOD99′

DTM+137:20220228:102′

NAD+BY+BUYER1::91′

LIN+1++ITEM1:IN’

UNT+5+1′

Although nearly incomprehensible for a human, this provides a universally intelligible representation of a business transaction optimised for electronic interchange.

Transmission Files: Groups of messages 

Transmission files represent batches of messages. They are defined by the ‘interchange header’ (UNB) and ‘interchange trailer’ (UNZ) segments. A transmission file can contain one or more message groups or individual messages.

How an EDI Partner Can Help

Although the EDIFACT system is comprehensive and powerful, navigating its intricacies takes time, particularly for small to medium-sized enterprises operating within complex supply chains using multiple EDI standards. Translating EDI formats like ASNI or VDA into EDIFACT, or vice versa, presents a significant challenge requiring the complex use of EDI mapping software.

EDI via VAN (Value-Added Network) is a private network provider that hosts a secure platform for exchanging EDI or other electronic business documents amongst trading partners. VANs can handle any EDI standards (like X12, EDIFACT), and they ensure the safe and reliable transmission of data.

At Data Interchange, we provide flexible EDI services that make it simple for businesses who rely on EDI to do so without having to constantly re-configure their internal systems. Bridge the gap between the complexities of the EDIFACT format and the specific needs of your business to meet any supply chain partner’s EDI requirements with confidence.

1 Un-edifact

2 UNTDED-ISO7372 | UNECE

Transform your approach to supply chain management

Talk to an Expert








    Epicor values your privacy. Website terms and conditions.

    RELATED ARTICLES

    The ANSI X12 820 T-Set: Structure, Benefits & Use Cases

    Leveraging EDI for Enhanced Supply Chain Visibility

    The EDIFACT REMADV T-Set: Structure, Benefits & Use Cases

    EDI vs API: What’s the Best Method for B2B Integrations?

    EDI 214 T-Set: Structure, Benefits & Use Cases

    The ANSI X12 EDI 862 T-Set: Structure, Benefits & Use Cases

    The ANSI X12 856 T-Set: Structure, Benefits & Use Cases

    ANSI X12 EDI 846 T-Set: Structure, Benefits & Use Cases

    855 T-Set: Structure, Benefits & Use Cases

    Making the Move to Cloud-Based EDI Solutions

    EDI 940 T-Set: Structure, Benefits & Use Cases

    ANSI X12 EDI 865 T-Set: Structure, Benefits & Use Cases

    The VDA 4987 Message: Structure, Benefits & Use Cases

    Top EDI Solution Providers in 2024

    ANSI X12 EDI 850 T-Set: Structure, Benefits & Use Cases

    The VDA 4938 Message: Structure, Benefits & Use Cases

    The EDIFACT DELJIT T-Set: Structure, Benefits & Use Cases

    The EDIFACT DELFOR T-Set: Structure, Benefits & Use Cases

    The VDA 4915 Message Explained

    The VDA 4905 Message Explained

    T-Sets | ANSI X12 810

    How to optimise your EDI and ERP system integration

    T-Sets | ANSI X12 997

    T-Set | EDIFACT INVOIC

    T-Set | EDIFACT DESADV

    Exploring Cloud EDI Services in ERP: Architecture, Security, and Scalability

    VDA Explained: Message Standards and Transaction Sets

    ANSI X12 Explained: Message Standards and Transaction Sets

    The Power of Web EDI for Global Supply Chains

    How to Get the Most Out of AS2

    How EDI Simplifies Transactions in the Manufacturing Sector

    Why Your Automotive Supply Chain Needs an OFTP2 Connection

    Digital Supply Chain Trends Impacting 2023 and Beyond

    How to Manage Global Supply Chain Complexities

    How to Overcome Supply Chain Risk

    What is the Future of Supply Chain Management in 2023?

    How to Improve your Supply Chain Strategy

    Why Scalable EDI is Integral to Rapid Business Growth

    How to Pick the Right EDI File Transfer Protocol

    An Introduction to OFTP2 (Odette File Transfer Protocol)

    What are the Costs of EDI Implementation?

    What is PEPPOL?

    A Guide to EDI Protocols

    EDI VAN Costs: Get the Right Solution for your Business

    How Much Does EDI Cost?

    How Do On-Premise EDI Solutions Work?

    Our Plan at Data Interchange to Change EDI and Supply Chain Management

    Integrating EDI with your ERP

    In-house vs Managed Service EDI

    What is an API Integration? And how does it affect EDI?

    Epicor Acquires EDI Provider Data Interchange

    6 Benefits of EDI in the Logistics Industry

    4 Challenges Facing the Logistics Industry and How to Overcome Them

    Solving Supply Chain Problems in the Logistics Industry

    B2B EDI Integration Best Practices in 2023

    How to Choose The Right EDI Provider in 2022

    Supply Chain Analytics Trends in 2022

    Future-proof your business: Take Advantage of Market Growth

    Announcement: Andrew Filby becomes CEO of Data Interchange

    7 Advantages of EDI in The Automotive Industry

    Consumer Expectations cause Demand for Integrated Data

    How to Optimise Your Automotive Supply Chain Processes

    Post-Pandemic Supply Chain Challenges Increase the Pressure

    EDI Made Simple for the Automotive Industry

    Overcoming Supply Chain Visibility Issues in the Automotive Industry

    Complex Supply Chain Problems and Simple Solutions

    Supply Chain Flexibility: Why your customers need it

    5 Automotive Supply Chain Challenges Facing the Industry

    Supplier Performance Management Reimagined in 2023

    How to Unite Emerging Supply Chain Management Technology Trends

    Meet the Team: Marketing

    Supplier Management Best Practices after COVID-19

    The Future of EDI: Looking Beyond 2025

    The top three supply chain data exchange requirements

    The Advantages of EDI in E-Commerce: How to Gain a Competitive Advantage Online in 2021

    A Crash Course on EDI Industry Standards: ANSI x12 vs EDIFACT vs OFTP and more

    What is EDI Mapping?

    What is EDI: The History and Future of Electronic Data Interchange

    The Future of the Automotive Supply Chain

    Supplier Relationship Management: How to reduce risk and improve performance

    How EDI-as-a-Service Changes Supply Chain Best Practices in 2021

    Agile Supplier Onboarding: Supply Chain Security in Uncertain Times

    The impact of failed EDI on Supply Chain

    Cloud-Based EDI Solutions vs On-Premise

    Different Types of EDI Compared

    5 Most Common EDI Implementation Issues and How to Solve Them

    Are your EDI documents ready for the new EU/UK customs border?

    B2B Integration Challenges

    EDI vs API: Bridge the B2B connectivity gap

    Ten things to look for in an EDI Managed Service Provider

    World Mental Health Day 2020

    Logicalis & Data Interchange – partnering for success

    EDI – A data integration service critical to business success

    Joining forces with SnapLogic: bringing together market leading iPaaS and EDI solutions

    Joining Data Interchange: My lockdown experience

    Data Interchange announces strategic partnership with SmarterPay

    Access new trading partners quickly for COVID-19 support

    Keeping supply chains moving

    Our Web EDI solution gets a makeover

    Coronavirus: Our Business Continuity Plan

    With love from Data Interchange ♥

    A new decade, renewed ambition and the next generation

    Brexit and EDI

    Data Interchange transform their Support service for an improved customer experience

    Interview: An update on Data Interchange’s new CEO, Robert Steiner

    Data Interchange appoints Robert Steiner as new CEO

    MQ messages over ENX – Renault

    Five key questions for your EDI provider

    Data Interchange at the Odette Conference 2018

    How to select the right EDI provider

    Future proof your EDI and unleash growth

    EDI: the Supply chain performance enhancer

    Taking cost out of the chain

    Non-EDI users held up in the mail

    Over 41% of companies at risk without EDI

    ​Consolidating VAN providers

    Increase visibility and productivity of supply chain logistics with Data Interchange’s B2B integration solutions

    Data Interchange wins large business of the year award

    Data Interchange launch new Support Portal

    Data Interchange will be showcasing our EDI solution offerings and promoting the benefits of MMOG/LE

    Metaldyne receive special recognition from Ford for 11th consecutive year

    Top 5 reasons to switch to EDI Managed Services

    Data Interchange to power QAD Managed EDI On Demand