Enables the generation of the ASC/X12 Interchange Acknowledgment when an EDI file is loaded.
Syntax:
Controlling Agency:
Parameters:
Returns
Returns TRUE if Interchange Acknowledgment processing is enabled, FALSE if disabled.
Remarks
When an EDI file is loaded, it is automatically checked for syntactical correctness based on the controlling standard of the EDI, which is specified by the Standard Reference or the schema that was previously loaded. The Interchange Acknowledgment is the ASC/X12 standard for representing, as an EDI structure, all the errors discovered in the Interchange envelope, which is the data segments ISA and IEA. The errors are reported in a single segment, TA1. If the EnableInterchangeAcknowledgment is set to TRUE, the TA1 segment is automatically created in a tree whereby the user can change or dump the data to a physical file.
Example
Set oEdiDoc = New Fredi.ediDocument
Set oAck = oEdiDoc.GetAcknowledgment
oAck.CompositeTerminator = ":"
oAck.DecimalNotation = "."
oAck.ElementTerminator = "*"
oAck.EnableFunctionalAcknowledgment = True
oAck.EnableInterchangeAcknowledgment = True
oEdiDoc.LoadSchema sPath & "850.SEF", 0
oEdiDoc.LoadEdi sPath & sEdiFile