MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Distribution > Synchro > Programs > Shipping List Print - Purpose > Shipping List Print - Calculations

Shipping List Print - Calculations

GA540E

A.   Housekeeping

1.   In addition to Section 2.1, the following records are retrieved from the Reference file (REFERP):

a.   The vendor name is read from category G21.

b.   The vendor address is retrieved from category G20.

c.   Category G19 is accessed for the pre-printed form flag.

d.   The delivery point and consolidation point country codes from category 007.

2.   The shipping list header record (GA145M1) is retrieved for the shipping list that is given as input (PASHNB, PADNIX, PASYNX).  This record retrieves the following information:

a.   Corresponding blanket order record from the blanket order file (GA120M1).

b.   Ship-via code from category G19.

c.   Payment terms from category 321.

d.   Customer record from the customer master (ARCUSTL1).

e.   Vendor description from category 315.

f.    Ship reason decode from Reference File category M11.

3.   The output queue for this profile is retrieved from category G25.

B.   Mainline

1.   DLNPRT performs the general processing for every shipping list line.  All lines are read for the shipping list header that was retrieved in housekeeping.  If the shipped quantity is not zero, the following processing is performed:

a.   The total number of packaging units is calculated by TOTPAU.

b.   The total number of handling units is calculated by TOTHLU.  Packaging and handling units are retrieved from category G27. 

c.   The total number of mixed handling units is calculated by TOTUMM.

2.   The following subroutines perform print functions:

a.   HDRPRT prints the header information.

b.   UNPRT creates the footer of the first page.

c.   NUNPRT prints a normal page.

d.   LINPRT performs specific print functions, such as new page treatment, no labels to print, or only one packaging or handling unit.

e.   BOTTOM prints the end of the report.

f.    COMPRT prints the comments.  If the print code is equal to 1 or 3, the comment is printed.

3.   If any errors occur, they are recorded on the Message file (GA999AP) by subroutine ERRPRC, sorted by warnings and critical and abort errors.

GA540E Program Menu