Documentation >
MAC-PAC Technical Library >
Distribution >
Synchro >
Programs >
Synchro Shipments Forwarding - Purpose >
Synchro Shipments Forwarding - Calculations
Synchro Shipments Forwarding - Calculations
GA222E
A. Mainline
MAINLN forwards all item/delivery point relationships (GA120M2) that have a backlog quantity less than zero:
The preparation date is determined as follows:
1. Retrieval of the valid endorsement at the date received as parameter.
2. Search of a possible endorsement in an other plant.
3. Calculation of the first working day in both plants (if step 2 was successful), or in plant determined in step 1 if step 2 was not successful. The shipping calendars are retrieved from category G09.
4. The preparation date will be the earlier and the backlog will be shipped from the associated plant.
Subroutine RTDROR is called to search for all open offset releases for the actual blanket order and item/delivery point with the calculated ship date on the Offset Release file (GA200M) The preparation date equals the ship date:
· If the search is successful, a new record is written to the Backlog Release file (GA220AP) with the data from the found offset release (subroutine PCDROR). The backlog quantity (negative value) on the Item/Delivery Point file (GA120M2) is saved as a positive value on GA220AP.
· If the search is unsuccessful, subroutine PCENDR finds a valid endorsement for this item/delivery point and blanket order and creates a new record with this data on GA220AP. The backlog quantity (negative value) on the Item/Delivery Point file (GA120M2) is saved as a positive value on GA220AP.
5. If any error occurs during processing, a record is written to the error file GA999AP (ERRPRC).