How do I divert the traffic of some EDI Standard Transaction invoices based on the data from the NAD segment?
You can do the following to change the application data file on receive map processing:
1. On NAD data element value, repeat the data element mapping and enter
on literal line, then repeat the data element mapping and enter
&IF(variable='NAD value') &SET DIAPPFILE newfile
on literal line.
2. Or, if you have many values and many application files, enter
&SET DIAPPFILE &E(variable TL 'translation table name')
and create a Forward Translation table using WDI 3.3 Client:
Source value = newfile
Target value = NAD value
Note: In Receive Maps, the source EDI Standards value is looked up in the translation tables list of target values. When a match is found, the corresponding source value is substituted. Refer to the Client User Guide or the online help for more information.