LE Loop Trailer
To indicate that the loop immediately preceding this segment is complete
Position
Element
Name
Type
Requirement
Min
Max
Repeat
Code identifying loop within the transaction set which is bounded by the related "LS" and "LE" segments (corresponding "LS" and "LE" segments must have the same value for Loop Identifier).
Figures Appendix
Following is a figure detailing the use of the LE and LS segments in conjunction.
LE is a control segment. LE is always used in conjunction with a corresponding loop header (start) - LS, as illustrated below. The LS and LE indicate the start and end of a loop but are not part of the iteration of the loop.
LOOP NESTING
Loop "A" Header (LS "A")
Loop "B" Header (LS "B")
Loop "C" Header (LS "C")
Loop "C" Trailer (LE "C")
Loop "D" Header (LS "D")
Loop "D" Trailer (LE "D")
Loop "B" Trailer (LE "B")
Loop "A" Trailer (LE "A")
Neither LS nor LE is used if the data within the loop is not used.