Copyright © 2016 eVision Page 1
Message Implementation Guideline
based on the EANCOM 1997 Guideline using
UN/EDIFACT Directories D.96A
Purchase Order Message
Version 8.4
Copyright © 2016 eVision Page 2
Revision Control
Version No. Revision Date Updated By Changes
8.0 16/12/2009 S. White Structure updated for Cross Dock Orders
8.1 29/01/2011 S. White Added RFF Segment RFF+SB (Region
Code)
8.2 04/08/2014 A. Billeschou Added RFF Segment
RFF+BO(Commitment Order Number)
8.3 01/10/2015 A. Billeschou Added EQD and HAN Segments on
Header level.
Added EQD and HAN Segments on Detail
level.
8.4 02/08/2016 C O’Reilly Added CR and MP item number type
codes.
Copyright © 2016 eVision Page 3
Notes:
1. The segments are presented in the sequence in which they appear in the message. The segment or segment group
tag is followed by the Segment Description, the Base Status (M)andatory / (C)onditional indicator, the User Status,
and the maximum number of occurrences.
2.1 (M)andatory data elements in EDIFACT segments retain their status in EANCOM, but reflected in
this document with (R)equired implying Mandatory.
2.2 Additionally, there are five types of status for data elements with a (C)onditional EDIFACT status, whether for
simple, component or composite data elements. These are listed below and can be identified when relevant by the
following abbreviations:
REQUIRED R Indicates that the entity is required and must be sent.
ADVISED A Indicates that the entity is advised or recommended.
DEPENDENT D Indicates that the entity must be sent in certain conditions, as defined by the
relevant explanatory note.
OPTIONAL O Indicates that the entity is optional and may be sent at the discretion of the user.
NOT USED N Indicates that the entity is not used and should be omitted.
Copyright © 2016 eVision Page 4
ORDERS Purchase Order Message
Introduction: A message specifying details for goods or services ordered under conditions agreed between the seller(vendor) and
the buyer(Spotlight)
Interchange Header:
Seg ID Name Req
Des
Max Use Group Repeat
C UNA Service String Advice M 1
M UNB Interchange Header M 1
Header Section:
Seg ID Name Req
Des
Max Use Group Repeat
M UNH Message Header M 1
M BGM Beginning of Message M 1
M DTM Date/Time/Period M 35
M FTX Free Text C 4
Segment Group: Name and Address M 99
M NAD Name and Address M 1
Segment Group: Reference C 10
M RFF Reference M 1
Segment Group: Contact Information C 5
M CTA Contact Information M 1
M COM Communication Contact M 5
Segment Group: Currencies C 5
M CUX Currencies M 1
Segment Group: TDT C 99
M TDT Details of Transport C 1
Segment Group: Equipment Details C 10
M EQD Equipment Details M 1
M HAN Handling Instructions C 5
Detail Section:
Seg ID Name Req
Des
Max Use Group Repeat
Segment Group: Line Item M 200000
M LIN Line Item M 1
C PIA Additional Product Id C 25
C IMD Item Description C 99
C QTY Quantity M 10
Segment Group: Price Details M 25
M PRI Price Details M 1
Segment Group: Reference M 10
M RFF Reference M 1
Segment Group: Place/Location Identification 9999
Copyright © 2016 eVision Page 5
M LOC Place/Location Identification M 1
M QTY Quantity M 1
Segment Group: Equipment Details C 10
M EQD Equipment Details M 1
M HAN Handling Instructions C 5
Section Control:
Seg ID Name Req Des Max Use Group Repeat
M UNS Section Control M 1
Summary Section:
Seg ID Name Req Des Max Use Group Repeat
M MOA Monetary Amount M 1
M CNT Control Total M 1
M UNT Message Trailer M 1
Interchange Trailer:
Seg ID Name Req Des Max Use Group Repeat
C UNE Functional Group Trailer C 1
M UNZ Interchange Trailer M 1
Copyright © 2016 eVision Page 6
Segment: UNA Service Advice String
Position: 0001
Group: Level: 0
Usage: Optional
Max Use: 1
Purpose: To define the characters selected for use as delimiters in the rest of the interchange that follows.
Example:
UNA:+.? '
Data Element Summary
Data
Element
Component
Element
Name Attributes
M COMPONENT DATA ELEMENT
SEPARATOR
M an..1
M DATA ELEMENT SEPARATOR M an..1
M DECIMAL MARK M an..1
M RELEASE INDICATOR M an..1
M RESERVED FOR FUTURE USE M an..1
M SEGMENT TERMINATOR M an..1
Copyright © 2016 eVision Page 7
Segment: UNB Interchange Header
Position: 0002
Group: Level: 0
Usage: Mandatory
Max Use: 1
Purpose: To start, identify and specify an interchange.
Example:
UNB+UNOA:3+9320136111113:ZZ+9334358000001:ZZ+20080611:1101+902201'
Data Element Summary
Data
Element
Component
Element
Name Attributes Data
type
M S001 SYNTAX IDENTIFIER Identification of the agency controlling the
syntax and indication of syntax level.
M
0001 Syntax identifier
Coded identification of the agency
controlling a syntax and syntax level used
in an interchange.
UNOA
M an..1
0002 Syntax version number Version number of the syntax identified in
the syntax identifier (0001).
3
M an..1
M S002 INTERCHANGE SENDER
Identification of the sender of the
interchange.
Spotlight EDI GLN
0004 Sender Identification Name or coded representation of the
sender of a data interchange.
ZZ
M an..1
0007 Partner Identification Code Qualifier
Qualifier referring to the source of codes
for the identifiers of interchanging
partners.
M an..4
M S003 INTERCHANGE RECICIPIENT
Identification of the recipient of the
interchange.
Supplier EDI GLN
0010 Recipient Identification
Name or coded representation of the
recipient of a data interchange.
ZZ
M an..35
0007 Partner Identification Code Qualifier
Qualifier referring to the source of codes M an..35
Copyright © 2016 eVision Page 8
for the identifiers of interchanging
partners.
M S004 DATE/TIME OF PREPARATION
Date/time of preparation of the
interchange.
0017 Date Of Preparation
Local date when an interchange or a
functional group was prepared.
YYMMDD
M an..35
0019 Time of preparation Local time of day when an interchange or
a functional group was prepared.
HHMM
M an..4
M 0020 INTERCHANGE CONTROL
REFERENCE Unique reference assigned by the sender
to an interchange.
M an..14
C 0035 TEST INDICATOR 1 indicates test Message, blank indicates
production message.
C an..1
Copyright © 2016 eVision Page 9
Segment: UNH Message Header
Position: 0010
Group:
Level: 0
Usage: Mandatory
Max Use: 1
Purpose: A service segment starting and uniquely identifying a message. The message type code for the Purchase
order message is ORDERS.
Example:
UNH+902201+ORDERS:D:96A:UN:EAN008'
Data Element Summary
Data
Element
Component
Element
Name Attributes Data
type
M 0062 MESSAGE REFERENCE NUMBER
Unique message reference assigned by the
sender. Senders unique message reference. Sequence number of the messages in the interchange. DE 0062 in the UNT will be exactly the same. Sender generated.
EDI message unique identifier ( EDI
control reference number)
M an..14
M S009 MESSAGE IDENTIFIER
Identification of the type, version etc. of
the message being interchanged.
M an..6
M 0065 Message type identifier
Code identifying a type of message and
assigned by its controlling agency.
ORDERS
M an..6
M 0052 Message type version number
D
M an..3
M 0054 Message type release number
96A
M an..3
M 0051 Controlling agency
UN
M an..2
M 0057 Association assigned code
EAN008
M an..6
Copyright © 2016 eVision Page 10
Segment: BGM Beginning of Message
Position: 0020
Group:
Level: 0
Usage: Mandatory
Max Use: 1
Purpose: A segment by which the sender must uniquely identify the order by means of its name and number and
when necessary its function.
Example:
BGM+220+4500010609+9'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M/U C002 DOCUMENT/MESSAGE
Identification of a type of document/message by
code or name. Code preferred.
M/U 1001 Document/message name, coded
Document/message identifier expressed in code.
220 - Order (Standalone Order)
50E – Cross docking order
C an..3
M/U 1004 DOCUMENT/MESSAGE NUMBER
Reference number assigned to the document/message by the issuer.
Spotlight Order Number
C an..35
M/U 1225 MESSAGE FUNCTION, CODED
Code indicating the function of the message.
9 - original
C an..3
Copyright © 2016 eVision Page 11
Segment: DTM Date/Time/Period
Position: 0030
Group:
Level: 1
Usage: Mandatory
Max Use: 4
Purpose: A segment specifying general dates and, when relevant, times related to the whole message. This will
specify some or all of the following dates:
Order Date
Do not deliver before
Do not deliver after
Advertise date
Delivery date requested for (prior to and including)
Planned Date for Start of Shipment
Example:
DTM+137:20080611:102'
DTM+64:20030507:102 - Not Before
DTM+63:20030516:102 - Not After
DTM+10:20030516:102 - Planned Date for Start of Shipment
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C507 DATE/TIME/PERIOD
Date and/or time, or period relevant to the
specified date/time/period type
M
M 2005 Date/time/period qualifier 137 – order date
64 – do not deliver before date
63 – do not deliver after
15 – advertise date
10 – planned date for start of shipment
M an..3
M 2380 Date/time/period
The value of a date, a date and time, a time or of a
period in a specified
M an..35
M 2379 Date/time/period format qualifier
Specification of the representation of a date, a date and time or of a period.
102 - CCYYMMDD
M an..3
Copyright © 2016 eVision Page 12
Segment: FTX Free Text
Position: 0070
Group:
Level: 1
Usage: Conditional (Optional)
Max Use: 4
Purpose: A segment with free text information, in coded or clear form, used when additional information is needed
but cannot be accommodated within other segments. Contains general comments for the response.
Example:
FTX+PUR+++ENSURE ALL PRODUCTS ARE CLEARLY MARKED
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 4451 TEXT SUBJECT QUALIFIER
Code specifying subject of a free text.
PUR Purchasing information
M an..3
N/U 4453 TEXT FUNCTION, CODED
Code specifying how to handle the text. C an..3
N/U C108 TEXT LITERAL C
4440 Free text M an..70
Copyright © 2016 eVision Page 13
Group: NAD Segment Group 2: Name and Address
Position: 0110
Group: Segment Group 2 (Name and Address)
Level: 1
Usage: Conditional (Optional)
Max Use: 99
Purpose: A group of segments identifying the parties with associated information.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0120 NAD Name and Address M 1
C 0150 Reference Group C 1
C 0210 Contact Information Group C 1
C 0280 Currencies Group C 1
Copyright © 2016 eVision Page 14
Segment: NAD Name and Address
Position: 0120 (Trigger Segment)
Group: Segment Group 2 (Name and Address) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: A segment identifying names and addresses of the parties (ship to, carrier and supplier information).
Examples:
NAD+SU+100372::92'
NAD+ST+A002::92’
NAD+CA+202367::92’
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 3035 PARTY QUALIFIER
Code giving specific meaning to a party.
SU – supplier number
ST – ship to stored code
(Blank Ship To or No ST Segment Indicates Direct
To Store)
CA – carrier number
M an..3
M C082 PARTY IDENTIFICATION DETAILS
Identification of a transaction party by code. C
M 3039 Party id, identification Code identifying a party involved in a transaction.
Supplier Number or Ship To Store Code
M an..35
N/U 1131 Code list qualifier
Identification of a code list. C an..3
M/U 3055 Code list responsible agency, coded
Code identifying the agency responsible for a code
list.
92
C an..3
C C058 NAME AND ADDRESS C
M 3124 Address Line M an..35
C 3124 Address Line C an..35
C 3124 Address Line C an..35
C 3124 Address Line C an..35
C 3124 Address Line C an..35
C C080 PARTY NAME C
M 3036 Party Name M an..35
C 3036 Party Name C an..35
C 3036 Party Name C an..35
C 3036 Party Name C an..35
C 3036 Party Name C an..35
Copyright © 2016 eVision Page 15
C C059 STREET C
M 3042 Street and number/p.o. box M an..35
C 3042 Street and number/p.o. box C an..35
C 3042 Street and number/p.o. box C an..35
C 3042 Street and number/p.o. box C an..35
C 3164 CITY NAME C an..35
C 3229 COUNTRY SUB-ENTITY IDENTIFICATION C an..9
C 3251 POSTCODE IDENTIFICATION C an..9
C 3207 COUNTRY, CODED C an..3
Copyright © 2016 eVision Page 16
Group: RFF Segment Group 3: Reference
Position: 0150
Group: Segment Group 3 (Reference)
Level: 1
Usage: Conditional (Optional)
Max Use: 10
Purpose: A group of segments for giving references and where necessary, their dates, relating to the whole message
e.g. contract number, import/export license number, reservation number. Only generate this segment under Name
and Address group for Ship To party.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0160 RFF Reference M 3
Copyright © 2016 eVision Page 17
Segment: RFF Reference
Position: 0160 (Trigger Segment)
Group: Segment Group 3 (Reference) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 3
Purpose: Contains Spotlight department information.
Example:
RFF+SD:3000'
RFF+SB:R006'
RFF+BO:4900002432 '
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C506 REFERENCE
Identification of a reference
M
M 1153 Reference qualifier
Code giving specific meaning to a reference
segment or a reference number. SD - Sales Department
SB – Sales Region
BO – Commitment Order Number
M an..3
M/U 1154 Reference number
Department name/no
Region Number
Commitment Order Number
C an..35
Copyright © 2016 eVision Page 18
Group: CTA Segment Group 5: Contact Information
Position: 0210
Group: Segment Group 5 (Contact Information)
Level: 1
Usage: Conditional (Optional)
Max Use: 10
Purpose: A group of segments to identify a person or a department to whom communication should be directed.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0220 CTA Contact Information M 1
C 0230 COM Communication Contact 5
Copyright © 2016 eVision Page 19
Segment: CTA Contact Information
Position: 0220 (Trigger Segment)
Group: Segment Group 5 (Contact Information) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: Contains Spotlight contact information.
Example:
Data Element Summary
Data
Element
Component
Element
Name Attributes
C 3139 Contact function, coded Code specifying the function of a contact (e.g. department or person). LO – Place of collection contact ZZZ – Mutually defined
C an..3
C C506 DEPARTMENT OR EMPLOYEE DETAILS
Identification of a reference
C
C 3413 Department or employee identification
Specify the department where the contact person is
working or the contact person's internal id number,
if known.
C an..17
C 3412 Department or employee identification Specify the name of the contact person
C an..35
Copyright © 2016 eVision Page 20
Segment: COM Communication Contact
Position: 0230
Group: Segment Group 5 (Contact Information) Conditional (Optional)
Level: 1
Usage: Mandatory Max Use: 1
Purpose: To identify a communication number of a department or a person to whom communication should be directed.
Example:
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C076 COMMUNICATION CONTACT Communication number of a department or employee in a specified channel.
M
M 3148 Communication number The communication number
M an..512
M 3155 Communication channel qualifier Code identifying the type of communication channel being used
TE – Telephone number
FX – Fax number
M an..3
Copyright © 2016 eVision Page 21
Group: CUX Segment Group 7: Currencies
Position: 0280
Group: Segment Group 7 (Currencies)
Level: 1
Usage: Conditional (Optional)
Max Use: 10
Purpose: To specify currencies used in the transaction and relevant details for the rate of exchange.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0290 CUX Currencies M 1
Copyright © 2016 eVision Page 22
Segment: CUX Currencies
Position: 0290 (Trigger Segment)
Group: Segment Group 7 (Currencies) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: To specify currencies used in the transaction and relevant details for the rate of exchange.
Example:
Data Element Summary
Data
Element
Component
Element
Name Attributes
C C504 CURRENCY DETAILS The usage to which a currency relates.
C
M 6347 Currency details qualifier Specification of the usage to which the currency relates. 2
M an..3
C 6345 Currency, coded Identification of the name or symbol of the monetary unit involved in the transaction.
C an..3
Copyright © 2016 eVision Page 23
Group: TDT Segment Group 9: Details of Transport
Position: 0370
Group: Segment Group 9 (Details of Transport)
Level: 1
Usage: Conditional (Optional)
Max Use: 99
Purpose: To specify the transport details such as mode of transport, means of transport, its conveyance reference number and the identification of the means of transport.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0380 TDT Details of Transport M 1
Copyright © 2016 eVision Page 24
Segment: TDT Details of Transport
Position: 0380 (Trigger Segment)
Group: Segment Group 9 (Details of Transport) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: To specify the transport details such as mode of transport, means of transport, its conveyance reference number and the identification of the means of transport.
Example:
TDT+20++:Sea'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 8051 TRANSPORT STAGE QUALIFIER
Qualifier giving specific meaning to the transport
details. 20 – first main carriage
M an..3
C 8028 CONVEYANCE REFERENCE NUMBER
Trip number assigned by the carrier M an..17
M C220 MODE OF TRANSPORT
Identification of a charge
M
C 8067 Mode of Transport, Coded
Coded method of transport used for the carriage of
the goods
C an..3
C 8066 Mode of Transport
Method of transport used for the carriage of the
goods
C an..17
Copyright © 2016 eVision Page 25
Group: EQD Segment Group 14: Equipment Details
Position: 0530
Group: Segment Group 14 (Equipment Details)
Level: 1
Usage: Conditional (Optional)
Max Use: 10
Purpose: To identify a unit of equipment.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0540 EQD Equipment Details M 1
Copyright © 2016 eVision Page 26
Segment: EQD Equipment Details
Position: 0540 (Trigger Segment)
Group: Segment Group 14 (Equipment Details) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: To identify a unit of equipment.
Example:
EQD+SPP'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 8053 EQUIPMENT QUALIFIER
Code identifying type of equipment.
SPP – Identified special pallet
M an..3
Copyright © 2016 eVision Page 27
Segment: HAN Handling Instructions
Position: 0550
Group: Segment Group 14 (Equipment Details) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 5
Purpose: To specify handling and where necessary, notify hazards.
Comments:
Notes: This segment is used to specify how dangerous goods should be handled.
Valid values for component element 4079 are “Z00”, “Z01” and “Z02”. The corresponding values for component element 4078 are “SRG Hazardous”, “SRG MPI” and “SRG MPI/Hazardous”.
Example:
HAN+Z00:183:92:SRG Hazardous'
Data Element Summary
Data
Element
Component
Element
Name Attributes
C C524 HANDLING INSTRUCTIONS M
C 4079 Handling instructions, coded
Identification of the instructions on how specified
goods, packages or containers should be handled.
C an..3
C 1131 Code list qualifier Identification of a code list.
183 – Dangerous goods packing type
C an..3
C 3055 Code list responsible agency, coded
Code identifying the agency responsible for a code
list.
92 – Assigned by buyer
C an..3
C 4078 Handling instructions
Instructions on how specified goods, packages or
containers should be handled.
C an..70
Copyright © 2016 eVision Page 28
Group: LIN Segment Group 25: Line Item
Position: 0930
Group: Segment Group 25 (Line Item)
Level: 1
Usage: Conditional (Optional)
Max Use: 200000
Purpose: A group of segments providing details of the individual ordered items.
Note: It is possible spotlight will issue a purchase order with no items to confirm with the vender that all lines on
the purchase are no longer required.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0940 LIN Line Item M 1
C 0950 PIA Additional Product Id C 25
C 0960 IMD Item Description C 99
C 0980 QTY Quantity C 10
C 1180 Segment Group: Price Details C 25
C 1240 Segment Group: Reference C 10
C 1400 Segment Group: Place/Location
Identification
C 9999
Copyright © 2016 eVision Page 29
Segment: LIN Line Item
Position: 0940 (Trigger Segment)
Group: Segment Group 25 (Line Item) Conditional (Optional)
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: 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.
Comments:
Notes: This segment is used to identify the item being ordered.
The detail section of the Purchase Order is formed by a repeating group of segments, always starting with the LIN segment.
Example:
LIN+00100++2050000002106:EN'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M/U 1082 LINE ITEM NUMBER
Serial number designating each separate item
within a series of articles. Application generated number of the count of the order lines.
C n..6
D C212 ITEM NUMBER IDENTIFICATION
Goods identification for a specified source. C
M/U 7140 Item number
Item Number EAN-13, EAN-8 or UPC-A
C an..35
M/U 7143 Item number type, coded
EN - International Article Numbering Association
C an..3
Copyright © 2016 eVision Page 30
Segment: PIA Additional Product Id
Position: 0950
Group: Segment Group 25 (Line Item) Conditional (Optional)
Level: 2
Usage: Conditional (Optional)
Max Use: 25
Purpose: 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.
Example:
PIA+1+4907812:CR::ZZZ+00100:MP::ZZZ
PIA+5+76543:VN::ZZZ’
PIA+5+SK22524:IN::ZZZ’
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 4347 PRODUCT ID. FUNCTION QUALIFIER
1 - Additional identification
5 - Product identification
M an..3
M/U C212 ITEM NUMBER IDENTIFICATION
Goods identification for a specified source. M
M/U 7140 Item number
A number allocated to a group or item. C an..35
M/U 7143 Item number type, coded
Identification of the type of item number.
CR – Contract Number
IN - Buyer’s (Spotlight) Item Number Code
VN - Supplier’s/Vendor’s Item Number/Code
C an..3
N/U 1131 Code list qualifier Identification of a code list.
C an..3
M/U 3055 Code list responsible agency, coded
ZZZ - Mutually Defined
C an..3
D C212 ITEM NUMBER IDENTIFICATION
Goods identification for a specified source. C
M/U 7140 Item number
A number allocated to a group or item. C an..35
M/U 7143 Item number type, coded
Identification of the type of item number.
MP - Product/service identification number
C an..3
N/U 1131 Code list qualifier
Identification of a code list. C an..3
M/U 3055 Code list responsible agency, coded
ZZZ - Mutually Defined
C an..3
Copyright © 2016 eVision Page 31
Segment: IMD Item Description
Position: 0960
Group: Segment Group 25 (Line Item) Conditional (Optional)
Level: 2
Usage: Conditional (Optional)
Max Use: 10
Purpose: A segment to describe an item in either an industry or free format.
Comments:
Examples:
IMD+F++:::AC STRETCHED CANVAS PANEL, 30X40CM'
Data Element Summary
Data
Element
Component
Element
Name Attributes
C 7077 Item description type, coded Code indicating the format of a description. F – Freeform
C an..3
C 7081 ITEM CHARACTERISTIC, CODED C an..3
C C273 ITEM DESCRIPTION Description of an item.
C
C 7009 Item description identification C an..17
C 1131 Code list qualifier C an..3
C 3055 Code list responsible agency, coded C an..3
C 7008 Item description Free text description
C an..35
Copyright © 2016 eVision Page 32
Segment: QTY Quantity
Position: 0980
Group: Segment Group 25 (Line Item) Conditional (Optional)
Level: 2
Usage: Conditional (Optional) Max Use: 10
Purpose: A segment identifying the product quantities e.g. ordered quantity.
Comments:
Notes: This segment is used to specify the total quantity ordered for the current line identified in the LIN
segment. If split deliveries are being used, the quantities for the split delivery are specified in segment group 33. The totals for all quantities expressed in the QTY's at segment group level must equal the value in this QTY segment.
Example:
QTY+21:67:PK'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C186 QUANTITY DETAILS
Quantity information in a transaction, qualified
when relevant.
M
M 6063 Quantity qualifier
Code giving specific meaning to a quantity.
21 – Total Order Quantity.
M an..3
M 6060 Quantity
Numeric value of a quantity.
Total Quantity Of Previous LIN Item
M n..15
C 6411 Measure unit Qualifier
C an..3
Copyright © 2016 eVision Page 33
Group: PRI Segment Group 28: Price Details
Position: 1180
Group: Segment Group 28 (Price Details)
Level: 2
Usage: Conditional (Optional)
Max Use: 25
Purpose: A group of segments identifying the relevant pricing information for the goods or services ordered.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 1190 PRI Price Details M 1
Copyright © 2016 eVision Page 34
Segment: PRI Price Details
Position: 1190 (Trigger Segment)
Group: Segment Group 28 (Price Details) Conditional (Optional)
Level: 2
Usage: Mandatory
Max Use: 2 (for each LIN segment)
Purpose: A segment to specify the price type and amount. The price used in the calculation of the line amount will
be identified as 'price'.
Example:
PRI+AAA:16.25:::12:EA Wholesale Price per 12 consumer unit is $16.25
PRI+RTP:35.00::::EA Retail price per 1 consumer unit is $35.00
Please Note:
Australian Stores :
Wholesale Price currency is AUD and excludes GST
Retail Price currency is AUD and includes GST
New Zealand Stores:
Wholesale Price currency is NZD and excludes Taxes
Retail Price currency is NZD and includes Taxes
Singapore Stores:
Wholesale Price currency is AUD and excludes GST/Taxes
Retail Price currency is SGD and includes Taxes
Data Element Summary
Data
Element
Component
Element
Name Attributes
M/U C509 PRICE INFORMATION
Identification of price type, price and related
details.
C
M 5125 Price qualifier
Identification of a type of price.
AAA - Wholesale Price Excluding GST
RTP - Retail Price Inclusive of GST
M an..3
M/U 5118 Price
The monetary value associated with a purchase or
sale of an article, product or service.
M n..15
D 5284 Unit price basis Basis on which the unit price/rate applies.
Blank assumes 1.
C n..9
D 6411 Measure unit qualifier
Indication of the unit of measurement in which
weight (mass), capacity, length,
area, volume or other quantity is expressed.
M An..3
Copyright © 2016 eVision Page 35
Group: RFF Segment Group 29: Reference
Position: 1240
Group: Segment Group 29 (Reference)
Level: 2
Usage: Conditional (Optional)
Max Use: 10
Purpose: A group of segments for giving references and where necessary, their dates, relating to the whole message
e.g. contract number, import/export license number, reservation number. Only generate this segment under Name
and Address group for Ship To party.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 1250 RFF Reference M 1
Copyright © 2016 eVision Page 36
Segment: RFF Reference
Position: 1250 (Trigger Segment)
Group: Segment Group 29 (Reference) Conditional (Optional)
Level: 2
Usage: Mandatory
Max Use: 1
Purpose: Contains Spotlight department information.
Example:
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C506 REFERENCE
Identification of a reference
M
M 1153 Reference qualifier
Code giving specific meaning to a reference
segment or a reference number.
PD – Promotion Number
M an..3
M/U 1154 Reference number
Promotion/Advertising no C an..35
Copyright © 2016 eVision Page 37
Group: LOC Segment Group 33: Place/Location Identification
Position: 1400
Group: Segment Group 33 (Place/Location Identification)
Level: 2
Usage: Mandatory
Max Use: 9999 (per LIN segment)
Purpose: A group of segments specifying destination and quantity details for consignments involving multi-
destination deliveries.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 1400 LOC Place/Location Identification M 1
C 1420 QTY Quantity M 1
Copyright © 2016 eVision Page 38
Segment: LOC Place/Location Identification
Position: 1410 (Trigger Segment)
Group: Segment Group 33 (Place/Location Identification) Conditional (Optional)
Level: 2
Usage: Mandatory
Max Use: 1
Purpose: A segment indicating the location to which part of the consignment is to be delivered.
Comments:
Notes: This segment is used to identify the location of delivery for a split delivery order.
Example:
LOC+7+340::92’
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 3227 PLACE/LOCATION QUALIFIER
Code identifying the function of a location.
7 - Place of delivery
M an..3
M/U C517 LOCATION IDENTIFICATION
Identification of a location by code or name. M
M/U 3225 Place/location identification
Identification of the name of place/location, other
than 3164 City name.
Spotlight Store Code
C an..25
3055 Code list responsible agency, coded
Code identifying the agency responsible for a code
list.
92 - Assigned By Buyer
C an..3
Copyright © 2016 eVision Page 39
Segment: QTY Quantity
Position: 1420
Group: Segment Group 33 (Place/Location Identification) Conditional (Optional)
Level: 2
Usage: Conditional (Optional)
Max Use: 1
Purpose: A segment specifying the quantity to be delivered to the identified location.
Comments:
Notes: This segment is used to indicate the delivery quantity for the delivery location specified in the
previous LOC segment. The total of all quantities specified in segment group 33 for the line, must equal the value for the total quantity detailed in the QTY segment at line level.
Example:
QTY+11:10
QTY+54:15
(Note: This will only be used where a variance to the ordered Qty is permitted)
The “11” qualifier will always be transmitted with or without the “54” qualifier, when a product is deemed
a variable qty product then the “54” qualifier will be used to specify the maximum acceptable delivery qty.
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C186 QUANTITY DETAILS M
M 6063 Quantity qualifier
Quantity information in a transaction, qualified
when relevant.
11 - Split Quantity (Mandatory)
M an..3
M 6060 Quantity
Numeric value of a quantity. M an..15
Copyright © 2016 eVision Page 40
Group: EQD Segment Group 48: Equipment Details
Position: 1870
Group: Segment Group 48 (Equipment Details)
Level: 2
Usage: Conditional (Optional)
Max Use: 10
Purpose: To identify a unit of equipment.
Segment Summary
Pos No Seg ID Name Req Des Max Use Group
Repeat
M 0540 EQD Equipment Details M 1
Copyright © 2016 eVision Page 41
Segment: EQD Equipment Details
Position: 1880 (Trigger Segment)
Group: Segment Group 48 (Equipment Details) Conditional (Optional)
Level: 2
Usage: Mandatory
Max Use: 1
Purpose: To identify a unit of equipment.
Example:
EQD+SPP'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 8053 EQUIPMENT QUALIFIER
Code identifying type of equipment.
SPP – Identified special pallet
M an..3
Copyright © 2016 eVision Page 42
Segment: HAN Handling Instructions
Position: 1890
Group: Segment Group 48 (Equipment Details) Conditional (Optional)
Level: 2
Usage: Mandatory
Max Use: 5
Purpose: To specify handling and where necessary, notify hazards.
Comments:
Notes: This segment is used to specify how dangerous goods should be handled.
Valid values for component element 4079 are “Z00”, “Z01” and “Z02”. The corresponding values for component element 4078 are “SRG Hazardous”, “SRG MPI” and “SRG MPI/Hazardous”.
Example:
HAN+Z00:183:92:SRG Hazardous'
Data Element Summary
Data
Element
Component
Element
Name Attributes
C C524 HANDLING INSTRUCTIONS M
C 4079 Handling instructions, coded
Identification of the instructions on how specified
goods, packages or containers should be handled.
C an..3
C 1131 Code list qualifier Identification of a code list.
183 – Dangerous goods packing type
C an..3
C 3055 Code list responsible agency, coded
Code identifying the agency responsible for a code
list.
92 – Assigned by buyer
C an..3
C 4078 Handling instructions
Instructions on how specified goods, packages or
containers should be handled.
C an..70
Copyright © 2016 eVision Page 43
Segment: UNS Section Control
Position: 2090
Group:
Level: 0
Usage: Mandatory
Max Use: 1
Purpose: A service segment placed at the start of the summary section to avoid segment collision.
Comments:
Notes: This segment is used to separate the detail and summary sections of the ORDERS message.
Example : UNS+S'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 0081 SECTION IDENTIFIER
A character identifying the next section in a
message.
M a1
Copyright © 2016 eVision Page 44
Segment: MOA Monetary Amount
Position: 2100
Group:
Level: 1
Usage: Mandatory
Max Use: 1
Purpose: A segment to specify a monetary amount.
Comments:
Notes:
Example:
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C516 MONETARY AMOUNT Amount of goods or services stated as a monetary amount in a specified currency.
M
M 5025 Monetary amount type qualifier Indication of type of amount
M an..3
C 5004 Monetary amount Number of monetary units
C n..18
C 6345 Currency, coded Identification of the name or symbol of the monetary unit involved in the transaction.
M an..3
Copyright © 2016 eVision Page 45
Segment: CNT Control Total
Position: 2110
Group:
Level: 1
Usage: Mandatory Max Use: 1
Purpose: A segment by which control totals may be provided by the sender for checking by the
receiver.
Comments:
Notes: This segment is used to provide message control totals.
Example:
CNT+2:4' There are four LIN segments in the current message.
Data Element Summary
Data
Element
Component
Element
Name Attributes
M C270 CONTROL
Control total for checking integrity of a message or
part of a message.
M
M 6069 Control qualifier
Determines the source data elements in the
message which forms the basis for
6066 Control value.
2 -Total Number of LIN Segments In This
Message
M an..3
M 6066 Control value
Value obtained from summing the values specified
by the Control Qualifier
throughout the message (Hash total).
Actual LIN Segment Count
M n..18
Copyright © 2016 eVision Page 46
Segment: UNT Message Trailer
Position: 2160
Group:
Level: 0
Usage: Mandatory
Max Use: 1
Purpose: A service segment ending a message, giving the total number of segments in the message and the control
reference number of the message.
Comments:
Notes: The UNT segment is a mandatory UN/EDIFACT segment. It must always be the last segment in the message.
Example:
UNT+48+ME000001'
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 0074 NUMBER OF SEGMENTS IN A MESSAGE
Control count of number of segments in a
message.
M n..6
M 0062 MESSAGE REFERENCE NUMBER
Unique message reference assigned by the sender. The message reference number detailed here should equal the one specified in the UNH segment.
M an..14
Copyright © 2016 eVision Page 47
Segment: UNZ Interchange Trailer
Position: 2160
Group:
Level: 0
Usage: Mandatory
Max Use: 1
Purpose: This is the last segment in the interchange.
Example:
UNZ+1+001000062’
Data Element Summary
Data
Element
Component
Element
Name Attributes
M 0036 INTERCHANGE CONTROL COUNT
Total number of messages in this interchange. M n..6
M 0020 INTERCHANGE CONTROL REFERENCE Unique message reference assigned by the sender. The message reference number detailed here should
equal the one specified in the UNB segment.
M an..14
Copyright © 2016 eVision Page 48
Sample CPO Order with region code
UNA:+.? '
UNB+UNOA:3+9320136000004T:ZZ+9334358000001:ZZ+101019:1855+27902656++++1++1' UNH+27902656+ORDERS:D:96A:UN:EAN008'
BGM+50E+3300000414+9'
DTM+137:20101019:102'
DTM+63:20101026:102'
DTM+64:20101019:102'
NAD+SU+100803::92'
NAD+ST+DS60::92'
RFF+SD:016'
RFF+SB:R006' < Region Code = R006
RFF+BO:4900002432'
CTA+ZZZ'
COM+ph (03) 96754400:TE' COM+fax (03) 93696147:FX'
CUX+2:AUD'
LIN+1++9320200232768:EN'
PIA+5+80159758:IN::ZZZ'
IMD+F++:::COMING UP ROSES DAISY, MUSTRD, 112CM'
QTY+21:40:MTR'
PRI+AAA:3.2:::1:MTR'
LOC+7+S052::92'
QTY+11:8'
LOC+7+S084::92'
QTY+11:8' LOC+7+S104::92'
QTY+11:24'
LIN+2++9320200232751:EN'
PIA+5+80159759:IN::ZZZ'
IMD+F++:::COMING UP ROSES DAISY, PINK, 112CM'
QTY+21:136:MTR'
PRI+AAA:3.2:::1:MTR'
LOC+7+S052::92'
QTY+11:8'
LOC+7+S084::92'
QTY+11:104'
LOC+7+S104::92' QTY+11:24'
LIN+3++9320200232744:EN'
PIA+5+3368:VN::ZZZ'
PIA+5+80159863:IN::ZZZ'
IMD+F++:::CHRISTMAS SANTA SHEER, WHITE, 150CM'
QTY+21:130:MTR'
PRI+AAA:2.9:::1:MTR'
LOC+7+S052::92'
QTY+11:10'
LOC+7+S084::92'
QTY+11:100' LOC+7+S104::92'
QTY+11:20'
LIN+4++9320200232720:EN'
Copyright © 2016 eVision Page 49
PIA+5+3036:VN::ZZZ'
PIA+5+80159866:IN::ZZZ'
IMD+F++:::PROVINCIAL SWIRL, MELON, 112CM'
QTY+21:136:MTR'
PRI+AAA:2.5:::1:MTR'
LOC+7+S052::92' QTY+11:8'
LOC+7+S084::92'
QTY+11:104'
LOC+7+S104::92'
QTY+11:24'
LIN+5++9320200226842:EN'
PIA+5+2966:VN::ZZZ'
PIA+5+80160288:IN::ZZZ'
IMD+F++:::RED HOT POPLIN, FLORAL, 112CM'
QTY+21:120:MTR'
PRI+AAA:2.95:::1:MTR'
LOC+7+S052::92' QTY+11:12'
LOC+7+S084::92'
QTY+11:84'
LOC+7+S104::92'
QTY+11:24'
LIN+6++9320200226835:EN'
PIA+5+2965:VN::ZZZ'
PIA+5+80160289:IN::ZZZ'
IMD+F++:::RED HOT POPLIN, GEO, 112CM'
QTY+21:60:MTR'
PRI+AAA:2.95:::1:MTR' LOC+7+S052::92'
QTY+11:12'
LOC+7+S084::92'
QTY+11:24'
LOC+7+S104::92'
QTY+11:24'
UNS+S'
MOA+86:1811.20:AUD'
CNT+2:6'
UNT+88+27902656'
UNZ+1+27902656'