Sunteți pe pagina 1din 3

Electronic Data Interchange Handout

Purpose: This document briefs about the usage of different segments with EDI terminology, focusing on ANSI X12
standard of EDI. This document doesn’t provide complete information about EDI. It is to be used as reference only.

Interchange control Header


ISA *00* *00* *01*463127937 *12*2616302611 *030102*1645*&*00403 *000000097*0*P*: ~

Sequence Data Description Occurence


ISA01 *00* Authorization Qualifier M ID 2/2
ISA02 ** Authorization Qualifier Information M AN 10/10
ISA03 *00* Security Information Qualifier which I04 M ID 2/2 (If no need we are
given in the assigning 00/if need 01)
ISA04 ** Here we define Authorization M AN 10/10
password
ISA05 *01* Interchange ID qualifier M ID 2/2 (Sender ID/Receiver ID)
Codes used in ISA 05 *Code* include:
Code Description
01 DUNS Number (Dun & Bradstreet Universal Numbering System)
02 2 - SCAC (Standard Carrier Alpha Code)
12 Phone Number
13 UCS Code
14 DUNS plus suffix
16 DUNS plus 4
17 American Bankers Association (ABA) Transit Routing Number
18 Association of American Railroads Standard Distribution Code
20 Health Industry Identification Number
32 U.S. Federal Employer Identification Number (FEIN)
ZZ Mutually Defined
Many additional codes are defined
ISA06 *463127937 * Interchange Sender ID M AN 15/15
ISA07 *12* Inter Change Receiver Phone M ID 2/2
Number
ISA08 *12*2616302611 Interchange Receiver Phone M AN 15/15
* Number ID
ISA09 *030102* Data YYMMDD M DT 6/6
ISA10 *1645* Time HHMM M TM 4/4
ISA11 *&* Repeating Terminator M 1/1
ISA12 *004020* Interchange Control Version M ID 5/6
ISA13 *0000000097* Inter Change Control Number M N0 9/9
ISA14 *0* Acknowledgement Indicator M ID 1/1
ISA15 *P* Usage Indicator (I > Information M ID 1/1
Test Data , P > Product Data)
ISA16 *: * Component Separator M AN 1/1.

Interchange Control Trailer


IEA*2*000000097~

Sequence Data Description Occurence


IEA01 *2* Number of Functional Groups existed M N0 1/6
IEA02 *0000000097* Interchange Control Number M N0 9/9

(The control number in both ISA and IEA must be equal)


Functional Group Header
GS*IN*463127937*2816302611*030102*1645*66*X*004030~

Sequence Data Description Occurence


GS01 *IN* Functional Identifier, which defines related group of Transactions M ID 2/2
GS02 *463127937* Application Sender Id M AN 2/15
GS03 *2816302611*0 Application Receiver ID M AN 2/15
GS04 *030102* Date M DT 8/8
GS05 *1645* Time M DT 4/8
GS06 *66* Group control number M N0 1/9
GS07 *X* Responsible Agency X= ANSI X12 T= TDCC M ID 1/2
GS08 *004030* Version/Release/Sub release Number M AN 1/12

Functional Group Trailer


GE*35*66~

Sequence Data Description Occurence


GE01 *35* The Functional group contains 35 Transaction M N0 1/6
GE02 *66* this tells that it belongs to the Which Functional Control it belongs to M N0 1/9.

(The identifier in both GS and GE must be equal)

Transaction Header
ST*277*07086~

Sequence Data Description Occurence


ST01 *277* Transaction Code Indicates the Transaction M ID 3/3 (Health Care
Number Information Status Notification)
ST02 *07086* Transaction Control Identifier M AN 4/9

Transaction Control Trailer


SE*10*07086~

Sequence Data Description Occurence


SE01 *10* Number Of Segments M N0 1/10
SE02 *07086* Transaction Control Identifier M AN 4/9

(The Identifier in Both ST and SE must be equal)

Important Points:

 The maximum length of ISA segment is 106 bytes.


 The maximum length of GS segment is 82 bytes.
 The maximum length of ST segment is 17 bytes.
 The maximum length of SE segment is 24 bytes.
 The maximum length of GE segment is 20 bytes.
 The maximum length of IEA segment is 21 bytes.

 The maximum number of elements in a segment should not exceed 24.


Version Representation
004022:

Number Description
004 Version Number
02 Release Number
2 Sub Release Number

004022X12068

The above sequence represents a Purchase Order (850)

The above one means that 068 committee in X12 standard has introduced 850 Transaction set.

Data Types used in EDI


Data type Description
A Alphabetic
AN Alphanumeric (string)
B Binary
CD Composite data element
CH Character
DT Date
FS Fixed length String (Deleted in X12 004010)
ID Identifier (values defined in a code list)
IV Incrementing Value
Nn Numeric (n decimal positions assumed)
N0 Numeric with 0 decimal positions assumed
PW Password
R Decimal number (real : with decimal point and sign)
TM Time

Basic tables in the Transaction Set


The Transaction set divided into 3 Tables known as

Table1/ (Header) that contains all the Information about the particular Transaction. (M)

Table2/ (Detail) that contains detail information about the Transaction. (M)

Table3/ (Summary) that contains the Summary of the Transaction. (M/O)

Terminologies

Segment Name X12 EDIFACT


Interchange Envelope ISA-IEA UNB-UNZ
Functional Group GS-GE UNG-UNE
Transaction Set ST-SE UNH-UNT

Points to remember
1. Number of maximum functional groups in a interchange envelope is 99,999.
2. Number of maximum transaction sets in a functional group is 99,999.
3. Number of maximum segments in between ST and SE (both ST and SE also Included) is 9999999999.

S-ar putea să vă placă și