Returns the header control segment of the UN/EDIFACT Message or ASC/X12 Transaction Set.
Syntax:
Returns
Returns object of type FREDI.ediDataSegment if the operation is successful; otherwise returns NULL or empty object if the operation fails.
Remarks
For X12 Control Header, the data segment returned is ST. For UN/EDIFACT, the data segment returned is UNH.
Example
:
Set oSegment = oTransactionset.GetDataSegmentHeader
oSegment.DataElementValue("329") = "000000001"