Returns the loop ID of the loop that the Data Segment is directly nested under.
Syntax:
Returns:
A string of the loop ID.
Remark:
A loop, in EDI, is sometimes referred to as a group because a loop is actually a group of segments that are interrelated with each other to describe an information. The ID of the first segment of these group of segments is the ID or tag of the loop. For example, the N1 loop (in X12) has the following segments
N1
N2
N3
N4
REF
PER
DMGCalling the LoopID method on any of these segments will return N1. In cases where the loop or group of segments are labeled a customized name in the SEF file e.g. "2000A", then the LoopID method will return the customized name.
Sample