The inbound ECRTP functions convert data from a standard EDI message format to a flat file, ODBC database table, or XML/HTML data. Three API function calls are available for running inbound transaction maps:
extern "C" -declspec(dllimport) int WINAPI INBOUNDMAPPER(int argc, char
extern "C" -declspec(dllimport) int WINAPI INBOUNDRunCmd(char *cmd);
extern "C" -declspec(dllimport) int WINAPI INRun(LPSTR, MEMIOSTRUCT**)
The parameters passed to the DLL for inbound processing have the same values as the switches used on the command line of the executable program for inbound maps—wrmi32.exe.
For INBOUNDMAPPER, the runtime parameters are passed in using an array. “argc” is the number of cells in the array “argv”. The first “argv[0]” cell is the function name (INBOUNDMAPPER) and the remaining cells contain the runtime parameters in the required order shown below.
For INBOUNDRunCmd, the runtime parameters are passed in as a string, in the required order shown below. “cmd” is the string containing the runtime parameters.
For INRun, the runtime parameters are passed in as a string, in the required order shown below. “LPSTR” is the string containing the runtime parameters. “MEMIOSTRUCT” is a pointer to an array of MEMIOSTRUCT structures that are used to redirect memory I/O files.