Documentation >
MAC-PAC Technical Library >
Distribution >
Order Processing >
Programs >
Sales Order File Reorganization - Purpose
Sales Order File Reorganization - Purpose
OP020E
The Sales Order File Reorganization program (OP020E) reads the Sales Order Header file (OP100M1) sequentially and checks each record for a status of closed. If the status is closed, the program compares the last maintenance date of that record to the horizon date that you entered when requesting the sales order file reorganization. If the last maintenance date is less than or equal to the horizon date, the system deletes the sales order header record, and its associated line, comment, discount details, option, option audit trail, price detail, mfg errors detected, mfg comments generated, and mfg rules trace records from their respective files (OP100M1, OP100M2, OP100M3, OP100M6, EC200M, EC200BP, and EC240AP).