997 Functional Acknowledgment ANSI X.12 Version 5010 *** HEADER AREA *** SEG ID
SEGMENT NAME
REQ DES
MAX USE
ISA GS ST AK1
Interchange Control Header Functional Group Header Transaction Set Header Functional Group Response Header
M M M M
1 1 1 1
O
1
O O M
1 99 1
LOOP REPEAT
*** DETAIL AREA ***
AK2 AK3 AK4 AK5
Loop Id - AK2 Transaction Set Response Header Loop Id - AK3 Data Segment Note Data Element Note Transaction Set Response Trailer
>1 >1
*** SUMMARY AREA ***
AK9 SE GE IEA
Function Group Response Trailer Transaction Set Trailer Functional Group Trailer Interchange Control Trailer
M M M M
1 1 1 1
NOTE: The Mandatory and Optional indicators are in accordance with the segment's requirement within the ANSI standards. All segments shown are required by McLane.
ISA Interchange Control Header ISA*00* *00* *01*SENDERS ID*01*RECEIVERS ID*YYMMDD*HHMM*U*00501*123456789* 0*P*> January 2008
McLane Electronic Data Interchange
997 - 1
McLane Electronic Data Interchange Element Element # ISA01 I01 ISA02 I02 ISA03 I03 ISA04 I04 ISA05 I05
Description
Qualifiers/Definitions
Authorization Information Qualifier Authorization Information
Security Information Qualifier Security Information Interchange ID Qualifier
Interchange ID Qualifier
Leave Blank 00 No Security Information Present Leave Blank 01 DUNS Number 14 DUNS Number + 4 char suffix ZZ Mutually Defined Sender’s Identification Number
Interchange Receiver ID
01 DUNS Number 16 DUNS + 4 char suffix Receiver’s Identification Number
Interchange Date
YYMMDD
Interchange Time
HHMM
Interchange Control Standards Identifier Interchange Control Version Number Interchange Control Number
U X12
Acknowledgment Requested Test Indicator Subelement Separator
00501 Version 4, Release 1 Control Number assigned by the sender 0 Acknowledgment Requested P Production T Test > EBCDIC - 6E ASCII - 3E
Length Min/Max 2/2 ID 10/10 AN 2/2 ID 10/10 AN 2/2 ID 15/15 AN 2/2 ID 15/15 AN 6/6 DT 4/4 TM 1/1 ID 5/5 ID 9/9 N0 1/1 ID 1/1 ID 1/1
Note: Data Element ISA14 does not refer to the functional acknowledgment (transaction set 997). McLane requires the use of the Functional Acknowledgment (997) in all cases.
The following data element attributes are used in this document. Attribute Type Numeric Decimal Number Identifier String
997 - 2
Symbol Nn (n indicates decimal postions) R ID AN
Attribute Type ISA Date All other dates Time Binary Fixed-Length String
McLane Electronic Data Interchange
Symbol DT (YYMMDD) DT (CCYYMMDD) TM (HHMMSSd..d) B FS
January 2008
McLane Electronic Data Interchange
GS Function Group Header GS*IN*SENDERS ID*RECEIVERS ID*CCYYMMDD*HHMM*123456789*X*005010 Element Description Qualifiers/Definitions Element # GS01 Functional Identifier Code FA Functional Acknowledgment 479 GS02 Application Sender's Code Sender's Code 142 GS03 Application Receiver's Code Receiver’s Code 124 GS04 Group Date CCYYMMDD 373 GS05 Group Time HHMM 337
Length Min/Max 2/2 ID 2/15 AN 2/15 AN 8/8 DT 4/8 TM
GS06 28 GS07 455 GS08 480
1/9 N0 1/2 ID 1/12 AN
Group Control Number Responsible Agency Code Version/Release/Industry Identifier Code
ST Transaction Set Header ST*997*000000123 Element Description Element # ST01 Transaction Set Identification 143 Code ST02 Transaction Set Control Number 329 AK1 Functional Group Response Header AK1*PO*000000001 Element Description Element # AK101 Functional Identification Code 479 AK102 Group Control Number 28 AK2 Transaction Set Header AK2*850*0000000123 Element Description Element # AK201 Transaction Set ID Code 143 AK202 Transaction Set Control Number 329
Control Number assigned by the Sender X X12 005010
Qualifiers/Definition 997 Functional Acknowledgment Control Number Assigned by Vendor
Qualifiers/Definition PO Purchase Order Located in the GS06 of the Acknowledged Document
Qualifiers/Definition 850 Purchase Order 875 Grocery Purchase Order Located in the ST02 of the Acknowledged Document
Min/Max Attributes 3/3 ID 4/9 AN
Min/Max Attributes 2/2 ID 1/9 N0
Min/Max Attributes 3/3 ID 4/9 AN
AK3 Data Segment Note AK3*A January 2008
McLane Electronic Data Interchange
997 - 3
McLane Electronic Data Interchange Element Element # AK301 721 AK302 719 AK303 447 AK304 720
Description
Qualifiers/Definition
Segment Id Code
Segment ID Code
Segment Position in the Transaction Set Loop Identifier Code
Segment Position in Transaction Set Loop Identifier Code
Segment Syntax Error Code
Segment Syntax Error Code
AK4 Data Element Note AK4*A Element Description Element # AK401 Position in Segment C030 AK402 Data Element Reference Number 725 AK403 Data Element Syntax Error Code 723 AK404 Copy of Bad Data Element 724 AK5 Transaction Set Response Trailer AK5*A Element Description Element # AK501 Transaction Set Acknowledgment 717 Code
AK9 Functional Group Response Trailer AK9*A*1*1*1 Element Description Element # AK901 Functional Group 715 Acknowledgment Code AK902 97 AK903 123 AK904 2
Number of Included Sets Number of Received Sets Number of Accepted Sets
SE Transaction Set Trailer SE*12*123456789 Element Description Element # 997 - 4
Qualifiers/Definition
Min/Max Attributes 2/3 ID 1/10 N0 1/4 AN 1/3 ID
Min/Max Attributes
Position in Segment Data Element Reference Number Data Element Syntax Error Code Copy of Bad Data Element
Qualifiers/Definition A Accepted E Accepted, but with Errors R Rejected
Qualifiers/Definition A Accepted E Accepted, but with Errors R Rejected Number of Transaction Sets Included Number of Received Transaction Sets Number of Accepted Transaction Sets
Qualifiers/Definition McLane Electronic Data Interchange
1/4 N0 1/3 ID 1/99 AN
Min/Max Attributes 1/1 ID
Min/Max Attributes 1/1 ID 1/6 N0 1/6 N0 1/6 N0
Min/Max Attributes January 2008
McLane Electronic Data Interchange
SE01 96 SE02 329
Number of included segments Transaction Set Control Number
GE Functional Group Trailer GE*1*123456789 Element Description Element # GE01 Number of Transaction Sets 97 Included GE02 Group Control Number 28 IEA Interchange Control Trailer IEA*1*123456789 Element Description Element # IEA01 Number of included functional I16 groups IEA02 Interchange Control Number I12
January 2008
Total number of segments including ST and SE segments Same control number used in the ST segment
1/10 N0 4/9 AN
Qualifiers/Definition
Min/Max Attributes 1/6 N0 1/9 N0
Total number of transaction sets included in the functional group Same control number used in the GS segment
Qualifiers/Definition A count of functional groups included in a transmission Same control number used in the ISA segment