UNB Segment
The UNB segment is compulsory to an EDIFACT interchange. This segment acts as the interchange header for a set of EDIFACT documents.
The UNB segment elements identify the sender and recipient of the interchange, together with the date and time that the interchange was prepared and the agency controlling the syntax of the interchange.
The following table lists the elements the UNB segment contains.
|
Element |
Purpose |
|---|---|
|
Syntax Identifier |
This mandatory element identifies both the level of the syntax and the agency controlling the syntax, for example UNOA. |
|
Syntax Version Number |
This mandatory element indicates the version number identified in the Syntax Identifier element. |
|
Sender Identification |
This mandatory element identifies the name of or a code for, the sender of the data. |
|
Identification Code Qualifier |
This optional element refers to the sources for the codes of the interchanging partner's identifiers. For example, a qualifier of ZZ indicates that the partners mutually defined the codes. |
|
Address for Reverse Routing |
This optional element contains a return address specified by the sender of the message. The recipient may want to include this address in any response messages to this sender to facilitate internal routing. |
|
Recipient Identification |
This mandatory element identifies the name of or a code for, the recipient of the data. |
|
Identification Code Qualifier |
This optional element refers to the sources for the codes of the interchanging partner's identifiers. For example, a qualifier of ZZ indicates that the partners mutually defined the codes. |
|
Routing Address |
This optional element contains the address specified by the recipient of the message that the sender is to include. The recipient uses this address for routing messages received by the sender. |
|
Date of Preparation |
This mandatory element indicates the date that the interchange was prepared. This information is in the format YYMMDD. |
|
Time of Preparation |
This mandatory element indicates the time that the interchange was prepared. This information is in the 24-hour clock format. |
|
Interchange Control Reference |
This mandatory element is a unique reference that the sender assigns to the interchange. |
|
Recipient Reference Password |
This optional element indicates the reference or password for the recipient that the partners mutually define. |
|
Recipient Reference Password/Qualifier |
This optional element indicates the qualifier for the reference or password for the recipient. |
|
Application Reference |
This optional element assigned by the sender identifies the application associated with the messages in the interchange. |
|
Processing Priority Code |
This optional element indicates the processing priority for the interchange requested from the sender. |
|
Acknowledgement Request |
This optional element the sender uses indicates a request for an acknowledgement of the interchange from the recipient. |
|
Communications Agreement Id |
This optional element indicates by name or code the type of agreement under which the interchange took place. |
|
Test Indicator |
This optional element indicates that the interchange is a test. |