Skip to main content

EDIFACT: ORDERS (D.01B) Purchase Order

Overview of the EDIFACT ORDERS D.01B message, covering its purpose, message structure, required segments, segment groups, and line item detail used to transmit Purchase Order data between trading partners.

L
Written by Lorilei Nash

Product/Topic: EDIFACT - ORDERS (D.01B)


The EDIFACT ORDERS (D.01B) message is a United Nations (UN) standard Electronic Data Interchange (EDI) message used by a buyer to place a Purchase Order with a supplier. It communicates the product, quantity, pricing, delivery, payment, transportation, scheduling, and reference information required to fulfill a purchase order between trading partners.

Understanding the structure of the ORDERS message is important when configuring, mapping, or troubleshooting Purchase Order transactions within your EDI setup. The ORDERS (D.01B) supports ordering, scheduling, delivery, transportation, payment, packaging, and fulfillment processes across trading partner relationships.


Transaction Overview


Field

Value

Standard

EDIFACT

Message Type

ORDERS

Version

D.01B

Agency

UN (United Nations)

Purpose

Purchase Order


Message Structure


The ORDERS message is divided into three primary sections: Header, Detail, and Summary.

Header Section

Contains purchase order identification, dates, references, parties, payment terms, transportation, packaging, scheduling, and tax information. This section establishes the full context of the order transaction.

Detail Section

Contains individual order line-item information — the specific goods or services being ordered, including quantities, pricing, product descriptions, scheduling, and item identifiers.

Summary Section

Contains totals, allowances, charges, and control information that close out and validate the purchase order.


Required Segments


The following segments are required in every ORDERS (D.01B) message.

Segment

Description

UNH

Message Header — identifies the message as ORDERS D.01B UN

BGM

Beginning of Message — includes purchase order number, type, and function

DTM

Date/Time/Period — order, shipment, and requested delivery dates

UNS

Section Control — separates the Detail and Summary sections

UNT

Message Trailer — closes the transaction and verifies segment count


Header Segments


The segments in the following table appear in the Header section and provide supporting information about the purchase order.

Segment

Description

PAI

Payment Instructions

ALI

Additional Commercial Information

IMD

Common Item Description

FTX

Free Text Notes


Segment Groups


Segment Groups (SG) are logical groupings of related segments within the ORDERS (D.01B) message.

Segment Group

Name

Key Segments

SG1

References

RFF, DTM

SG2

Parties

NAD, LOC, FII

SG6

Tax Information

TAX, MOA, LOC

SG7

Currency Information

CUX, PCD, DTM

SG8

Payment Terms

PAT, DTM, PCD

SG10

Transportation Information

TDT

SG13

Packaging Information

PAC, MEA

SG15

Equipment Information

EQD, HAN, MEA, FTX

SG16

Scheduling Information

SCC

SG19

Allowances and Charges

ALC

SG28

Purchase Order Line Items

LIN loop


Detail Section — Purchase Order Line Items (SG28)


The SG28 loop is the primary line-item loop used to communicate ordered product and service information. Each iteration of the LIN segment represents one line item within the Purchase Order.

Segment

Description

LIN

Line Item — identifies each individual product line being ordered

PIA

Additional Product Identification — alternate product codes and identifiers

IMD

Item Description — free-form or coded description of the item

MEA

Measurements — physical measurements associated with the line item

QTY

Quantities — ordered quantity for this line item

MOA

Monetary Amounts — monetary amounts per line

GIN

Goods Identity Number — serial or batch numbers for goods

RFF

References — line-level references

PRI

Pricing — pricing information (via SG32)

PAC

Packaging Information — packaging details per line


Summary Section


The Summary Section closes out the ORDERS message and provides control and totals information:

  • UNS — Separates the Detail section from the Summary section

  • MOA — Provides order monetary totals

  • CNT — Provides control totals for the message

  • SG60 — Provides allowances and charges totals

  • UNT — Closes the transaction and verifies segment count


Additional Resources


rev. 07/23/26

Did this answer your question?