Edit Syntax Rules for Segments and Composites

You can view and edit the syntax rules, if defined for a segment or a composite. These rules apply to data elements and are enforced during the validation of the input data.

Note:

You cannot edit a schema currently in use in an active document definition.
  1. In the navigation pane, click B2B, then Schemas.
    The B2B schemas page shows all custom schemas you have created by cloning the standard schemas.
  2. Open a custom schema, find the segment you want to view (for example, CUR), and select Edit details Edit icon.
  3. Click Syntax Rules icon in the Details panel to open the syntax rules enforced for the selected segment.
  4. Hover over a syntax rule row to see options to edit, add, or delete a rule.
  5. If you select Add +, a Select list is displayed with the following syntax rule types:
    X12 Syntax Rule Description
    Pairing If any of the elements are present, all are required.
    Required At least one of the elements is required.
    Exclusion Only one of the elements may be present.
    Conditional If one element is present, other elements are required.
    List Conditional If one element is present, at least one of the other elements is required.

    For each rule, you are presented with either one or two element selections into which you select elements.

  6. For example, if you add the List Conditional rule, click select an element for the first element selection and click select one or more elements for the second element selection.

    List Condition rule with links for select an element and for select two or more elements.

  7. Select appropriate elements.
    The current selections are displayed in terms of the element position numbers.


    List conditional with Elements 3 and 4 selected.

    The element position numbers identify the corresponding child elements inside the selected segment or composite. For example, 2 means CUR02 below and 3 and 4 mean CUR03 and CUR04.

  8. Click the element numbers in the rule description to add or remove elements.

    Note:

    Deleting a syntax rule first marks it for deletion (which can be undone) and then deletes it when the B2B schema is saved.