Documentation >
MAC-PAC Technical Library >
Distribution >
Synchro >
Programs >
Shipping Proposal Generation - Purpose >
Shipping Proposal Generation - Calculations
Shipping Proposal Generation - Calculations
GA230E
A. Housekeeping
1. In addition to the Reference File categories described in the Common Processing Routines - Housekeeping section, the following records are retrieved from the Reference file (REFERP):
a. The company name is retrieved from category G21.
2. The first shipment number used is generated by calling subroutine SHNBGE. SHNBGE accesses category 439 for the next available sales order and, starting from this number, creates a number higher than any existing sales order (OP100M1) or shipping proposal (GA230M1).
B. Mainline
1. MAINLN reads the first record where offset release and backlog release have the same criteria to be grouped together (using GA200AL1, a logical file joining the Offset Release file GA200M and the Backlog Release file GA220AP). If such a record is found, it must have undergone the blocking/forwarding process (GA220E, GA222E) and thus have been blocked. If a release has only been found on GA200M, it must be open. All further records are read by subroutine BRKPRC.
2. The next working date, depending on company/warehouse, is retrieved as the selection date (DATCAL) and compared with the preparation dates of the offset and backlog releases.
3. A shipping proposal for each offset/backlog release which has a preparation date less than or equal to the selection date must be created. The following steps are processed:
a. If a new item is found, a new picker line is created (PRLINE) and all files are updated (UPDPRC, see description below).
b. If a new picker header is required, it will be created by subroutine PRHEAD.
c. The status of the offset release (open or blocked) determines the initialization of the workfields. LINPRC performs general initialization of the workfields, which consists of retrieving information from the files that are listed, such as the Part Master (DE100M), Warehouse Balance (IC140M), Delivery Request Header and Detail files (GA210M1, GA210M2), Endorsement Master (GA120M3), and Part/Delivery Point Master (GA120M2).
d. BRKPRC reads the next record (GA200AL1) and calculates a new preparation date if a new company/warehouse was found (DATCAL).
4. If the lot control option is set to 'Y' (field IZLCF on Part Master DE100M), PRLINE calls subroutine LOTASN to perform the reservation for the new picker line. LOTASN calls CRTLAB to generate the label numbers for the lot controlled parts.
5. Subroutine UPDPRC updates the Delivery Request Header and Release files (GA210M1, GA210M2) by setting their status flags to 'B' (blocked). The offset release status for each processed record is set to 'C' (closed), all late records are blocked (status 'B') on the Offset Release file (GA200M). The Item/Delivery Point file (GA120M2) is updated to save the maintenance date and time.
6. Errors occurring during the batch process are recorded on the message file GA999AP, sorted by warnings and critical and abort errors.