Documentation >
MAC-PAC Technical Library >
Manufacturing >
Electronic Data Collection >
Programs >
Electronic Data Collection Transaction Router - Purpose
Electronic Data Collection Transaction Router - Purpose
BC200E
The Electronic Data Collection Transaction Router program (BC200E) routes Electronic Data Collection transactions to the appropriate transaction files. The program is run in two modes, batch and called. In batch mode, the program is called from BCASYNCMON (Electronic Data Collection Monitor) where electronic data collection transactions are read in from the uploaded file (BC200AP). The transaction type then determines which transaction file the record is written to. If the program is not able to identify a transaction, the transaction is written to the Transaction Error report (BC200PF2). Validation is performed on the shipping transaction fields before the header, line, comment and line location workfiles are written. No further validation is performed on the purchase order and inventory adjustment transactions. This program also triggers the off-line execution of the update programs using these transactions. The asynchronous message queues or trigger files are written to start these programs. In "called" mode, BC200E is called directly from OP119E (Shipping and Billing Monitor) to process shipments. In this mode an internal data structure is passed as parameter to match the size of BC200AP and only one type of transaction (shipment) is being processed. The processing includes validation of the shipment lines and creation of shipping/billing workfiles (OP120APx) for the unchanged shipment lines. Any error encountered during validation will be written to Shipping Error Transaction file (OP120E).