EDI 997 - Functional Acknowledgement

The EDI 997 acts as a digital receipt for delivery information. Trading partners can then confirm that they received the delivery information, as well as see if there were any data or formatting errors. This acts as a response to tell supply chain partners that information has been seen and accepted.

EDI Documents

Benefits of using the EDI 997 Functional Acknowledgement

Acknowledging EDI transactions in a timely manner allows all trading partners to improve order processing efficiency. In addition, retailers gain valuable insights if a document is late (inbound or outbound) or has errors. Additional benefits of the EDI 997 include:


Ample time to investigate possible system issues


Time and money saved due to improved order accuracy


Early identification of potential problems so they can be resolved

Key data elements in the EDI 997 Functional Acknowledgement include:

AK1 – Group Acknowledgment (Refers to GS segment)

AK2 – Document Acknowledgment (Refers to ST segment)

AK3 – Reports Errors in a specific segment

01: Segment in Error
02: Line in error from ST

AK4 – Reports Errors in specific element

01: Lists the Element in error
02: Lists the ID in EDI dictionary of the element
03: Code giving a general reason for the error

  • 1: Mandatory data element missing
  • 2: Conditional data element missing
  • 3: Too many data elements
  • 4: Data element too short
  • 5: Data element too long
  • 6: Invalid character in data element
  • 7: Invalid code value
  • 8: Invalid date
  • 9: Invalid time
  • 10: Exclusion condition violated

04: Shows the bad data

AK5 – Type of acknowledgment

01: Lists the Acknowledgment Status

  • A: Accepted
  • E: Accepted with Errors noted
  • M: Rejected; message authentication
  • P: Partially accepted
  • R: Rejected
  • W: Rejected
  • X: Rejected

02: Transaction set syntax Error Code

  • 1: Transaction set not supported
  • 2: Transaction set trailer missing
  • 3: Transaction control #’s don’t match
  • 4: Number of segments don’t match count
  • 5: One or more segments in error
  • 6: Missing transaction set identifier
  • 7: Missing or invalid transaction set control #
  • 16: Syntax Error
  • 23: Transaction set control # not unique

AK9 – Group Response

  • Additional dates (such as cancel by dates)

Common issues regarding EDI 997

Errors in the EDI 997 typically arise from not adhering to trading partner specifications or EDI standards. A Functional Acknowledgement may be rejected for several reasons, including:


Violates character length requirements


Mismatched control counters or data types


Missing mandatory data, such as segments or elements


Contains invalid data, such as invalid characters, codes, conditions or qualifiers

Automate 997 Functional Acknowledgement with Full-Service EDI from SPS Commerce

Managing ongoing EDI tasks can be complex and time-consuming. Full-service EDI providers like SPS Commerce deliver EDI technology and associated staffing resources responsible for customizing, optimizing and operating your EDI solution.

SPS communicates directly with your trading partners to manage connectivity, setup, requirements, updates and support efforts. SPS also takes ownership of understanding your trading partner requirements and making map changes.

SPS Fulfillment proactively monitors and optimizes your solution to prevent errors and minimize data entry. Interested in learning more about our EDI solution?

Eliminate the expense of manual processes.

Remove the time and effort of taking it on yourself. Start here.

(You'll hear back in 1 business day)

Additional EDI Resources

Enter a virtual library of information about EDI for suppliers, vendors and distributors to provide you with the product knowledge you need to power your business.

Ultimate List of EDI Transactions

Here are some of the most common documents and transactions that are supported through EDI automation.

See the Ultimate List

Five Top EDI Documents to Automate

When you automate your most-used EDI documents, it can significantly cut down keystrokes and speed up processes.

Give Me Five

EDI Glossary

Terminology including retail definitions, order management models, supply chain roles, software and distribution channels.

What’s the Word

EDI for Suppliers & Vendors

Discover how leading vendor and supplier businesses are serving their customers better with EDI solutions from SPS Commerce.

EDI for Suppliers & Vendors