Framework EDI Reference. SEFManager Utility
Add a Semantic Rule to a Data Segment

To add a semantic rule to a data segment, take the following steps:

  1. Highlight the selected data segment and then right click.
  2. In the popup menu, select "Add Semantic Rule".
  3. In the dialog box, specify the condition and the action of the semantic rule.

The following steps will demonstrate how to add a semantic rule to a data segment reference.  As an example, we will add the semantic rule (see below) to the data segment reference MEA (Measurements), which has an ordinal number 22 in the ASC/X12 Transaction Set 850.

If data element 350 at LIN1800 is equal to "ITEM01" then MEA200 must be used

The semantic rule SEF syntax is:

LineItemID'EQ'ITEM01:USAGE:2:

Where:

For more on how to determine the SEF semantic rule syntax please refer to Appendix B: Creating a Semantic Rule Syntax .

 

  1. Highlight and right click the data segment reference where the semantic rule is to be added.

  2. From the popup menu select "Add Semantic Rule".

  3. The following dialog box will show. 

    Location.  The Transaction Set/Message ID field displays the ASC/X12 Transaction Set or UN/EDIFACT Message of the data segment reference.  The Segment Reference Ordinal field displays the ordinal number of the data segment reference to which the semantic rule will be added.  In the example shown, the semantic rule is being added to the data segment reference at ordinal 22 in the ASC/X12 Transaction Set 850.

    The following semantic fields to enter are:

     

     

  4. In the example scenario, enter the following data in their respective fields, and then click "OK" to accept the entries.
    • Condition: LineItemID'EQ'ITEM01
    • Type: USAGE
    • Setting: 2

     

  5. If the semantic rule was added successfully, it will be displayed under the branch "Semantic Rules" under the data segment reference.  In this example, the semantic rule "LineItemID'EQ'ITEM01:USAGE:2:", which has just been added, will show in addition with the other existing semantic rules that were assigned to the same location.

  6. The Semantic Rules Table will also be updated with the new semantic rule that was just added.