Section title: X12 EDI Examples
back to previous

ASC X12 Version: 005010 | Transaction Set: 997 | TR3 ID: 005010X230

Example 1: Response to a Functional Group Containing Two 837s

EDI Transmission

The following example describes a 997 transaction set that is responding to a functional group that was received containing two 837 transaction sets. The first transaction set conformed fully with the X12 standard, while the second contained errors.

The Interchange Control and Functional Group segments (ISA, GS, GE, and IEA) are required in the ASC X12 message. See Appendix C for additional details on these segments.

ISA*00*          *00*          *ZZ*123456789012345
*ZZ*123456789012346*080503*1705*>*00501*000010216*0*T*:~
GS*FA*1234567890*2345678901*20080503*1705*20213*X*005010X230~

The ST segment indicates the beginning of the 997 transaction set, control number 2870001.

ST*997*2870001*005010X230~

The AK1 segment describes the functional group to which this 997 is responding.

AK1*HC*17456*005010~

The first Transaction Response Loop indicates that the received transaction set, control number 0001, was accepted with no errors.

AK2*837*0001~
AK5*A~

The second Transaction Response Loop indicates that the received transaction set, control number 0002, was rejected due to a missing CLM01 data element.

AK2*837*0002~
AK3*CLM*22**8~
AK4*1*1028*1~
AK5*R*5~

The Trailer section provides a summary of the disposition of the received functional group, and ends the transaction set.

AK9*P*2*2*1~
SE*10*2870001~
GE*1*20213~
IEA*1*000010216~