The Map Envelope Level command is for inbound EDI-to-EDI mapping only. This command allows you to map the envelope level segments for EDIFACT, HL7, and X12 outbound EDI transactions.
You must execute the command for each envelope level segment because each of these segments must be defined on its own level for mapping to occur.
Select Map Envelope Level from the Rule Command - New window. In the Parameters, select the variables for each of the parameters of the Map Envelope Level command by clicking on the up arrow to the right of each Parameter text box and selecting one of the options in the menu that displays. This command has these parameters:
Envelope Type – the different envelope level segment options are:
Interchange
Group
Transaction
Segment Type – the two segment options are:
Header
Trailer
Level – the Levels window displays next to the Rule Command window. Double-click a level to automatically enter it in the Level text box.
Control Number Options – the options are:
Keep Current Control Numbers and Update Database – keep the control numbers from the inbound transaction and update the outbound transaction’s trade partner entry, in the database, with these values.
Keep Current Control Numbers with No Database Update – keep the control numbers from the inbound transaction with no database update.
Get Control Numbers from Database – obtain the control numbers from the outbound transaction’s trade partner tables.
Update ALL Trade Partner Record – the options are:
Yes – obtain the control numbers from the ALL trade partner record instead of obtaining an exact trade partner match.
No – control numbers are not obtained from the ALL trade partner.
Status Variable – specify whether the Map Envelope Level command created the envelope successfully.
The only option you can select for this parameter is Memory Variable. The Memory Variables window displays next to the Rule Command window. Double-click a memory variable to automatically enter it in the Status Variable text box.
If envelope creation is not successful, an “N” is returned in the memory variable you selected. You can execute a separate series of commands and try the Map Envelope Level command again.
Transaction – select this parameter to associate with this command either a specific transaction or all the transactions:
Select a single outbound transaction to associate with the command.
ALL – associate all outbound transactions with the command. This is the default.