Documentation >
MAC-PAC Technical Library >
Manufacturing >
Shop Floor Control >
Programs >
Labor Requirements Update - Data Entry - Purpose >
Labor Requirements Update - Data Entry - Calculations
Labor Requirements Update - Data Entry - Calculations
SF200E
A. Housekeeping
1. All work fields are defined and program constants are initialized.
2. Depending on the value of the update type parameter passed to the program, the program is set either to process machine or labor updates (i.e., multi-line entry by machine or employee).
3. The company name record (COMNAM) is retrieved from the System Control file (CT100M). If the record is not found, a warning message is sent to the system operator, and processing continues.
4. The following information is retrieved for the Reference file (REFERP).
a. The date format is retrieved from the category 049. If this record is not found, a message is sent to the system operator, the date format defaults to MMDDYY, and processing continues.
b. The number of decimal positions for other quantities is retrieved from category 446. If the record is not found, a message is sent to the system operator and the program aborts.
c. The applications installed are retrieved from category 012. If the record is not found, a message is sent to the system operator and the program aborts.
d. The accounting grace period flag is retrieved from category 456 if IA is installed. If this record is not found, a message is sent to the system operator and processing continues using a default value of N for grace period flag.
e. The indirect hours codes are retrieved from category 458 and loaded into array IHC. This array will be used for validation of indirect hours codes.
5. Fast Path plant is moved to plant field on screen. If no FPPLNT, VALPLT occurs, and a critical error of 'INVALID PLANT' is displayed.
6. If an error has not occurred, two of the four main subfiles are deleted.
a. When the From-To Option on the Plant/Warehouse Description file is N (No), the Multi-Line L/R Update Machine Detail (From-To) Screen (SF200S02) and the Labor Detail (From-To) Screen (SF200S05) are deleted.
b. When the From-To option on the Plant/Warehouse Description file is Y (Yes), the Multi-Line L/R Update Machine Detail (Non From-To) Screen (SF200S03) and the Labor Detail (Non From-To) Screen (SF200S06) are deleted.
B. Mainline
1. Depending on the value of the update type parameter passed to the program, either the Machine Function Select Screen (SF200S01) or the Labor Function Select Screen (SF200S04) is displayed. The following user-input fields are validated. See the Shop Floor Control User Manual screen section for validation rules.
a. Machine Function Select Screen: Machine Number, Employee Number and Shift Number.
b. Labor Function Select Screen: Operator Number, Crew Reporter and Shift Number.
2. Once the select screen input has been validated, an input-capable subfile (detail screen) is displayed. This allows multi-line data entry of L/R update transactions.
3. When any number of transactions (up to 100) have been entered by pressing the ENTER key, the program validates each line of the subfile.
a. Valid transactions are written to the off-line L/R Update Transactions file (SF120AP).
1) If an operation is a crew operation, only the Quantity Completed recorded by the crew reporters is posted to the Labor Requirements file. Quantity Completed, when recorded by other crew members, is accepted but only posted to the Transaction Register file.
b. Invalid transactions are written to the L/R Update Work file (SF200AP).
4. When all records in the subfile have been processed, the invalid transactions are read back into the subfile so the user may correct them. Processing then continues as described above.
5. The program returns to the select screen if:
a. The user presses the ENTER key on a detail screen where no detail line exists; or
b. All transactions are valid.