Loop (X12)
X12 structural construct every translator must recognize to iterate.
Definition
An X12 loop groups segments that repeat together, introduced by a starting segment (often an LS / delimited by LS-LE for bounded loops). The translator must detect the start of each occurrence and map every iteration to a repeating target structure (order line, address, etc.).
Origin
Structural concept defined by ASC X12 (Accredited Standards Committee chartered by ANSI) in standard X12.6, which describes transaction-set structure.
Example in context
N1 (Name) loop: N1*ST*... repeated per party; each iteration mapped to a Party entity.
Related terms
- Mapping — loop iteration is a core mapping case.