Framework EDI Reference. Methods and Properties
ediAcknowledgment. AcceptTA1withErrors

Allows for generating an Interchange Acknowledgment file to have it indicate that the Interchange of the EDI file being checked for syntactical errors should be accepted even if syntactical errors are found.

Syntax:

Controlling Agency:

Parameters:

Returns

Returns TRUE if interchanges that will be checked for syntactical errors should be accepted even if errors are found, FALSE if not.

Remarks

When an EDI file is loaded into FREDI, 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. The Interchange Acknowledgment is the X12 standard for representing as an EDI structure all the errors discovered in the Interchange envelope, which is the data segment ISA and IEA. The errors are reported in a single segment, TA1. The receiver has a choice whether the transaction set in the file is either accepted or rejected when errors are found. This is indicated in the Interchange Acknowledgment Code (data element I17 ) in the data segment TA1. By default the value “R” is used to indicate that the file is rejected when errors are found. If the file should be accepted even with errors then this property should be set to TRUE, which will then use the value of “E” to indicate that the file should be accepted even if errors are found.

Use of this property is similar to using the OptAcknowledgment_AcceptInterchangeWithErrors constant in the Option property.

Example

Set oEdiDoc = New Fredi.ediDocument
Set oAck = oEdiDoc.GetAcknowledgment

oAck.EnableFunctionalAcknowledgment = True
oAck.EnableInterchangeAcknowledgment = True

oAck.AcceptTA1withErrors = True
oAck.AcceptSetWithErrors = True
oAck.AcceptGroupWithErrors = True

oEdiDoc.LoadSchema sPath & "850.SEF", 0
oEdiDoc.LoadEdi sPath & sEdiFile