Electronic Data Interchange
Action Code for Functional Acknowledgment (ASC/X12)

The action code in the functional acknowledgment indicates the action taken by the receiver on the different levels of the received EDI document by the receiver.  Basically, the receiver indicates if the functional group or transaction set in the subject document has been accepted or rejected.  Framework EDI (FREDI) will automatically store an action code in the reporting level based on the syntactical errors discovered in the corresponding referenced level of the subject document.

 

Accepting or Rejecting a Transaction Set

The action code in the functional acknowledgment, that indicates if the transaction set has been accepted or rejected, is stored in the Transaction Set Acknowledgment Code (717), which is a data element in the Transaction Set Response Trailer (AK5) data segment.  Of the multiple possible codes that indicates an action, FREDI stores only one of the following codes in the data element based on the result of a syntactical check as well as the settings made on the optional feature OptAcknowledgment_AcceptSetWithErrors (using the Option method in ediAcknowledgment object), or the AcceptSetWithErrors  property (also in the ediAcknowledgment object). 

NOTE: The option OptAcknowledgment_PartialAcceptGroup has no relevance in the acknowledgment of a transaction set.
NOTE: The OptAcknowledgment_AcceptSetWithErrors and AcceptSetWithErrors both affect the same internal flag that determines whether a transaction set in error should be accepted or rejected.  Whichever option is set last, overrides the setting of the other.

 

Accepting or Rejecting a Functional Group

The following action code in the functional acknowledgment indicates if the functional group has been accepted or rejected. 

The Functional Group Acknowledge Code (715) element in the Functional Group Response Trailer (AK9) data segment stores the value of the action code.  Of the multiple possible codes that indicates an action, FREDI stores only one of the above codes in the data element based on the result of a syntactical check of the functional group as well as the settings made on the optional feature OptAcknowledgment_AcceptGroupWithErrors, OptAcknowledgment_PartialAcceptGroup  (using the Option method in ediAcknowledgment object), or the AcceptGroupWithErrors  property (also in the ediAcknowledgment object).  The following setting combination results in one of the action code above:

AK5 (DE717) OptAcknowledgment_PartialAcceptGroup   AcceptGroupWithErrors OR
OptAcknowledgment_AcceptGroupWithErrors
AK9 (DE715)
All "A" (N/A) (N/A) "A"
All "R" (N/A) (N/A) "R"
All "E" (N/A) (N/A) "E"
All "A" and "E" (N/A) (N/A) "E"
"A" and "R" FALSE FALSE "R"
"A" and "R" FALSE TRUE "E"
"A" and "R" TRUE FALSE "P"
"A" and "R" TRUE TRUE "P"
"E" and "R" FALSE FALSE "R"
"E" and "R" FALSE TRUE "E"
"E" and "R" TRUE FALSE "P"
"E" and "R" TRUE TRUE "P"
 

NOTE: The OptAcknowledgment_AcceptGroupWithErrors and AcceptGroupWithErrors both affect the same internal flag that determines whether a functional group in error should be accepted or rejected.  Whichever option is set last, overrides the setting of the other.

See Also