You might have trading relationships with many customers and vendors, therefore receiving and sending multiple XML documents to and from different trading partners in one day. As the system receives and sends XML transaction requests, it scans the XML for an element or a value that you define per transaction for each trading partner. This element or value tells the system which trading partner is sending or receiving the XML document and which transaction map to use to translate the XML.
Note: You must define the mapping selection criteria before you can save a transaction map.
For each transaction map for each trading partner, define one of the following:
Note: For a purchase order that you send to your vendor, use only the PayTo and ShipFrom elements as selection criteria.
To define an element tag as the selection indicator:
Right-click a transaction in the Trading Partner Tree and select Edit Transaction Map to display the transaction map.
Select the Mapping Selection Criteria tab to display the available elements to define as map indicators.
If the transaction map is a received transaction type, the content of the DTD for the received document displays in this tab. If the transaction map is a sent-only transaction type, the content of the DTD for the sent document displays.
Right-click the element to use as the indicator and select Set Selection Criteria to display the Selection Criteria dialog box.
Select the This Tag Exists option to indicate that the system should look only for this tag, not a value associated with this tag.
Click OK to save the setting and return to the Mapping Selection Criteria tab.
The option you selected displays with a red highlight.
From the File menu, select Save Transaction Map to save the map settings.
Note: To change the indicator, repeat steps 3 through 6.
To define a value as the selection indicator:
Right-click a transaction in the Trading Partner Tree and select Edit Transaction Map to display the transaction map.
Select the Mapping Selection Criteria tab to display the available elements to define as map indicators.
If the transaction map is a received transaction type, the content of the DTD for the received document displays in this tab. If the transaction map is a sent-only transaction type, the content of the DTD for the sent document displays.
Right-click the element to use as the indicator and select Set Selection Criteria to display the Selection Criteria dialog box.
Select the This Tag Exists With Values option to indicate that the system should look for values defined within the element.
In the Value field, enter the value the system uses to identify this trading partner and press Enter to add the value to the list.
Repeat steps 5 and 6 to add additional values, as necessary.
Note: To delete a value from the list, select the value and click the X button.
Click OK to save the setting and return to the Mapping Selection Criteria tab.
The option you selected displays with a red highlight.
From the File menu, select Save Transaction Map to save the map settings.
Note: To change the indicator, repeat steps 3 through 8.
See Also:
Previewing XML Transaction Maps