Framework EDI Reference. Methods and Properties
ediAcknowledgment. EnableInterchangeAcknowledgment

Enables creation of the Interchange Acknowledgment.

Syntax:

Remarks

The interchange acknowledgment is used to indicate receipt of an interchange.  See Interchange Acknowledgment.

ASC/X12.  If enabled, the interchange acknowledgment control segment (TA1) is created within the interchange control structure of the document sent back to the sender.  If functional acknowledgment is enabled through the EnableFunctionalAcknowledgment property as well, the TA1 segment is created in the interchange control structure of the document that contains the functional acknowledgment transaction set (997).

UN/EDIFACT.  If enabled, the interchange response service segment (UCI) is created in the service report message (CONTRL).  This segment is created at a minimum if this property is enabled.  It can also get created when the EnableFunctionalAcknowledgment property is enabled; the UCI service segment is created with other response segments (UCF, UCM, UCS, UCD) that report errors at their corresponding reporting levels in the subject document.

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