Section title: X12 EDI Examples
back to previous

ASC X12 Version: 004010 | Transaction Set: 997 | TR3 ID: 004010X363

Example 04: Basic Functional Acknowledgment – Partially Accepted With Detail

XYZ Aircraft Parts is acknowledging 3 purchase orders from ABC Aerospace Corporation that were transmitted in one Functional Group with a GS Control Number of 11. XYZ Aircraft Parts has processed and rejected two of the three orders. XYZ Aircraft Parts will send ABC Aerospace Corporation a 997 Functional Acknowledgment with line item detail provided. ABC Aerospace is expected to correct the two transactions and re-transmit them.

Transmission Explanation

Table 1

ST*997*0001~

Indicates the start of the transaction set and assigns a transaction set control number of 0001.

AK1*PO*11~

Purchase Order Functional Group number 11 is being acknowledged.

AK2*850*0001~

The 850 transaction set with control number 0001 is being acknowledged.

AK5*A~

The transaction set acknowledgment code is 'A' – Accepted.

AK2*850*0002~

A second 850 transaction set with control number 0002 is being acknowledged.

AK3*DTM*6**8~

The segment ID of the erroneous segment is ‘DTM’ at segment position 6. The segment syntax error code 8 indicates that the segment has data element errors.

AK4*1**7*W14~

The data element in error is in position 1. The data element syntax error code of 7 indicates that there is an invalid code value. The invalid code value is provided, and is 'W14'.

AK5*R*5~

The transaction set acknowledgment code is 'R' – rejected with a transaction syntax error code of 5 denoting one or more segments are in error.

AK2*850*00~

A third 850 transaction set with control number 0003 is being acknowledged.

AK3*BGM*28**1~

The segment ID of the erroneous segment is 'BGM' at segment position 28. The segment syntax error code 1 indicates that the segment is unrecognized.

AK5*R*5~

The transaction set acknowledgment code is 'R' – Rejected with a transaction syntax error code of 5 denoting one or more segments are in error.

AK9*P*3*3*1~

The Functional Group was partially accepted. There were 3 transactions in the Functional Group, with 3 received and 1 accepted.

SE*13*0001~

Indicates that transaction set control number 0001 has ended with a total of 13 segments.

Transmission

ST*997*0001~AK1*PO*11~AK2*850*0001~AK5*A~AK2*850*0002~
AK3*DTM*6**8~AK4*1**7*W14~AK5*R*5~AK2*850*0003~AK3*BGM*28**1~
AK5*R*5~AK9*P*3*3*1~SE*13*0001~