Creates an ASC/X12 Transaction Set within the Interchange.
Syntax:
Parameters:
Returns
Object of type FREDI.ediTransactionSet.
Controlling Agency:
Remarks
In ASC/X12, Transaction Sets are not directly enveloped by the Interchange and are instead enveloped by the Functional Group. For ASC/X12 documents, this method should not be called.
This method is the same as the CreateMessage method and can be used to create an UN/EDIFACT Message in the Interchange.
Example
Set oInterchange = oEdiDoc.CreateInterchange("UN", "S93A")
Set oTransactionset = oInterchange.CreateTransactionSet("INVOIC")
Set oSegment = oInterchange.GetDataSegmentHeader
oSegment.DataElementValue(1, 1) = "UNOB"
oSegment.DataElementValue(1, 2) = "1"
oSegment.DataElementValue(2, 1) = txtPartnerID.Text
oSegment.DataElementValue(2, 2) = "ZZ"
oSegment.DataElementValue(3, 1) = "0038977332"
oSegment.DataElementValue(3, 2) = "01"
oSegment.DataElementValue(3, 3) = txtSiteCode.Text
oSegment.DataElementValue(4, 1) = "020331"
oSegment.DataElementValue(4, 2) = "1230"
oSegment.DataElementValue(5) = "00000000000001"
oSegment.DataElementValue(7) = "INVOIC"
oSegment.DataElementValue(11) = "1"