This section contains updates and clarifications to the EDI Products documentation.
This section describes updates to the ECMAP User Guide.
[CR# 431174] In “Working with fields,” in “Performing field-related activities,” in Chapter 9, “Working with Records and Tables” in the ECMAP User Guide, step 4 of the procedure for “Adding a new field to a record” should be modified. The references to zero fill for the Decimal Implicit (DI) and Signed Decimal (SD) field types are incorrect. Step 4 should be:
Enter the following information under Edits on the Options tab:
Justification for a field:
L – left-justification. The data in the field begins in the leftmost column of the field.
R – Right-justification. The data in the field ends in the rightmost column of the field.
N – No justification. The program uses default justification rules for data in the field.
Mandatory fields must contain data or a warning is generated on inbound maps.
If Zero Fill is selected, the program fills all empty spaces with zeroes.
DI and SD field types are always zero filled, even if
the Zero Fill option is not selected. If the length of the DI number
is greater than 15, the DI field is not zero filled. DI and SD are
the two primary types of fields used by COBOL-based environments,
which is where zero-filling fields is most important.
[CR# 431174] In “Option 2 tab,” in “Running an inbound map,” in Chapter 17, “Running Maps” in the ECMAP User Guide, a note on the Decimal Implicit (DI) and Signed Decimal (SD) field types should be added for the first option—Zero Handling Options. The description for Zero Handling Options is:
Zero Handling Options – choose one of the following:
Zero Fill EDI Non-Null Numbers to fill incoming elements that are not blank with zeroes
No Zero Fill on Null or Non-Null Numbers to map numeric data exactly as it appears in the map
None to do nothing to incoming elements
DI and SD field types are always zero filled, even
if the Zero Fill option is not selected. If the length of the DI
number is greater than 15, the DI field is not zero filled. DI and
SD are the two primary types of fields used by COBOL-based environments,
which is where zero-filling fields is most important.
In “Transaction mapping,” in Chapter 13, “Mapping” in the ECMAP User Guide, the following sections on mapping repeat groups for NCPDP data should be included at the end of the “Transaction mapping” section.
To map your NCPDP data, follow the instructions in Chapter 13, “Mapping.” Some differences apply when mapping NCPDP data as repeat groups. These differences are described in the following sections.You can map each repeat group uniquely or in the same way. Mapping each repeat group uniquely allows you to perform simple mapping. However, the repeat group procedure you use may depend on applications at your site.In general, the procedure for mapping repeat groups is the same for both inbound and outbound maps. However, the outbound implementation differs if the repeat group data is contained in a separate record. In this instance, split out repeat groups to separate levels so that you can map them more easily. See “Mapping repeat groups for some outbound maps”.
When repeat groups are mapped uniquely, each element is mapped individually to its corresponding field, and each repeat group displays on the Mapping screen. If a nested repeat group exists, it displays in the same manner as the parent repeat group. An occurrence number keeps track of the number of repeat groups.You can copy or delete a repeat group. When you copy a repeat group, the occurrence number increments; when you delete a repeat group, the occurrence number decrements. You cannot delete the last repeat group.
Mapping repeat groups uniquely
Display the NCPDP source or destination on the Mapping screen.
Right-click the desired repeat group and select Map Each Loop Uniquely.
When you map each repeat group in the same way, you assume that all repeat groups are mapped iteratively to the same fields. When you select this option, only one repeat group displays on the Mapping screen.When choosing this option, map developers must take care to ensure that data is mapped correctly. He or she must add rules to move the data after each loop or the data is overwritten with the next iteration of the loop. You cannot copy or delete a repeat group when repeat groups are mapped in the same way. However, you can copy or delete elements in a repeat group.
Mapping each repeat group the same way
Display the NCPDP source or destination on the Mapping screen.
Right-click the desired repeat group and select the Map Each Loop the Same option. ECMAP displays a single instance of the repeat group.
If data for a repeat group is contained in the same record as other data, repeat groups can be mapped as described in “Mapping repeat groups uniquely” or “Mapping each repeat group in the same way”. If the data for a repeat group is contained in a separate record, you must split segments that contain repeat groups so that you can map each element in the repeat group. Splitting segments places each split group on a separate level.
These restrictions apply to the creation of split segments:
Every element in a split segment must be assigned to a split group.
Repeat group elements and normal elements must be placed in separate split groups. You cannot mix repeat group elements and normal elements in the same split group.
Splitting a segment
Display the NCPDP source or destination on the Mapping screen.
Right-click the segment you want to split and select Split. The Split Count for Segment window displays.
Enter the number of groups into which you want to split the segment and click OK. The Split Segment window displays so that you can create Split Group 1.Highlight the elements you want to place in a split group.
Click the right-arrow key. The highlighted elements move to the Split Group pane on the right.
Repeat steps 4 and 5 until you have completed Split Group 1. Click Next when you completed Split Group 1.An empty Split Group window displays so that you can create the next split group.
Repeat steps 4, 5, and 6 until you have created the specified number of split groups.
Click Finish. ECMAP displays the numbered split groups on the Destination pane of the Mapping window.
You can now map repeat groups as described in “Mapping repeat groups uniquely” or “Mapping each repeat group in the same way.”