MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Manufacturing > Just-in-Time > Programs > Flow Receipts to FA - Online - Purpose > Flow Receipts to FA - Online - Calculations

Flow Receipts to FA - Online - Calculations

JT120E

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.   Parameter lists and key lists needed by the program are defined.  Work fields and constants are defined and initialized.

3.   The following information is retrieved from the Reference file (REFERP).

a.   The operating system's file status codes (category 015) are retrieved.  If the file access codes are not found, the program terminates.

b.   Reference File category 409 is read to determine which plants the user is authorized to.

c.   The default plant is (category 428) is retrieved from the Reference file.

d.   The date format (category 049) is retrieved.  If this record is not found, a message is sent to the system operator, the date format defaults to MMDDYY, and processing continues.

e.   The quantity field sizes (category 446) are retrieved.  If they are not found, the program terminates.

f.    The Order Starting Numbers category (C09) is used to retrieve the next available flow authorization number.  If this record is not found, the program ends.

g.   The Assign Lots option is retrieved from Reference File category Y34, Lot System Defaults.   If not found, lots are not assigned automatically.

h.   The Multiple Location Priority Code Default is retrieved from Reference File category Y34, Lot System Defaults. 

4.   The following information is retrieved from the System Control file (CT100M).

a.   The Inventory Control control record one (ICCTL1) is retrieved to check the lot option parameter.  The lot option defaults to Y if this record is not available.

b.   The Inventory Control control record two (ICCTL2) is retrieved for the valid balance types.  If this record is not found, the program terminates.

B.   Data Entry Screen

1.   The Function Select screen is displayed.  The plant is formatted with the value passed through the fast path.  If the plant is blank, it defaults to the default plant initialized in Housekeeping.

2.   After the appropriate fields have been entered and the user presses the ENTER key, the program validates the fields.  See the Just-in-Time User Manual for validation rules. 

3.   If the user requested the single entry, the Single Entry screen (JT120S02) is displayed.  All fields are initialized to blank, except the production center that is passed from the SELECT screen, and the balance type that is defaulted to the On-Hand balance. 

4.   After all the appropriate fields have been entered and the user presses the ENTER key, the program validates the fields.  See the Just-in-Time User Manual for validation rules.

5.   The user can receive the flow into a specific location.  If F8 - Display Stock Location is pressed, the Warehouse Balance file (IC140M) record is read for the location control flag (WBLCTL) to determine if the Part Location Search program (IC960E) is called (if WBLCTL = Y) or if the Stock Location Search program (IC900E) is called (if WBLCTL = N).  The location retrieved must be on the Location Validation file (DE140M).  If the part is location controlled and ENTER is pressed on the receipt screen, the Valid Location file is searched for empty locations in the current company/warehouse.  If a location is entered for a part that is location controlled it is passed to the Empty Location Determination program (IC980E) to check if it is empty or not.  If the location is not empty, a warning message is displayed.  If ENTER is pressed again, the location is accepted.  If the entered location is empty, the flow is received into that location.

6.   If the entered part does not have any scheduled production, and if the part schedule is enabled to be maintained (depending on part status in Reference File category D88), a production schedule will be created at the time of receipt update.

If the Allow Flow Receipt Over-Reversal flag on Reference File category K03 is not equal to 'Y', the' reversal quantity cannot be greater than the total quantity received on the FA.  A critical error message : "Reversal quantity exceeds quantity received" will be displayed.  If the value of this flag is 'Y', the reversal quantity can be greater than the total quantity received on the FA.  A warning message "Reversal quantity exceeds quantity received" will be displayed.  The ENTER key should be pressed again to submit the transaction.

7.   For reversal transactions, if the Allow Flow Receipt Over-Reversal flag on Reference File category K03 for the plant is Y, the reversal quantity entered can be greater than the original receipt quantity.  A warning message will be displayed before the transaction is submitted.  If this flag is N, the reversal quantity cannot be greater than the original receipt quantity and a critical error message will be displayed.

8.   If the transaction is invalid, the screen is redisplayed with the appropriate fields highlighted and the corresponding error messages.

9.   If the transaction is valid, it is written to the Flow Receipts Asynchronous Transaction file (JT120DP) and a message is sent to the JIT asynchronous monitor, which calls the Flow Receipts/Issues program to process the transaction.

10.  If a Y is entered in the Enter QC Specs field, the Quality Control Specification Maintenance program (IC155E) is called.

11.  If the user requested Mass Entry, the Mass Entry screen (JT120S03) is displayed. 

a.   Reference File category C22 is read to determine the default options to be used.  If no record exists for the current user, a record for blank user is read.  If it doesn't exist, the following option default values are set:  Protect Cell is set to 'Y' (Yes), Display Quantity is set to 'Y', Quantity in Container is set to 'N' (No), Display Lot Fields is set to 'Y', Immediate Processing is set to 'Y'.  If a record exists, the option values are retrieved.  These options may be changed by using F14-Options command key, but changes are lost if the user returns to the select screen or exits the program. 

b.   The fields are protected or not displayed depending on the options:

-     The production center field is protected if the production center is not blank and the Protect Cell option is 'Y'.

-     The quantity field is not displayed if the Display Quantity Option is 'N'.  All the following flow receipts will default to one item or one container, depending on the Quantity in Container Option. 

-     The lot fields are not displayed if the Display Lot Fields Option is 'N'.  However, if a flow receipt is made on a lot-controlled part, these fields will be displayed. 

12.  The transaction is then validated as the Single Entry Flow Receipt.  See the Just-in-Time User Manual for validation rules. 

13.  If the transaction is valid, then it is written either to the subfile on the screen if the Immediate Processing Option is 'N', or to the Group of Flow Receipts Async file (JT121DP), if the Immediate Processing is 'Y'. 

14.  If the user presses F11-Review, the Review Screen (JT120S04) is displayed.  If the Immediate Processing Option is 'N', the user may change the flow receipts revision level, quantity balance type, producing location, or FIFO date.  The flow receipt consolidation can be done (by the F8-Consolidation command key):  All the flow receipts with same production center, same part, same revision level, same balance type, same production location, same lot number, same FIFO date are consolidated so that the total quantity is summed.

JT120E Program Menu