The action code in the acknowledgment indicates the action taken by the receiver on receiving the EDI document. Basically, the receiver indicates if the EDI document was received and/or accepted or was rejected. Framework EDI will automatically store action codes in the acknowledgment based on the syntactical errors discovered in the document as well as the settings made on the following optional features on the ediAcknowledgment object.
Acknowledgment code settings for action on Transaction Sets/Messages and Functional Groups:
Accepting or Rejecting a ASC/X12 Transaction Set or UN/EDIFACT Message
ASC/X12. Currently Framework EDI interprets the value of the code as follows:
An accepted Transaction Set has a code value "A".
A Transaction Set that contains errors, but is accepted, has a code value "E".
A rejected Transaction Set has a code value "R" (or other than an "A" or "E").
The acceptance or rejection of a Transaction Set is indicated by a code stored in data element 717 (Transaction Set Acknowledgment Code) of data segment AK5. Together with the optional flags OptAcknowledgment_AcceptSetWithErrors, the code is set as follows:
Transaction Set State | OptAcknowledgment_PartialAcceptGroup | AcceptSetWithErrors OR OptAcknowledgment_AcceptSetWithErrors |
AK5 (DE717) |
No Errors | (N/A) | (N/A) | "A" |
Contains Errors | (N/A) | FALSE | "R" |
Contains Errors | (N/A) | TRUE | "E" |
Note that the option OptAcknowledgment_PartialAcceptGroup has no relevance in the acknowledgment of an X12 Transaction Set.
UN/EDIFACT. Currently Framework EDI interprets the value of the code as follows:
An accepted Message has a value "7".
A rejected Message has a value "4".
The acceptance or rejection of a Message is indicated by a code stored in data element 0083 (Action, coded) of data segment UCM. Together with the optional flags OptAcknowledgment_AcceptSetWithErrors, the code is set as follows:
Message State | OptAcknowledgment_PartialAcceptGroup | AcceptSetWithErrors OR OptAcknowledgment_AcceptSetWithErrors |
UCM (DE0083) |
No Errors | (N/A) | (N/A) | "7" |
Contains Errors | (N/A) | FALSE | "4" |
Contains Errors | (N/A) | TRUE | "7" |
Note that the option OptAcknowledgment_PartialAcceptGroup has no relevance in the acknowledgment of a UN/EDIFACT Message .
Accepting or Rejecting a Functional Group
ASC/X12. Currently Framework EDI interprets the value of the code as follows:
An accepted Functional Group has a code value "A".
A Functional Group that contains one or more errors, but is accepted, has a code value "E". An error in a Functional Group is either a syntactical error in the Functional Group Control Header envelopes (GS/GE), and/or one or more rejected Transaction Sets in the underlying Functional Group.
A Functional Group that is partially accepted with at least one rejected Transaction Set has a code value "P".
A rejected Functional Group has a code value "R" (or other than an "A", "E" or "P").
The acceptance and rejection of a Functional Group is indicated by a code stored in data element 715 (Functional Group Acknowledgment Code) of data segment AK9. By default, Framework EDI rejects a Functional Group (data element 715 = "R") if one of its Transaction Set has been rejected, or if its Control Header (GS/GE) has an error. However, the code value of the Functional Group Acknowledgment Code (data element 715) can be controlled with the optional flags OptAcknowledgment_PartialAcceptGroup and/or OptAcknowledgment_AcceptGroupWithErrors. The code is set as follows:
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" |
An accepted Functional Group has a value "7".
A rejected Functional Group has a value "4".
The acceptance or rejection of a Functional Group is indicated by a code stored in data element 0083 (Action, coded) of data segment UCF. By default, Framework EDI rejects a Functional Group if one of its Message has been rejected, or if its Control Header has an error. However, the code value of data element 0083 can be controlled with the optional flags OptAcknowledgment_PartialAcceptGroup and/or OptAcknowledgment_AcceptGroupWithErrors. The code is set as follows:
UCM (DE0083) | OptAcknowledgment_PartialAcceptGroup | AcceptGroupWithErrors OR OptAcknowledgment_AcceptGroupWithErrors |
UCF (DE0083) |
All "7" | (N/A) | (N/A) | "7" |
All "4" | (N/A) | (N/A) | "4" |
"7" and "4" | FALSE | FALSE | "4" |
"7" and "4" | FALSE | TRUE | "7" |
"7" and "4" | TRUE | FALSE | "7" |
"7" and "4" | TRUE | TRUE | "7" |