Electronic Data Interchange
The Group Header (UN/EDIFACT)

The Group Header is the starting control segment of the group envelope.  The group header contains:

This topic covers:

 

Group Header in a Document

In the document, the group header is identified with the first letters "UNG" followed by the element separator.

The group header data stream fit into the implementation guideline defined for the group header as follows:

REF ELE NAME REQ TYPE MIN/MAX VALUE COMMENT
01 0038 Message Group Identification C AN 1/6 ID Identifier that identifies the messages or packages enveloped by the group into some particular type.
02 S006 Application Sender Identification C Composite element identifying the sender of the group.
01 0040 Application Sender Identification M AN 1/35 APPSENDER This value is the identity of the sender.  Its meaning is qualified by the associated component element 0007.
02 0007 Partner Identification Code Qualifier C AN 1/4 ZZZ This element qualifies element 0040.  The value "ZZZ" indicates that the sender identification at 0040 is mutually defined which means it only has meaning to the trading partner.
03 S007 Application Recipient Identification C Composite element identifying the receiver of the group.
01 0004 Application Recipient Identification M AN 1/35 APPRECEIVER This value is the identity of the recipient.  Its meaning is qualified by the associated component element 0007.
02 0007 Partner Identification Code Qualifier C AN 1/4 ZZZ This element qualifies element 0004.  The value "ZZZ" indicates that the sender identification at 0004 is mutually defined which means it only has meaning to the trading partner.
04 S004 Date and Time of Preparation C Composite element indicating the date and time the group was prepared.
01 0017 Date M N 8/8 20090419 The date the group was prepared.
02 0019 Time M N 4/4 1230 The time the group was prepared.
05 0048 Group Reference Reference C AN 1/14 1 Unique group reference number assigned to the group.  This number is unique to the group within the interchange.
06 0051 Controlling Agency C AN 1/3 UN Controlling Agency (UN/CEFACT)
07 S008 Message Version C Composite element indicating the version of the message to use.
01 0052 Message Version Number M AN 1/3 D The major of the message.
02 0054 Message Release Number M AN 1/3 08A The release of the message.
03 0057 Association Assigned Code C AN 1/6
08 0058 Application Password C AN 1/14

 

Programmatically Reading the Group Header

The following steps demonstrates how to read the group header.

Programmatically Generating the Group Header

The following steps demonstrates how to generate the group header.