Enable Child Loop Parsing

If the parent and child loops share the same first segment, you can enable parsing on the child loop so that, once inside the parent loop, the child loop’s segment is matched instead of the parent loop's segment.

  1. Edit a schema in a project.
    1. In the navigation pane, click Projects.
    2. Click the project in which you want to edit the schema.
    3. Click B2B B2B icon.
    4. In the Schemas section, hover over the schema and click Actions Actions icon, then select Edit.
  2. Edit a schema in a standalone environment.
    1. In the navigation pane, click B2B, then Schemas.
    2. Hover over a schema and click Edit Edit icon.
  3. In the example schema, note that the segment HL is present as the first segment in both the parent loop Loop-2000A and the child loop Loop-2000B.

    Table showing EDI loop structure with columns Segment/Element, Position, Name, and Requirement. In Loop-2000A, the first segment HL (Hierarchical Level) at position 0080 is highlighted and marked Mandatory. Further down, within Loop-2000B, the first segment HL (Hierarchical Level) at position 0300 is also highlighted and marked Mandatory. Other segments like PRV, PAT, CUR, SBR are listed as Optional. The image emphasizes that both the parent loop (2000A) and child loop (2000B) start with an HL segment.

  4. To match the HL segment in the child loop before the parent loop, configure the child loop.
    1. Hover over the child loop and click Edit Edit icon.
    2. In the Properties pane, select the Enforce loop parsing check box.
      If you enable this option, the parser will always match the HL segment in the child loop first instead of the parent loop.
    3. To further customize and define conditions when parsing will be enforced in the child loop before the parent loop, enter the following details.
      1. In the Element drop-down list, select an element that is part of the segment. For example, HL03.
      2. In the Values field, enter the value. For example, 23. You can also give comma separated values such as 23,34.


      The image shows the Properties panel of a loop configuration UI. Fields shown: Usage (dropdown), Repeat (>1), Table area (empty). Below a note reads, “Since the First Segment is the same as the Parent Loop, use this option to enforce parsing in this loop instead of the Parent Loop.” A checked box labeled “Enforce Loop parsing.” Then Element dropdown set to “HL03,” and a Values text box containing “23,34.”

      This ensures that only when the child loop's HL segment has the HL03 element with values either 23 or 34, it will be matched before the HL segment in the parent loop.

    4. Close the Properties pane to save the changes.