Trade Partner Lookup command

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.

Table 2-2: Trade Partner Lookup for different EDI 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: