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.
- 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.
- Find the segment you want to view, and select View Details.
- Click to display the syntax rules enforced for the selected segment.
- Hover over a syntax rule row to see icons to edit, add or delete a rule.
- 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.
- 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
- Select appropriate elements.The current selections are displayed in terms of the element position numbers.
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.
- 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.