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.


You cannot edit a schema currently in use in an active document definition.
  1. From the navigation pane on the Oracle home page, select B2B > B2B Schemas.
    The B2B schemas page shows all custom schemas you have created by cloning the X12 standard schemas. The segments (CUR for the example below) and elements (CUR02 for the example below) that you customized to deviate from the standard schema are identified by a small dot.
  2. Find the segment you want to view, and select View Details.

  3. Click Syntax Rules icon to display the syntax rules enforced for the selected segment.

  4. Hover over a syntax rule row to see icons to edit, add or delete a rule.
  5. If you select the add icon, 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.
    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.
    Required At least one of the elements is required.
    Exclusion Only one of the elements may be present.

    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 two 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.


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