UNH M 1 MESSAGE HEADER

  • Mandatory
  • Max repeat: 1
A service segment starting and uniquely identifying a message. The message type code for the Despatch advice message is DESADV.
Example:

UNH+1+DESADV:D:00A:UN'

0062
MESSAGE REFERENCE NUMBER
  • Mandatory
  • Type: an
  • Length: 0..14
Unique message reference assigned by the sender.
S009
MESSAGE IDENTIFIER
  • Mandatory
Identification of the type, version, etc. of the message being interchanged.
0065
Message type
  • Mandatory
  • Type: an
  • Length: 0..6
Code identifying a type of message and assigned by its controlling agency.
Enumeration:

DESADVDespatch advice message

Other codes are forbidden.

0052
Message version number
  • Mandatory
  • Type: an
  • Length: 0..3
Version number of a message type.
Enumeration:

DDraft version/UN/EDIFACT Directory

Other codes are forbidden.

0054
Message release number
  • Mandatory
  • Type: an
  • Length: 0..3
Release number within the current message version number.
Enumeration:

00ARelease 2000 - A

Other codes are forbidden.

0051
Controlling agency, coded
  • Mandatory
  • Type: an
  • Length: 0..3
Code identifying a controlling agency.
Enumeration:

UNUN/CEFACT

Other codes are forbidden.

BGM M 1 BEGINNING OF MESSAGE

  • Mandatory
  • Max repeat: 1
A segment for unique identification of the Despatch Advice document, by means of its name and its number.
Example:

BGM+351+123456'

C002
DOCUMENT/MESSAGE NAME
  • Required
Identification of a type of document/message by code or name. Code preferred.
1001
Document name code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the document name.
Enumeration:

351Despatch advice

Other codes are forbidden.

C106
DOCUMENT/MESSAGE IDENTIFICATION
  • Required
Identification of a document/message by its number and eventually its version or revision.
1004
Document identifier
  • Required
  • Type: an
  • Length: 0..35
To identify a document.

DTM R 2 DATE/TIME/PERIOD

  • Required
  • Max repeat: 2
Date/time/period related to the whole message. The DTM segment must be specified at least once to identify the Despatch Advice date.
Example:

DTM+137:20150515:102'

C507
DATE/TIME/PERIOD
  • Mandatory
Date and/or time, or period relevant to the specified date/time/period type.
2005
Date or time or period function code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying the function of a date, time or period.
Enumeration:

137Document/message date/time

Other codes are skipped.

2380
Date or time or period value
  • Required
  • Type: an
  • Length: 0..35
The value of a date, a date and time, a time or of a period in a specified representation.
Pattern constraint:
[0-9]{8}Example: 20161101
2379
Date or time or period format code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the representation of a date, time or period.
Enumeration:

102CCYYMMDD

Other codes are forbidden.

GRP1 C 10 RFF DTM

  • Conditional
  • Max repeat: 10
A group of segments giving references where necessary, their dates relating to the whole message, e.g. contract number.
Remarks:
Provide references primarily on a header level.

RFF M 1 REFERENCE

  • Mandatory
  • Max repeat: 1
A segment for referencing documents relating to the whole despatch advice message, e.g. purchase orders, delivery instructions, import/export license.
C506
REFERENCE
  • Mandatory
Identification of a reference.
1153
Reference function code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying a reference.
Enumeration:

COBuyers order number

Other codes are skipped.

1154
Reference identifier
  • Required
  • Type: an
  • Length: 0..25
Identifies a reference.

DTM C 1 DATE/TIME/PERIOD

  • Conditional
  • Max repeat: 1
Date/time/period from the referred document.
C507
DATE/TIME/PERIOD
  • Mandatory
Date and/or time, or period relevant to the specified date/time/period type.
2005
Date or time or period function code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying the function of a date, time or period.
2380
Date or time or period value
  • Required
  • Type: an
  • Length: 0..35
The value of a date, a date and time, a time or of a period in a specified representation.
Pattern constraint:
[0-9]{8}Example: 20161101
2379
Date or time or period format code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the representation of a date, time or period.
Enumeration:

102CCYYMMDD

Other codes are forbidden.

GRP2 R 99 NAD

  • Required
  • Max repeat: 99
A group of segments identifying names, addresses, locations, and required supporting documents relevant to the whole Despatch Advice.
Remarks:
Here comes segment group specific remarks.

NAD M 1 NAME AND ADDRESS

  • Mandatory
  • Max repeat: 1
A segment for identifying names, addresses, and their functions relevant to the whole Despatch Advice. Identification of the parties involved is recommended for the Despatch Advice message, and is to be given in the NAD segment. 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. The consignee or delivery address may vary and would have to be clearly specified, preferably in structured format.
Remarks:
Here comes segment specific remarks.
Example:

NAD+CZ+5678765::92++ZXC Consignor'

3035
PARTY FUNCTION CODE QUALIFIER
  • Mandatory
  • Type: an
  • Length: 0..3
Code giving specific meaning to a party.
Remarks:
Here comes element specific remarks.
Enumeration:

CZConsignor

BYBuyerHere comes qualifier BY specific remarks.

DPDelivery party

ZZBilaterally agreed party

Other codes are skipped.

C082
PARTY IDENTIFICATION DETAILS
  • Required
Identification of a transaction party by code.
Remarks:
Here comes composite specific remarks.
3039
Party identifier
  • Mandatory
  • Type: an
  • Length: 0..15
Code specifying the identity of a party.
1131
Code list identification code
  • Conditional
  • Type: an
  • Length: 0..3
Code identifying a code list.
Enumeration:

100Enhanced party identification

Other codes are forbidden.

3055
Code list responsible agency code
  • Conditional
  • Type: an
  • Length: 0..3
Code specifying the agency responsible for a code list.
Enumeration:

92Assigned by buyer or buyer's agent

Other codes are forbidden.

C058
NAME AND ADDRESS
  • Excluded
Unstructured name and address: one to five lines.
C080
PARTY NAME
  • Required
Identification of a transaction party by name, one to five lines. Party name may be formatted.
3036
Party name
  • Mandatory
  • Type: an
  • Length: 0..35
Name of a party.
3036
Party name
  • Conditional
  • Type: an
  • Length: 0..35
Name of a party.

GRP10 R 9999 CPS GRP11 GRP17

  • Required
  • Max repeat: 9999
A group of segments providing details of all package levels and of the individual despatched items contained in the consignment. This segment group provides the capability to give the hierarchical packing relationships. The group defines a logical top-down order structure. The lowest level package information of the hierarchy is followed by the detail product information.

CPS M 1 CONSIGNMENT PACKING SEQUENCE

  • Mandatory
  • Max repeat: 1
A segment identifying the sequence in which packing of the consignment occurs, e.g. boxes loaded onto a pallet.
Example:

CPS+123456789987654321++1'

7164
HIERARCHICAL STRUCTURE LEVEL IDENTIFIER
  • Mandatory
  • Type: an
  • Length: 0..35
To identify a level within a hierarchy structure.
7166
HIERARCHICAL STRUCTURE PARENT IDENTIFIER
  • Excluded
  • Type: an
  • Length: 0..35
To identify the next higher level in a hierarchical structure.
7075
PACKAGING LEVEL CODE
  • Conditional
  • Type: an
  • Length: 0..3
Code specifying a level of packaging.
Enumeration:

1Inner

Other codes are skipped.

GRP11 R 9999 PAC MEA

  • Required
  • Max repeat: 9999
A group of segments identifying packaging, physical dimensions, marks and numbers, quantities, date and time information, handling information and information about packing at this level.

PAC M 1 PACKAGE

  • Mandatory
  • Max repeat: 1
A segment specifying the number and type of the packages/physical units and the physical type of packaging for the despatched goods.
Example:

PAC+1'

7224
PACKAGE QUANTITY
  • Required
  • Type: n
  • Length: 0..8
To specify the number of packages.

MEA R 10 MEASUREMENTS

  • Required
  • Max repeat: 10
A segment specifying physical measurements of the packages/physical units described in the PAC segment.
Example:

MEA+AAE+ABJ+LTR:500'

6311
MEASUREMENT ATTRIBUTE CODE
  • Mandatory
  • Type: an
  • Length: 0..3
Code specifying the measurement attribute.
Enumeration:

AAEMeasurement

Other codes are skipped.

C502
MEASUREMENT DETAILS
  • Required
Identification of measurement type.
6313
Measured attribute code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the attribute measured.
Enumeration:

ABJVolume

Other codes are skipped.

C174
VALUE/RANGE
  • Required
Measurement value and relevant minimum and maximum values of the measurement range.
6411
Measurement unit code
  • Mandatory
  • Type: an
  • Length: 0..3
Code specifying the unit of measurement.
6314
Measurement value
  • Required
  • Type: an
  • Length: 0..18
To specify the value of a measurement.

GRP17 R 9999 LIN QTY GRP18

  • Required
  • Max repeat: 9999
A group of segments providing details of the individual despatched items.

LIN M 1 LINE ITEM

  • Mandatory
  • Max repeat: 1
A segment identifying the product being despatched. All other segments in the detail section following the LIN segment refer to that line item.
Example:

LIN+1++123456:SA'

1082
LINE ITEM IDENTIFIER
  • Required
  • Type: an
  • Length: 0..6
To identify a line item.
1229
ACTION REQUEST/NOTIFICATION DESCRIPTION CODE
  • Excluded
  • Type: an
  • Length: 0..3
Code specifying the action to be taken or already taken.
C212
ITEM NUMBER IDENTIFICATION
  • Required
Goods identification for a specified source.
7140
Item identifier
  • Required
  • Type: an
  • Length: 0..35
To identify an item.
7143
Item type identification code
  • Required
  • Type: an
  • Length: 0..3
Code specifying an item code.
Enumeration:

SASupplier's article number

VNVendor item number

Other codes are skipped.

QTY R 10 QUANTITY

  • Required
  • Max repeat: 10
A segment to give quantity information concerning the product.
Example:

QTY+12:200:PC'

C186
QUANTITY DETAILS
  • Mandatory
Quantity information in a transaction, qualified when relevant.
6063
Quantity type code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying the type of quantity.
Enumeration:

12Despatch quantity

Other codes are skipped.

6060
Quantity
  • Mandatory
  • Type: an
  • Length: 0..35
Alphanumeric representation of a quantity.
6411
Measurement unit code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the unit of measurement.

GRP18 A 99 RFF DTM

  • Advised
  • Max repeat: 99
A group of segments to give reference numbers and dates.

RFF M 1 REFERENCE

  • Mandatory
  • Max repeat: 1
A segment identifying documents related to the line item.
Example:

RFF+CO:1234:10'

C506
REFERENCE
  • Mandatory
Identification of a reference.
1153
Reference function code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying a reference.
Enumeration:

COBuyers order number

Other codes are skipped.

1154
Reference identifier
  • Required
  • Type: an
  • Length: 0..35
Identifies a reference.
1156
Document line identifier
  • Required
  • Type: an
  • Length: 0..6
To identify a line of a document.

DTM C 1 DATE/TIME/PERIOD

  • Conditional
  • Max repeat: 1
A segment for date/time/period relative to the referred document.
Example:

DTM+171:20150513:102'

C507
DATE/TIME/PERIOD
  • Mandatory
Date and/or time, or period relevant to the specified date/time/period type.
2005
Date or time or period function code qualifier
  • Mandatory
  • Type: an
  • Length: 0..3
Code qualifying the function of a date, time or period.
Enumeration:

171Reference date/time

Other codes are forbidden.

2380
Date or time or period value
  • Required
  • Type: an
  • Length: 0..35
The value of a date, a date and time, a time or of a period in a specified representation.
Pattern constraint:
[0-9]{8}Example: 20161101
2379
Date or time or period format code
  • Required
  • Type: an
  • Length: 0..3
Code specifying the representation of a date, time or period.
Enumeration:

102CCYYMMDD

Other codes are forbidden.

UNT M 1 MESSAGE TRAILER

  • Mandatory
  • Max repeat: 1
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.
Example:

UNT+19+1'

0074
NUMBER OF SEGMENTS IN A MESSAGE
  • Mandatory
  • Type: n
  • Length: 0..10
The number of segments in a message body, plus the message header segment and message trailer segment.
0062
MESSAGE REFERENCE NUMBER
  • Mandatory
  • Type: an
  • Length: 0..14
Unique message reference assigned by the sender.