Returns the requirement of the Data Segment.
Syntax:
Returns:
A string indicating the character of the data segment requirement code.
Remark:
In X12, if a data segment is mandatory, the method returns an "M"; if optional, it returns an "O". In UN/EDIFACT if the data segment is mandatory, the method returns an "M"; but if optional, it returns a "C".
Example:
Dim oEdiDoc As Fredi.ediDocument
Dim oSegment As Fredi.ediDataSegment
...
Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing
sRequirement = oSegment.Requirement
Set oSegment = oSegment.Next
Loop
Sample