Add a map rule

Add a map rule to a component in the InvAudit executable map.

About this task

This map rule specifies a functional map that generates each line item error. Name the functional map MapRejectItem.

To add a map rule to generate each line item error

Procedure

  1. Open the InvAudit executable map.
  2. Enter the following map rule in the rule cell corresponding to the LineItem Error(s) component on the ErrorFile output card:
    
    = MapRejectItem (REJECT 
    (LoopIT1 IN810:#810<>Transaction IE Inbound Partner Set
    V3020:IE<>F3020<>Inbound Partner Funct'lGroup ANSI:Partner X12
    Inbound Interchange:TM), 
    GS Segment V3020:IE<>F3020<>Inbound Partner Funct'lGroup
    ANSI:Partner X12 Inbound Interchange:TM, 
    Partner Inbound ISA Segment Control ANSI:Partner X12 Inbound
    Interchange:TM, 
    TSCtrl# Element:ST Segment:#810<>Transaction IE Inbound
    Partner Set V3020:IE<>F3020<>Inbound Partner Funct'lGroup
    ANSI:Partner X12 Inbound Interchange:TM)
    

Results

The LineItem Error(s) map rule references the MapRejectItem functional map. There are four arguments in this map rule: the REJECT of the LoopIT1, the GS, the ISA, and the Transaction set control number.

Use the Functional Map Wizard to create the MapRejectItem functional map.

To create the MapRejectIem functional map

Procedure

  1. From the Rules menu, choose Functional Map Wizard.

    The Functional Map Wizard dialog box appears with a yellow icon next to the first input card.

  2. Select the In1 card and click Edit.
  3. Name the input card BadIT1Loop.
  4. In the Card Attributes dialog box, select flatinvc2.mtt in the Tree field and the BadLineItem type in the Name field.
  5. Define a meaningful name for all of the cards. Change the name of the output card from Out to LineItemError. Name the other input cards GS, ISA, and TSCtrl#.
  6. Click Create to create the map.