Adding a new inbound map
flow entry
Do one of the following:
If this is the first map flow entry, Choose File>New>Add Master Level
For subsequent entries, choose File>New>Add Sibling Level or File>New>Add Child Level.
The Inbound Record Flow - New window displays. There are two tabs on the window – Levels and Advanced. The Levels tab is active initially.
Enter the following information on the Levels tab
Under Levels:
The Current level is the which any attached conditions will be checked. Select the up arrow and the Levels window displays. Drag a level and drop it into the Current level text box, or double-click an existing level to enter it in the Current level text box.
If you have not defined your levels, you can define a new level on the Levels window and then select it. The program automatically enters the level number in the first text box and the level description in the second text box.
The Segment is the segment whose presence in the current level invokes the transition to the new level specified. This field is required if Segment is checked as the Flow Type. If Default is checked as the Flow Type, Segment is grayed out.
The Next level is the level that receives control when a specified condition is met (receipt of a segment or contents of the segment/sequence). The Next level may be the same as the Current level. If you wish to perform a rule for every iteration of a loop or anytime you may wish to perform I/O within a level on a particular segment without changing level, then the flow point would have the same Current and Next levels or values.
Select the up arrow and the Levels window displays. Drag a level and drop it into the Next level text box, or double-click an existing level to enter it in the Next level text box. You can define a new level on the Levels window and then select it. The program automatically enters the level number in the first text box and the description in the second text box.
Under Flow Type:
If you choose Segment, the presence of the specified segment in the current level (optionally qualified by an element and sub-element) invokes this entry (i.e., change the level). Certain segments imply a level change – such as switching from a header segment to a detail segment. If you choose Segment, you must make an entry in the Segment text box under Levels in the top section of the window.
If you choose Default, the receipt of any segment not defined as being at the current level in mapping invokes this entry (i.e., change the level). It may be used to change to a new level and perform rules specified for this flow point. If you choose Default, the Segment text box under Levels in the top section of the window is grayed out.
Under Rules:
The Before rule is performed at this level before mapping.
The After rule is performed at this level after mapping.
Select the up arrow and the Rule Definitions window displays. Double-click a rule to select it. If you do not want to perform an action (either before or after mapping), enter 0 - the Do Nothing rule. You return to the Levels tab of the Inbound Record Flow window, and the program populates the first rule text box with the number of the rule you selected and the second text box with the description of the rule.
If you want to create a new rule, you can also do this from the Rule Definitions window. After you have created the rule, you can select it as described above.
Enter optional information on the Advanced tab:
Under Element Condition:
The Element is the element in the segment whose presence in the current level invokes this entry. Select the up arrow, and the Select A Segment window displays. Double-click an element, or drag an element and drop it on the Element text box.
When you select an element, the program automatically populates the following text boxes:
The Subelement is the sub-element whose presence in the current level invokes this entry.
The Field Number is the field whose presence in the current level invokes this entry.
The Type is the code associated with the field.
The Element/Sub-Element Value Is: is the value in the element or sub-element specified above that invokes this entry.
Choose from the drop-down list of logical operators that relates the value of the data whose presence creates the condition to the value entered in the second text box. Choices include:
EQ – Equal to
NE – Not equal to
LT – Less than
LE – Less than or equal to
GT – Greater than
GE – Greater than or equal to
The second text box contains the value that is compared to the data whose presence creates the condition.
Under Trading Partner
In the first text box, enter the trading partner who “owns” this segment or level. Select the up arrow, and the Trading Partners window displays, with a list of trading partners from which to choose. Either double-click the trading partner or highlight it and choose Select from the File menu, and the program automatically populates the two Trading Partner text boxes. In this way, you place a condition on the flow point, making it trading-partner-specific.
For inbound maps, when you build conditions in the map flow, all possible conditions must be defined for a specific segment or loop and that one of the key elements must contain a unique value. The key fields are: Current Level, Segment, Before Rule, After Rule, and New Level.
For example, if you have a segment that repeats, you need to specify the value of the element in the Element/Subelement Value Is: field on the Advanced Tab of the Inbound Record Flow - Properties tab. For each element condition, you need to associate a unique rule with this element on the same window. The rule must be unique or the map won't run correctly. To make the rule unique, assign a unique rule number for each element condition. For example, enter “5” for the rule number and “Do Nothing” for the function of the rule. By creating a unique rule number for each condition of the element, your map will run successfully. If you have two entries with the same segment with the same Before Rule and After Rule with the same current and next levels, the map will not run correctly because non-unique rows were created in the inbound map flow table.
Here are three examples of unique rows. For example, in the Inbound Map Flow window you want to execute logic for specific occurrences of a repeating segment, for example REF (01-9F) or REF (01-G1). In order for this to work properly, all other occurrences of the REF segment must be defined.
As you can see for the REF (01 = D9):
Current level = 1400
Segment = REF
Before Rule = 10
After Rule = 0
New Level = 1400
For REF (01 = G1):
Current level = 1400,
Segment = REF
Before Rule = 8
After Rule = 21401
New Level = 1400
When you need to addREF (01 = DG) to a REF segment needs, you need to define a new “Do Nothing” rule and place it in the Before or After Rule field on the Inbound Record Flow - Properties window.
Deleting an inbound map
flow entry
Highlight the entry and choose Edit>Delete.
You are prompted to confirm the deletion before it is permanently removed.
Modifying an inbound map
flow entry
Highlight the entry and choose Edit>Properties.
The Inbound Record Flow – Properties window displays.
Modify the information as described in “Adding a new inbound map flow entry”.
Select OK to return to the Inbound Map Flow window.