Electronic Data Interchange
The Functional Group Header (ASC/X12)

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

This topic covers:

 

Functional Group Header in a Document

In the document, the group header is identified with the first letters "GS" 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 479 Functional Identifier Code M ID 2/2 IN Functional identifier code.  All transaction sets enveloped by the functional group must be categorized under the same identifier code.
02 142 Application Sender's Code M AN 2/15 SENDERDEPT This value identifies the sender of the group.
03 124 Application Receiver's Code M AN 2/15 RECEIVERDEPT This value identifies the receiver of the group.
04 373 Date M DT 8/8 20090419 Date the group was prepared.
05 337 Time M TM 4/8 1548 Time the group was prepared
06 28 Group Control Number M N0 1/9 1 This control number is unique to the functional group within the interchange.
07 455 Responsible Agency Code M ID 1/2 X Controlling agency is ASC/X12.
08 480 Version / Release / Industry Identifier Code M AN 1/12 005030VICS

This value indicates the implementation version that applies to the functional group structure and underlying transaction sets.  The value is subdivided as follows:

  • 1 - 3 is the version which is "005",
  • 4 - 6 is the release and subrelease which is "030", and
  • 7 - 12 is the industry or trade association which is "VICS".

 

Programmatically Reading the Functional Group Header

The following steps demonstrates how to read the group header.

Programmatically Generating the Functional Group Header

The following steps demonstrates how to generate the group header.