Documentation >
MAC-PAC Technical Library >
Manufacturing >
Transfer Control >
Programs >
Transfer Order Inquiry - Shipment List - Purpose >
Transfer Order Inquiry - Shipment List - Calculations
Transfer Order Inquiry - Shipment List - Calculations
TC920E
A. Housekeeping
1. Parameter lists, key lists, and constants used by the program are defined. Work fields are defined and initialized.
2. The following general processing information is retrieved from the Reference file (REFERP).
a. Shrinkage codes (category D11).
b. Transfer Order Picker Release Codes (category D15).
c. TC Authority Defaults (category D18).
d. CPF file access status codes (category 015).
e. Date Format (category 049).
f. Planner Codes (category 235).
g. Shipment Route (category 320).
h. Order status codes (category 403).
i. User/Company Authorization (category 409).
j. FOB Codes (category 419).
k. User Assignment (category 428).
l. Number of decimal places for quantity fields (category 446).
3. The Rounding Quantity field is initialized depending on the number of decimal places for quantity fields.
4. The valid Company/Warehouse Array (CWA) and Plant ID Array (PLT) are loaded from the Warehouse Description file (IC170M).
B. Mainline
Control is passed among six screens.
1. Next step processing is performed to determine whether the Shipment List by Item, Shipment List by Due Date, Shipment List by Order, Shipment Detail, or Receipt Detail screen should be displayed.
2. Shipment list display processing is performed.
a. A priming read is performed:
· on the Transfer Order Line by Part Logical file for List by Part selection;
· on the Transfer Order Line by Due Date Logical file for List by Due Date selection;
· on the Transfer Order Shipping/Receiving file for List by Order Selection.
b. The subfile is loaded with shipment records. The select fields are set to blanks, the date is formatted, and the balance due is calculated for each record.
c. The subfile is displayed.
d. If a valid command key is pressed, command key processing is performed.
e. If the user enters a selection, the select field is validated as being equal to X. If more than one record was selected, no records were selected, or a character other than X was used, a message is displayed.
f. The selected record is read and the selection field is reset to blanks.
g. If F6-Receipt Detail was pressed, the receipt file is checked to ensure records exist for the entered criteria.
h. The selected record is saved for redisplay when the user returns to the list screen.
i. Depending on the user's selection, the Shipment Detail or Receipt Detail screen is displayed.
3. Shipment detail display processing is performed.
a. A priming read is performed on the Transfer Order Shipping Location/Balance Type file and the Transfer Order Shipping Location/Lot Number file. If no records are found, a message is displayed and the program ends.
b. Records are formatted for display.
(1) Outstanding quantity is calculated as quantity shipped minus quantity received.
(2) Shrinkage decodes are retrieved.
c. When the subfile is filled or all records have been formatted, the subfile is displayed.
4. Receipt detail display processing is performed.
a. A priming read is performed on the Transfer Order Receiving Location/Balance Type file. If no records are found, the program ends.
b. The received quantity for each line is converted to a numeric value.
c. When the subfile is filled or all records have been read, the subfile is displayed.