100% Offline Reference EDIFACT ORDERS

UN/EDIFACT ORDERS Purchase Order Segment Group Reference (D.96A / D.01B)

ORDERS is the global retail, FMCG, and manufacturing equivalent of ASC X12 850, using explicit UNS+S section dividers to separate detail lines from trailer totals.

Core Segment Groups & Synthetic ORDERS Payload

UNA:+.? '
UNB+UNOC:3+4012345000018:14+5412345000099:14+261112:0915+ORD9910'
UNH+1+ORDERS:D:96A:UN:EAN008'
BGM+220+PO-EU-77412+9'                       <-- 220 = Order, 9 = Original
DTM+137:20261112:102'                        <-- 137 = Document Date (CCYYMMDD)
DTM+2:20261119:102'                          <-- 2 = Delivery Requested Date
NAD+BY+4012345000018::9++NORDIC RETAIL GMBH' <-- SG2 Buyer (9 = GS1 GLN)
NAD+SU+5412345000099::9++ALPINE BEVERAGES'   <-- SG2 Supplier
NAD+DP+4012345000056::9++HAMBURG DC #4'      <-- SG2 Delivery Party
CUX+2:EUR:9'                                 <--SG7 Order Currency = EUR
LIN+1++5412345111220:EN'                     <-- SG25 Line #1 + EAN-13 GTIN
PIA+1+SKU-9920:SA'                           <-- Supplier Article Number
IMD+F++:::SPARKLING MINERAL WATER 6X1.5L'
QTY+21:40:CT'                                <-- 21 = Ordered Qty (40 Cartons)
PRI+AAA:14.25'                               <-- SG28 Net Unit Price (EUR 14.25)
UNS+S'                                       <-- Mandatory Detail-to-Summary Separator!
MOA+79:570.00'                               <-- Total Line Items Amount (40 * 14.25)
CNT+2:1'                                     <-- 2 = Total Line Items (1 LIN)
UNT+17+1'
UNZ+1+ORD9910'

Frequently Asked Engineering Questions

Why is UNS+S mandatory in UN/EDIFACT ORDERS and INVOIC?

Because MOA and CNT segments can appear both inside line-item groups (SG25/SG26) and in the document summary, ISO 9735 grammar requires UNS+S to unambiguously transition the state machine from the detail section to the summary section.

Inspect, Diff, Validate & Scrub This Payload Offline in Your JetBrains IDE

Never paste regulated healthcare PHI (837/835/271) or supply-chain payloads (850/ORDERS) into browser parsers. EdiPrism X12 EDIFACT runs 100% air-gapped inside IntelliJ IDEA, PyCharm, DataGrip, Rider, GoLand, and WebStorm with a free core tier and a 14-day [Pro] trial.

Install Free from JetBrains Marketplace → Read Air-Gap Security Architecture