Framework EDI Reference. Methods and Properties
ediAcknowledgment. AcceptSetWithErrors

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

Syntax:

Parameters:

Returns

Returns TRUE if transaction set that has been 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 Functional Acknowledgment is X12 standard for representing, as an EDI file, the errors discovered in the Functional Group semantic group of an EDI file. Normally 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 Transaction Set Acknowledgment Code (data element 717 ) in the data segment AK5. By default the value “R” is used to indicate that the Transaction Set is rejected when errors are found. If the Transaction Set 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 Transaction Set was accepted even when errors were found.

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

Example

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

oAck.EnableFunctionalAcknowledgment = True
oAck.AcceptSetWithErrors = True
oAck.AcceptGroupWithErrors = True

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