Tuesday, October 16, 2007

Edi Document Explanation

Interchange
Group
Transaction set/message
Segment
Data Element
Sub Element
An EDI document starts with the interchange envelope. The interchange envelope begins with the interchange control header(ISA, also known as the Interchange Start Access data segment) and ends with the interchange control trailer (IEA, also known as the interchange end access data segment). The ISA and IEA are the only fixed-length, fixed format EDI segments.

Inside the interchange envelop is the functional group envelope. This envelope begins with GS (group start) and ends with GE (group end).

Inside the functional group envelope contains the transaction set. The transaction set begins with ST and ends with SE

This is the specs for the ISA http://www.miscouncil.org/committees/standards/interchg.pdf

The end of the ISA segment lets us know what our segment identifier, segment terminator and element separator are. In position 104 is our element separator, 105 is our sub element separator, and 106 is our segment terminator.

Each segment is starts with 2-3 letter code that identifies it. ISA,GS, ST, are all segment identifiers. Each segment ends with a segment terminator (sometimes hex85) which is a newline. Each segment contains elements separated by an element separator. *(star) seems common.

A little more in depth on the ISA segment. It starts out with ISA (duh) then
you will see *00* which is the authorization info qualifier.
Then ISA02 is 10 spaces.
Then *00* which is the security info qualifier.
Then another ten spaces.
Then ISA05 is the Interchange Sender ID qualifier (In Americold's case this is 08) between stars
Then ISA06 which is the interchange Sender ID (Americold = 311135000T) + 5 spaces since ISA06 needs to be length 15
Next is ISA07 which is the Interchange receiver ID qualifier (we are 01)
And then ISA08 which is the Interchange receiver ID (Ours is 009262064) plus enough spaces to fill it out to 15.
Next element is ISA09 which is the Interchange Date in YYMMDD
Next element is ISA10 which is Interchange TIME in HHMM
ISA11 Interchange standards ID should be U
ISA12 Interchange version (usually 00401-00501)
ISA13 Interchange control number (9 characters)
ISA14 Ack Requested (0 is no 1 is yes)
ISA15 Test indicator (T is test, P is production)

Ok, now inside the ST segment in position 01 you have the identifying three digit number in our case its a 940. This lets us know it is a Warehouse Transfer. After that comes the control number.

Next is the W05 shipping order id
501 is set to N
502 is the your PO number
503 is your customers PO

N1 you see a lot, what follows the N1 lets you know what type of a name it is, for example ST is a ship to, SF is a ship from etc...











A common thing to see is N1

No comments: