Loading

Interchange Definition

​​​​​​​V1.4 30 SEP 2004

An interchange can be defined as a "communication between partners in the form of a structured set of messages and service segments starting with an interchange control header and ending with an interchange control trailer".

NOTE: For use with the Integrated Cargo System an​ interchange may not exceed 10MB in size.

In other words an interchange has three characteristics:

  • it is sent from one party to one (or more) other parties as a complete set;
  • it is a structured set of messages in the UN/EDIFACT format which are separated by the defined service segments; and
  • it starts with the service segment interchange control header (UNB) and ends with the service segment interchange control trailer (UNZ).

The overall structure of an interchange can be depicted as follows:

UNA- Service String Advice(Conditional)
UNB - Interchange Header(Mandatory)
UNH - Message Header(Mandatory)
Data Segments as defined in message directory
UNT - Message Trailer(Mandatory)
UNZ - Interchange Trailer(Mandatory)

Note that an interchange may contain multiple messages.

Interchange Service Segments

This section defines those inter​​change service segments that are used in the ICS. Please note that the specific message service segments of UNH (Message Header) and UNT (Message Trailer) are defined for each message used in the ICS and are detailed in the section concerning that message.

UNS Section Separator

The UNS segment is defined as a service segment used to separate Header, Detail and Summary sections of a message, where necessary, to avoid ambiguities in the message segment content. This segment contains one data element. When used to delimit the header section from the detail section, it contains the value "D", and when used to delimit the detail section from the summary section, it contains the value "S". Where the UNS segment is required in an ICS message its usage is defined in the section concerning that message.

UNA Service String Advice

The function of the UNA segment is to define the characters selected for use as delimiters and indicators in the rest of the interchange that follows.

The UNA Service String Advice has a mandatory fixed length of 9 characters. The first three characters are UNA, immediately followed by the six characters that will replace the standard delimiters and indicators in the rest of the interchange.

The ICS uses EDIFACT version 3 syntax rules and hence the inclusion of the UNA segment in EDI interchanges is mandatory to ensure full compliance with the EDIFACT standard.

Consequently the Department adds the UNA segment to all outgoing EDI interchanges.

The Department accepts incoming interchanges with or without UNA segment. It is recommended that software developers include the UNA segment in all interchanges as development schedules allow. The Department will make UNA segments mandatory at some point in the future, preferably after all software developers have introduced the change.

This segment is made up of 'UNA' followed by the six characters below.

ElementFormatValue
COMPONENT DATA ELEMENT SEPARATORM an..1:
DATA ELEMENT SEPARATORM an..1+
DECIMAL NOTATIONM an..1.
RELEASE INDICATORM an..1?
REPETITION SEPARATOR (NOT USED)M an..1
SEGMENT TERMINATORM an..1'

UNICSA Interchange Control Structure- (CTLSET)

Introduction:

The Service String Advice, UNA, and the service segments UNB to UNZ shall appear in the below stated order in an interchange.

Notes:

v2.2 (7 November 2002)

Pos.
No.
Seg.
ID
Req.
Name
Group
Des.
Notes and
Max.Use
RepeatComments
M0005 UNA Service String AdviceM1
M0010 UNB Interchange HeaderM1
M0050 UNZ Interchange TrailerM1
Segment: UNA Service String Advice
Position:0005
Group:
Level:0
Usage:Mandatory
MaxUse:1
Data Element Summary
Data
Element
Component
Element
NameAttributes
M0101COMPONENT DATA ELEMENT SEPARATORM1an1
M0102DATA ELEMENT SEPARATORM1an1
M0103DECIMAL MARKM1an1
M0104RELEASE CHARACTERM1an1
M0105RESERVED FOR FUTURE USEM1an1
M0106SEGMENT TERMINATORM1an1
Segment: UNB Interchange Header
Position:0010
Group:
Level:0
Usage:Mandatory
MaxUse:1
Data Element Summary
Data
Element
Component
Element
NameAttributes
MS001SYNTAX IDENTIFIERM1
M
0001
Syntax identifier
Ma4

UNOCUN/ECE level C
M
0002
Syntax version numberMn1
3
MS002INTERCHANGE SENDERM1
M
0004
Sender identificationMan..35
Interchange Creator
X
0007
Partner identification code qualifierCan..4

0008
Address for reverse routingCan..14
Interchange Owner
MS003INTERCHANGE RECIPIENTM1
M
0010
Recipient identification
Man..35
Interchange Recipient Identification
X
0007
Partner identification code qualifierCan..4
X
0014
Routing addressCan..14
MS004DATE AND TIME OF PREPARATIONM1
M
0017
Date of preparationMn6
Transmission Date
M
0019
Time of preparationMn4
Transmission Time
M0020INTERCHANGE CONTROL REFERENCEM1an..14
Interchange Control Reference Number
XS005RECIPIENTS REFERENCE PASSWORDC1
X
0022
Recipient reference/passwordMan..14
X
0025
Recipient reference/password qualifierCan2
X0026APPLICATION REFERENCEC1an..14
X0029PROCESSING PRIORITY CODEC1a1
0031ACKNOWLEDGEMENT REQUESTC1n1
1Requested
X0032COMMUNICATIONS AGREEMENT IDC1an..35
0035TEST INDICATORC1n1
1Interchange is a test
Segment: UNZ Interchange Trailer
Position:0050
Group:
Level:0
Usage:Mandatory
MaxUse:1
Data Element Summary
Data
Element
Component
Element
NameAttributes
M0036INTERCHANGE CONTROL COUNTM1n..6
Interchange Message Count
M0020INTERCHANGE CONTROL REFERENCEM1an..14
Interchange Control Reference Number
CTLSET (D.99B.UNICSA) November 10, 2002