Defining a Loop Start

Certain EDI standards use Loop Start (LS) and Loop End (LE) segments. LS and LE segments specify the explicit start and end of loops.

Use this procedure to define an LS segment for a form.

  1. Right-click the LS segment and select Properties
  2. On the Looping tab, verify that the Loop Start option is selected.
  3. Click the Key Field tab.
  4. From the Field list, select the Loop Identifier Code. This list contains all the elements that are contained in the segment and allows you to define the Loop Start segment definition, by specifying that the loop identifier code must have the value you specify in the Matching rules section.
  5. The Matching Rules section enables you to access all the literal constants and code lists currently defined for this form. Click the Use constant option.
  6. Click Edit to access the Map Constants dialog box.
  7. Click New to access the Edit Constant dialog box.
  8. In the ID box, type the literal constant identifier.
  9. From the Type list, select String. This is the category of this literal constant.
  10. In the Value box, type the value of the literal constant.
  11. For a screen entry form, this is the loop identifier code that you expect to receive from your trading partner.
  12. Click OK to add the constant to the system.
  13. Select the constant you created from the list. The system matches the selected constant against the loop identifier code.
  14. Click OK to exit the Segment Properties dialog box.