MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Distribution > Synchro > Programs > Delivery Requests Maintenance - Purpose > Delivery Requests Maintenance - Calculations

Delivery Requests Maintenance - Calculations

GA132E

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 number of decimals for quantity fields (Cat. 446).

b.   The Release Nature codes are loaded into an array (Cat. G12).

c.   The maximum length of a delivery request period for date comparison (Cat. G19).

d.   User Authorization for user ID (Cat. G23).

e.   Authorization for adjacent periods (Cat. G26).

2.   The Delivery Request Header file (GA210M1) is read.  If a record is found and the status is 'open' or 'offset,' the delivery request type is retrieved from category G11.  If neither status appears,  the program aborts.

3.   All previous delivery request numbers and dates for this item/delivery point are loaded into an array.

4.   All valid endorsements with previous validity dates are loaded into an array.

B.   Mainline

1.   The Delivery Request Maintenance Synchro screen (GA132S02) is displayed.  It allows the user to maintain Synchronization data, which may be associated with the delivery request.  Synchronization data display discrepancies between ordered and delivered quantities up to a certain date and time.  Validation is performed by the subroutine SYNVAL; the data is saved on the Item/Delivery Point Master (GA120M2) by SYNUPD.  Comments can be associated with the delivery request release and the Synchronization data defined for an item/delivery point relationship by entering 'Y' on the comments field.  When this occurs, the conversation proceeds with the Comments screen (GA132S03); otherwise, the program returns control to GA130E to continue with the Recap screen.

2.   If the comment flag was set on the Synchro screen, the Delivery Request Maintenance Comment screen (GA132S03) is displayed.  The user can enter up to 99 lines of comments; the Comment file (GA210M3) is updated by the subroutine COMUPD.  After the user presses ENTER, the program returns control to GA130E to continue with the Recap screen.