During map development, the program places map files in a <project name>/<map name> directory structure. When the map files are transferred to the production server, this same directory structure can be kept or the user can specify a different location. The program uses the fully qualified path to the generated map file as part of a required runtime parameter/ switch for inbound and outbound processing. The ECRTP uses this information to dynamically switch maps at runtime, based on the trading partner search option specified by the user at runtime.
In outbound processing, the map name is the second required switch/parameter and the fully qualified path to the generated map file directory is part of the required -dg (or -dm) switch/parameter. Although a map name is required when the runtime program is invoked, the program does a lookup to see whether a different map should be selected and used. Using the internal trading partner ID information in the incoming application data, ECRTP searches the trading partner database for a record with a matching CUSTNO field. Once it has found a match, ECRTP replaces the current map name with the map name in the trade agreement table (TBCODE field) if it is different from the current map.
In inbound processing, the fully qualified path to the generated map file directory is part of the required -dg (or -dm) switch/parameter. ECRTP uses either the default trading partner lookup criteria or the lookup specified by a parameter passed in (or switch set) at runtime to dynamically select the correct map at runtime.
Non-ODBC users have two trading partner lookup options:
Trading partner search criteria |
Switch/parameter |
---|---|
group sender |
default |
reverse - group receiver |
-er |
ODBC users have fifteen trading partner lookup options:
Trading partner search criteria |
Switch/parameter |
---|---|
group sender |
default |
interchange sender |
-e5 |
group and interchange sender |
-e2 |
interchange receiver |
-e6 |
group and interchange receiver |
-e4 |
group sender and receiver |
-e1 |
interchange sender and receiver |
-e7 |
group and interchange sender and receiver |
-e3 |
reverse - group receiver code |
-er |
reverse - interchange receiver |
-e10 |
reverse - group and interchange receiver |
-e13 |
reverse - interchange sender |
-e11 |
reverse - group and interchange sender |
-e12 |
reverse - interchange sender and receiver |
-e8 |
reverse - group and interchange sender and receiver |
-e9 |