Table of Contents

Search

  1. Preface
  2. Libraries for Industry Standards
  3. Using Libraries
  4. Descriptions of the Libraries
  5. Generate Library Objects

Libraries Guide

Libraries Guide

X12 Message Structure

X12 Message Structure

The X12 standard defines the structure of X12 messages.
A valid X12 message is made up of the following layers:
  • Interchange. The outer layer that wraps the entire X12 message.
  • Functional group. The middle layer that wraps one or more transaction sets.
  • Transaction set. The inner layer that contains the data.
Each transaction set contains a header, one or more data segments, and a trailer. A transaction set might contain data such as a purchase order, an invoice, or a statement of account.
The following example illustrates an X12 Vessel Content Details transaction set. In this example, segments are delimited by tildes (~) and data elements are delimited by asterisks (*).
ST*109*0001~B4*15*0*2*19960515*1424*Statu*Equi*Equipment*D*XXXX* Location Identifier*A*3~N9*01*Reference Identification* Free-form Description*19960515*1424*01*01^Reference Identification^01^ Reference Identification^01^Reference Identification~Q2*X*XX*19960515* 19960515*19960515*10045*21392*A*Flight/Voy*01*Reference Identification* B*Vessel Name*10691*B*E~V9*AAD*Event*19960515*1424*City Name*XX*XX*001* XXXXXX*25946*Tr*Free-Form Message*01*25878*XXXXXX*717*437*272*2457* 12935~R4*1*A*Location Identifier*Port Name*XX*Terminal Name*Pier*XX~DTM* 001*19960515*1424*01*CC*Date Time Period~V9*AAD*Event*19960515*1424* City Name*XX*XX*001*XXXXXX*4685*Tr*Free-Form Message*01*13647*XXXXXX*813* 605*52*20035*12104~N9*01*Reference Identification*Free-form Description* 19960515*1424*01*01^Reference Identification^01^Reference Identification^ 01^Reference Identification~SG*2*001*XX*19960515*1424*01~SE*11*0001~

0 COMMENTS

We’d like to hear from you!