Framework EDI Reference. Methods and Properties
ediInterchange. GetDataSegmentHeader

Returns the header control segment of the Interchange.

Syntax:

Returns

Object of type FREDI.ediDataSegment.

Remarks

For X12 Control Header, the data segment returned is ISA. For UN/EDIFACT, the data segment returned is UNB.

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oInterchange as Fredi.ediInterchange
Dim oSegment as Fredi.ediDataSegment
Set oEdiDoc = new Fredi.ediDocument
Set oInterchange = oEdiDoc.CreateInterchange(“X”,”004010”)
Set oSegment = oInterchange.GetDataSegmentHeader
oSegment.DataElementValue(1) = "00"
oSegment.DataElementValue(3) = "00"
oSegment.DataElementValue(5) = "ZZ"
oSegment.DataElementValue(6) = "SENDERISA"