Documentation >
MAC-PAC Technical Library >
Manufacturing >
Just-in-Time >
Programs >
Production Schedule Report Request - Purpose >
Production Schedule Report Request - Calculations
Production Schedule Report Request - Calculations
JT310E
A. Housekeeping
1. See the Common Processing Routines - Housekeeping section of this manual for a general discussion of this subroutine. Processing specific to this program is described below.
2. A parameter list is defined to receive parameters.
3. Key lists are defined for each keyed file the program accesses.
4. Work fields are defined and program constants are initialized.
5. The operating system's file status code is retrieved from the Reference File (category 015). If this record is not found, the program terminates.
6. The date format (category 049) is retrieved from the Reference file (REFERP). If this record is not found, the date format defaults to MMDDYY and processing continues.
7. The user authorization (category 409) is retrieved from the Reference file (REFERP).
8. The workstation assignment (category 428) is retrieved from the Reference file (REFERP).
B. Mainline
1. Depending on the value of the REPREQ field, either the Production Schedule Report Request screen (JT310S01) or the Scrap Expense Report Request screen (JT310S02) is displayed.
2. Data entered by the user is validated. If the user entered request codes 1 or 2 on the Production Schedule Report Request screen, they must enter additional information on JT310S03. Then, data entered by the user is validated. See Just-in-Time User Manual for validation rules.
3. If invalid data is entered, the field in error is returned to the screen in reverse image with an appropriate message in the error subfile.
4. Once valid, the transaction is written to the Production Schedule Report Request file (JT310AP) for request codes 3-8 or JT315AP for request codes 1-2 to the Scrap Expense Report Request file (JT530AP).