The Trade Partner Lookup command allows you to find the trade partner for the outbound transaction. This may be the same trade partner you have for the inbound transaction or it may be a different trade partner. This is an optional command.
You can execute the Trade Partner Lookup command at any time and for any number of times. The Trade Partner Lookup command executes only after you execute the Map Envelope Level command. Thus, only the most recently executed instance of the command takes effect for the trade partner you want to lookup.
Table 2-2 summarizes how the Trade Partner Lookup command works for different EDI outbound transaction types.
EDI outbound transaction type |
Lookup performed |
---|---|
EDIFACT |
When the Map Envelope Level command is executed for the UNA segment. If the UNA segment is not used, the lookup occurs when the command is executed on the UNB segment. |
HL7 |
When the Map Envelope Level command is executed for the FHS segment for “long” HL7 or for the MSH segment for “short” HL7. |
X12 |
When the Map Envelope Level command is executed for the ISA segment. |
Select Trade Partner Lookup from the Rule Command - New window. In the Parameters section, select the variables for each of the parameters of the Trade Partner Lookup command by clicking 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:
Trade Partner ID – select an option that contains the Trade Partner ID:
Memory Variable – the Memory Variables window displays next to the Rule Command window. Double-click a memory variable to automatically enter it in the Trade Partner ID text box.
Record/Field – the Records/Tables window displays next to the Rule Command window. Double-click a field to automatically enter it in the Trade Partner ID text box.
System Variable – the System Variables window displays next to the Rule Command window. Double-click a system variable to automatically enter it in the Trade Partner ID text box.
All Trade Partner Default – parameter options are:
Yes – ECRTP uses the default ALL Trade Partner entry if no trade partner match can be found.
No – ECRTP does not use the default ALL Trade Partner entry if no trade partner match can be found.
Lookup Trade Partner from ECRTP Log – this parameter is used for TA1 maps. This is an optional parameter. The parameter options are:
Yes – ECRTP queries the log for the information necessary to locate the trade partner entry.
No – ECRTP does not query the ECRTP log for the trade partner entry. This is the default option.
Map Name Extension – select an option that contains the map name extension. This is an optional parameter you can select if you have used map name extensions to distinguish multiple maps for the same transaction within a single trade agreement. The options are:
Memory Variable – the Memory Variables window displays next to the Rule Command window. Double-click a memory variable to automatically enter it in the Map Name Extension text box.
Record/Field – the Records/Tables window displays next to the Rule Command window. Double-click a field to automatically enter it in the Map Name Extension text box.
System Variable – the System Variables window displays next to the Rule Command window. Double-click a system variable to automatically enter it in the Map Name Extension text box.
Clear – select this option to remove the Memory Variable, Record/Field, or System Variable options that you selected previously for the Map Name Extension parameter.
ST03 (X12) – select an option that contains the ST03 element. This is an optional parameter you can select if you have used the ST03 element to distinguish multiple X12 maps for the same transaction within a single trade agreement. The options are:
Memory Variable – the Memory Variables window displays next to the Rule Command window. Double-click a memory variable to automatically enter it in the ST03 (X12) text box.
Record/Field – the Records/Tables window displays next to the Rule Command window. Double-click a field to automatically enter it in the ST03 (X12) text box.
System Variable – the System Variables window displays next to the Rule Command window. Double-click a system variable to automatically enter it in the ST03 (X12) text box.
Clear – select this option to remove the Memory Variable, Record/Field, or System Variable options that you selected previously for the ST03 (X12) parameter.
Transaction – select this parameter to associate with this command either a specific transaction or all the transactions. The options are:
Select a single outbound transaction to associate with the command.
ALL – associate all outbound transactions with the command. This is the default.