Booking & Purchase Order

At SupplyX we use EDIFACT as the message standard. The Booking & Purchase Order Interface is defined by the EDIFACT ORDER message

General

Subset defintion

Message implementation guideline for the pruchase order messages sent to SupplyX using EDIFACT ORDERS D01B message format.

Functional defintion

A message specifying details for goods or services ordered under conditions agreed between the seller and the buyer.

Field of application

The interface can be used for a) allowing SupplyX to provide enhanced insights into the buying party's supply chain or b) allowing the buying party to use SupplyX's infrastructure for order negotiation with their respective suppliers.


Subset abbreviations

Default statuses

M Mandatory

C Conditional


Custom statuses for conditional items

R Required (conditional status changed to mandatory)

A Advised / Recommended

D Dependent (Mandatory when certain conditions apply)

O Optional

X Excluded / Not Used

Status and repeat examples

M1 Mandatory, must be repeated exactly once

C99 Conditional, can be repeated at most 99 times

R5 Required, must be repeated atleast once and at most 5 times

Data type examples

an..35 alphanumeric value, at most 35 characters

an3 alphanumeric value, exactly 3 charaters

n..9 numeric value, at most 9 numbers

n3 numeric value, exactly 3 numbers

a1 alphabetic characters, exactly 1 character


Message Structure

This is an overview of segements and segement groups used in scenarios covered by this message implementation guide.


TagNameStRp
UNHM1
BGMM1
DTMM35
SG1RFF-DTMO9999
-RFFReference
-DTMDATE/TIME/PERIOD
SG2NAD-LOCR99
-NADName and addressM1
-LOCPlace/location identificationD99
SG12TOD-LOCA5
-TODTerms of delivery or transportM1
-LOCPlace/location identifiactionR2
SG28LIN - PIA - IMD - MEA - QTY - DTM - SG34 - SG39 - SG51R200000
-LINLine ItemR1
-PIAAdditional product idO25
-IMDItem descriptionO99
-MEAMeasurementsO99
-QTYQuantityR99
-DTMDate/time/periodO99
-SG34PAC-MEAO99
--PACPackageM1
--MEAMeasurementsO5
-SG39NAD - LOCO999
--NADName and addressM1
--LOCPlace/location identifiacationD5
-SG51TOD-LOCO5
--TODTerms of delivery or transportM1
--LOCPlace/location identifactionR2
UNSSection controlM1
UNTMessage trailerM1

Message Segements

UNH Message Header (M1)

A service segement starting and uniquely identifying a message. The message type code for the Prucahse order message is ORDERS.


TagNameStTypeNotes
0062MESSAGE REFERENCE NUMBERMan..14
S009MESSAGE IDENTIFIERM
0065Message TypeMan..6ORDERS (other codes are forbidden)
0052Message Version NumberMan..3D (other codes are forbidden)
0054Message Release NumberMan..301B (other codes are forbidden)
0051Controlling agency, codedMan..3UN (other codes are forbidden)

Example: UNH+1+ORDERS:D:01B:UN'

BGM Beginning Of Message (M1)


TagNameStTypeNotes
C002DOCUMENT/MESSAGE NAMER
1001Document name codeRan..3105 Purchase Order
220 Order
(other codes are ignored)
C106DOCUMENT/MESSAGE IDENTIFIACTIONR
1004Docuement IdentfiierRan..35The actual Order Number
1225MESSAGE FUNCTION CODERan..33 Deletion
4 Change
5 Replace
9 Original
(other codes are ignored)

Example: BGM+220+PO-123+9'

DTM DATE/TIME/PERIOD (M35)


TagNameStTypeNotes
C507DATE/TIME/PERIODM
2005Date or time or period function code qualifierMan..32 Delivery date/time, requested
4 Order date/time (required)
10 Shipment date/time, requested
37 Ship not before date/time
38 Ship not later than date/time
63 Delivery date/time, latest
64 Delivery date/time, earliest
(other codes are ignored)
2380Date or time or period valueRan..35the date
2379Date or time or period format codeRan..3102 CCYYMMDD
(other codes are forbidden)

Notes: At least Order date/time must be provided.

Example: DTM+4*20250125:102'

SG2 NAD – LOC (R99)

A group of segments identifying the parties with associated information.

NAD Name and address (M1)

A segment identifying names and addresses of the parties, in coded or clear form, and their functions relevant to the order. Identification of the seller and buyer parties is mandatory for the order message. It is recommended that where possible only the coded form of the party ID should be specified e.g. The Buyer and Seller are known to each other, thus only the coded ID is required, but the Consignee or Delivery address may vary and would have to be clearly specified, preferably in structured format.

TagNameStTypeNotes
3035PARTY FUNCTION CODE QUALIFIERMan..3PD Purchaser's department buyer
VN Vendor (required)
BY Buyer (required)
MF Manufacturer
ST Ship to ()
SF Ship from (
)
CN Consignee ()
UC Ultimate consignee (
)
FW Freight Forwarder
C082PARTY IDENTIFICATION DETAILSR
3039Party identifierMan..35
1131Code list identification codeRan..35100 Enhanced party identification
3055Code list responsible agency codeRan..392 Assigned by buyer or buyer's agent (other codes are forbidden)
C058NAME AND ADDRESSXNot used
C080PARTY NAMER
3036Party NameMan..35
C059STREETA
3042Street and number or post office box identifierMan..35
3042Street and number or post office box identifierCan..35
3164CITY NAMEAan..35
C819COUNTRY SUB-ENTITY DETAILSXNot used
3251POSTAL IDENTIFICATION CODEAAn..17
3207COUNTRY NAME CODEAAn..3Please use ISO 3166-1 alpha-2

Notes:

  • For entities marked (*) a subsequent LOC–Segment is required.
  • If Ultimate Consignee and Consignee are provided, the Order will be processed as a request for a drop-shipment/direct-delivery

Example: NAD+SE+SELLER1234

SG2 NAD - LOC

LOC Name and address (D99)

A segment giving more specific location information of the party specified in the NAD segment e.g. internal site/building number.

TagNameStTypeNotes
3227LOCATION FUNCTION CODE QUALIFIERMan..3218 Entity Location (other codes will be skipped)
C517LOCATION IDENTIFICATIONR
3225Location name codeRan..25Only UN/LOCODES are allowed (eg. DEHAM)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used
3224Location namexAn…256Not used

Example: LOC+218+DEHAM’

SG12 TOD – LOC (A5)

A group of segments indicating the terms of delivery for the whole order.

TOD Terms of delivery or transport (M1)

A segment identifying the delivery terms to be used e.g. UN

INCOTERMS code could be used to specify the delivery terms.

TagNameStTypeNotes
4055DELIVERY OR TRANSPORT TERMS FUNCTION CODERan..35 Transport condition(other codes are ignored)
4215TRANSPORT CHARGES PAYMENT METHOD CODEXan..3Not used
C100TERMS OF DELIVERY OR TRANSPORTR
4053Delivery or transport terms description codeRan..3Eg. FOB, DAP, DDP
1131Code list identification codeRan..17106 Incoterms (other codes are ignored)
3055Code list responsible agency codeRan..36 UN/ECE (United Nations - Economic Commission for Europe)(other codes are ignored)

Notes:

Example: TOD+5++FOB:106:6’

SG12 TOD - LOC

LOC Name and address (R2)

A segment identifying locations relevant to the delivery terms specified in the TOD segment.

TagNameStTypeNotes
3227LOCATION FUNCTION CODE QUALIFIERMan..31 Place of terms of delivery (other codes will be skipped)
C517LOCATION IDENTIFICATIONR
3225Location name codeRan..25Only UN/LOCODES are allowed (eg. DEHAM)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used
3224Location namexAn…256Not used

Example: LOC+1+DEHAM’

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58 R200000

A group of segments providing details of the individual ordered items. This segment group may be repeated to give sub-line details.

LIN Line item M1

A segment identifying the line item by the line number and configuration level, and additionally, identifying the product or service ordered. Other product identification numbers e.g. Buyer product number, etc. can be specified within the following PIA segment.

TagNameStTypeNotes
1082LINE ITEM IDENTIFIERRan..6Count starting from 1
1229ACTION REQUEST/NOTIFICATION DESCRIPTION CODEXan..3Not used
C212ITEM NUMBER IDENTIFICATIONR
7140Item identifierRan..35
7143Item type identification codeRan..3IN Buyer's item number
EN International Article Numbering Association (EAN)
SK SKU (Stock keeping unit)
UP UPC (Universal product code)
(other codes are not supported in this segment)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeRan..392 Assigned by buyer or buyer's agent (other codes are ignored)
C829SUB-LINE INFORMATIONO
5495Sub-line indicator codeM1 Sub-line information
2 Subordinate sub-line information
1082Line item identifierDMust be used if 5495 = 1, LINE ITEM IDENTIFIER of associated base item must be provided here

Notes:

  • For additional specification, please use the following PIA Segment.
  • If Subitems are used, the information given with the base item (eg. base itemnumber / color / size / batch) is applied to the subitems, if not overridden

Example: LIN+2++SKU1234:SK::92+1:1’ (is subline item of LIN+1)

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58

PIA Additional product id (O25)

A segment providing either additional identification to the product specified in the LIN segment (e.g. Harmonized System number), or provides any substitute product identification.

TagNameStTypeNotes
4347PRODUCT IDENTIFIER CODE QUALIFIERMan..31 Additional identification (other codes will be skipped)
C212ITEM NUMBER IDENTIFICATIONM
7140Item identifierRan..35
7143Item type identification codeRan..3IN Buyer's item number
EN International Article Numbering Association (EAN)
SK SKU (Stock keeping unit)
UP UPC (Universal product code)
VN Vendor item number
BO Buyer's colour
NB Batch number
HS Harmonised system
IZ Buyer's size code
ST Style number
PL Purchaser's order line number
SG Standard group of products (mixed assortment)
SN Serial number
(other codes are not supported in this segment)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeRan..392 Assigned by buyer or buyer's agent (other codes will be skipped)

Notes:

Example: PIA+1+90283000:HS::92’

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58

IMD Item description (O99)

A segment for describing the product or service being ordered as well as product characteristic. This segment should be used for products or services that cannot be fully identified by a product code or article number.

TagNameStTypeNotes
7077DESCRIPTION FORMAT CODERan..3F Free-form (other codes will be skipped)
C272ITEM CHARACTERISTICR
7081Item characteristic codeRan..3511 Customs specifications
35 Colour
98 Size
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeRan..392 Assigned by buyer or buyer's agent (other codes will be skipped)
C273ITEM DESCRIPTIONR
7009Item description codeXan..17Not used
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used
7008Item descriptionRan..256

Notes:

Example: IMD+F+35::92+:::BEIGE’

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58

MEA Measurements (O99)

A segment enabling the physical measurements of the ordered item to be specified where this is required for full identification of the product. Any measurements must refer to the product in its unpacked form e.g. thickness of plastic film, length, weight, etc.

TagNameStTypeNotes
6311MEASUREMENT PURPOSE CODE QUALIFIERMan..3WT Weights
VOL Volume
C502MEASUREMENT DETAILSDIf 6311 = WT
6313Measured attribute codeRan..3G Gross weight
N Actual net weight
AAA Unit net weight
AAB Unit gross weight
(other codes will be skipped)
C174VALUE/RANGER
6411Measurement unit codeMan..3MTQ cubic metre (only allowed if 6311 = VOL)
KGM kilogram (only allowed if 6311 = WT)
from UN/ECE REC 20
(other codes will be skipped)
6314Measurement valueRan..18Use decimal point

Notes:

Example: MEA+WT+G+KGM:580.59’

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58

QTY Quantity (A99)

A segment identifying the product quantities e.g. ordered quantity.

TagNameStTypeNotes
C186QUANTITY DETAILSM
6063Quantity type code qualifierMan..321 Ordered quantity
(other codes will be skipped)
6060QuantityMan..35
6411Measurement unit codeRan..3EA Each
SET Set
NPR Pair
from UN/ECE REC 20
(other codes will be skipped)

Notes:

Example: QTY+21

SG28 LIN - PIA - IMD - MEA - QTY - DTM - SG51 - SG58

MEA Measurements (O99)

A segment enabling the physical measurements of the ordered item to be specified where this is required for full identification of the product. Any measurements must refer to the product in its unpacked form e.g. thickness of plastic film, length, weight, etc.

TagNameStTypeNotes
6311MEASUREMENT PURPOSE CODE QUALIFIERMan..3WT Weights
VOL Volume
C502MEASUREMENT DETAILSDIf 6311 = WT
6313Measured attribute codeRan..3G Gross weight
N Actual net weight
AAA Unit net weight
AAB Unit gross weight
(other codes will be skipped)
C174VALUE/RANGER
6411Measurement unit codeMan..3MTQ cubic metre (only allowed if 6311 = VOL)
KGM kilogram (only allowed if 6311 = WT)
from UN/ECE REC 20
(other codes will be skipped)
6314Measurement valueRan..18Use decimal point

Notes:

Example: MEA+WT+G+KGM:580.59’

DTM DATE/TIME/PERIOD (O35)

A segment specifying date/time/period details relating to the line item only.

TagNameStTypeNotes
C507DATE/TIME/PERIODM
2005Date or time or period function code qualifierMan..32 Delivery date/time, requested
10 Shipment date/time, requested
37 Ship not before date/time
38 Ship not later than date/time
63 Delivery date/time, latest 64 Delivery date/time, earliest(other codes are ignored)
2380Date or time or period valueRAn..35The date
2379Date or time or period format codeRan..3102 CCYYMMDD (other codes are forbidden)

Notes: Use if delivery or shipment times differ from those specified on order level, otherwise don’t use this segment

Example: DTM+2:20250125:102’

SG34 (O99)

A group of segments identifying the packaging, physical dimensions, and marks and numbers for goods referenced in the line item.

PAC Package (M1)

A segment specifying the number of packages and the physical type of packaging for the line item e.g. pallet type.

TagNameStTypeNotes
7224PACKAGE QUANTITYRn..8
C212PACKAGING DETAILSXNot used
C202PACKAGE TYPERan..35
7065Package type description codeRan..3CT Carton
from UN/ECE REC 20
(other codes will be skipped)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used

Notes:

Example: PAC+150++CT’

SG34

MEA Measurements (O5)

A segment specifying physical measurements of packages described in the PAC segment e.g. cube or gross weight.

This Segment is dedicated to provide details on the required physical dimensions of the packages.

TagNameStTypeNotes
6311MEASUREMENT PURPOSE CODE QUALIFIERMan..3PD Physical dimensions (product ordered)
(other codes will be skipped)
C502MEASUREMENT DETAILSR
6313Measured attribute codeRan..3HT Height dimension
WD Width dimension
LN Length dimension
(other codes will be skipped)
C174VALUE/RANGER
6411Measurement unit codeMan..3MTR metre
from UN/ECE REC 20 (other codes will be skipped)
6314Measurement valueRan..18Use decimal point

Notes:

Example: MEA+PD+HT+MTR:0.60’ (60 cm package height required)

SG39 NAD – LOC (O999)

A group of segments identifying the parties with associated information, relevant to the line item only.

NAD Name and address (M1)

A segment identifying names and addresses of the parties, in coded or clear form, and their functions relevant to the order. Identification of the seller and buyer parties is mandatory for the order message. It is recommended that where possible only the coded form of the party ID should be specified e.g. The Buyer and Seller are known to each other, thus only the coded ID is required, but the Consignee or Delivery address may vary and would have to be clearly specified, preferably in structured format.

TagNameStTypeNotes
3035PARTY FUNCTION CODE QUALIFIERMan..3PD Purchaser's department buyer
MF Manufacturer
ST Ship to ()
SF Ship from (
)
CN Consignee ()
UC Ultimate consignee (
)
C082PARTY IDENTIFICATION DETAILSR
3039Party identifierMan..35
1131Code list identification codeRan..35100 Enhanced party identification
3055Code list responsible agency codeRan..392 Assigned by buyer or buyer's agent (other codes are forbidden)
C058NAME AND ADDRESSXNot used
C080PARTY NAMER
3036Party NameMan..35
C059STREETA
3042Street and number or post office box identifierMan..35
3042Street and number or post office box identifierCan..35
3164CITY NAMEAan..35
C819COUNTRY SUB-ENTITY DETAILSXNot used
3251POSTAL IDENTIFICATION CODEAAn..17
3207COUNTRY NAME CODEAAn..3Please use ISO 3166-1 alpha-2

Notes:

  • For entities marked (*) a subsequent LOC–Segment is required.
  • If Ultimate Consignee and Consignee are provided, the Order will be processed as a request for a drop-shipment/direct-delivery

Example: NAD+SE+SELLER1234

SG39 NAD - LOC

LOC Name and address (D99)

A segment giving more specific location information of the party specified in the NAD segment e.g. internal site/building number.

TagNameStTypeNotes
3227LOCATION FUNCTION CODE QUALIFIERMan..3218 Entity Location
(other codes will be skipped)
C517LOCATION IDENTIFICATIONR
3225Location name codeRan..25Only UN/LOCODES are allowed (eg. DEHAM)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used
3224Location namexAn…256Not used

Example: LOC+218+DEHAM’

SG51 TOD – LOC (A5)

A group of segments indicating the terms of delivery for the line item where this is different to or not specified within the heading section.

TOD Terms of delivery or transport (M1)

A segment identifying the delivery terms to be used e.g. UN

INCOTERMS code could be used to specify the delivery terms.

TagNameStTypeNotes
4055DELIVERY OR TRANSPORT TERMS FUNCTION CODERan..35 Transport condition(other codes are ignored)
4215TRANSPORT CHARGES PAYMENT METHOD CODEXan..3Not used
C100TERMS OF DELIVERY OR TRANSPORTR
4053Delivery or transport terms description codeRan..3Eg. FOB, DAP, DDP
1131Code list identification codeRan..17106 Incoterms
(other codes are ignored)
3055Code list responsible agency codeRan..36 UN/ECE (United Nations - Economic Commission for Europe) (other codes are ignored)

Notes:

Example: TOD+5++FOB:106:6’

SG51 TOD - LOC

LOC Name and address (D2)

A segment identifying locations relevant to the delivery terms specified in the TOD segment.

TagNameStTypeNotes
3227LOCATION FUNCTION CODE QUALIFIERMan..31 Place of terms of delivery (other codes will be skipped)
C517LOCATION IDENTIFICATIONR
3225Location name codeRan..25Only UN/LOCODES are allowed (eg. DEHAM)
1131Code list identification codeXan..17Not used
3055Code list responsible agency codeXan..3Not used
3224Location namexAn…256Not used

Example: LOC+1+DEHAM’

UNS Section control (M1)

A service segment placed at the start of the summary section to avoid segment collision.

TagNameStTypeNotes
0081SECTION IDENTIFICATIONMa1S Detail/summary section separation (other codes will be skipped)

Example: UNS+S’


UNT Message trailer (M1)

A service segment ending a message, giving the total number of segments in the message (including the UNH & UNT) and the control reference number of the message.

TagNameStTypeNotes
0074NUMBER OF SEGMENTS IN A MESSAGEMn..10
0062MESSAGE REFERENCE NUMBERMan..14

Example: UNT+123811+MSG182311’


Did this page help you?