MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Manufacturing > Transfer Control > Programs > Transfer Order Receiving - Purpose > Transfer Order Receiving - Calculations

Transfer Order Receiving - Calculations

TC130E

A.   Housekeeping

1.   A parameter list is set up for the fast path and help screen parameters.

2.   Key lists are defined for each file retrieved by the program.

3.   Workfields are defined and program constants are initialized.

4.   The following records are retrieved from the Reference file (REFERP):

a.   The date format record (category 049) is retrieved.  If this record is not found, the date format defaults to MMDDYY.

b.   The default company/warehouse is retrieved from the workstation assignment record (category 428).  This company/warehouse is validated against the array of authorized company/warehouses for the user.

c.   The quantity field sizes record (category 446) is retrieved.

d.   All company/warehouses to which the user is authorized are retrieved from the user company/warehouse authorization record (category 409) and loaded into an array.  If no records are found for the user, a flag is set authorizing the user to all company/warehouses.

e.   The following Reference categories are retrieved and stored in arrays in housekeeping:

·     Transfer Control Defaults     (D05)

·     File Status Codes                (015)

·     Order Status Decodes                     (403)

·     Shrinkage Reason Codes    (D11)

5.   The following records are retrieved from the System Control file (CT100M):

a.   The lot option is retrieved from ICCTL1.

b.   Valid balance types are retrieved from ICCTL2.

6.   All valid company/warehouse combinations are retrieved from the Warehouse Description file (IC170M) and stored in an array.  The default company/warehouse retrieved in step 5.b is validated here.

B.   Mainline

1.   The Function Select screen is formatted and displayed.

2.   The Function Select screen is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.

3.   If the enterable fields are valid (company, warehouse, order number, shipment number), the Transfer Order Header and Line files are accessed to retrieve information about the order and to record the receipt.  Potential validation errors include the following:

a.   If a shipment the user is trying to receive has already been received in full or is closed, an abort is written as a critical error in the error subfile on the screen.

b.   If the company/warehouse on the screen does not match the company/warehouse on the order header a message is displayed.

4.   If a valid order number and shipment number were entered on the Function Select screen, the multi-line screen is displayed.

Multi-Line Screen

1.   The multi-line screen is formatted and displayed.

2.   The order quantities shipped and received to date are shown and the current shipment's quantity field is enterable, as well as the receipt location and balance type.

3.   Command keys available include:

F5 - Detail

Takes the user to the stock location detail screen where a receipt may be recorded into different stocking locations.

F10 - Function Select

Displays the Function Select screen.

F20 - Final Receipt

Forces the user to enter a shrinkage code to record discrepancies in shipment quantities sent and received.

F21 - End Receipt

Ends the receipt conversation at this time and records the quantity received up to this point for this shipment.

Detail Stock Location and Lot Select Screens (TC130S03, TC130S04)

1.   The detail screen is initialized for display and for recording receipts into valid stocking locations (IC150M).

2.   The detail screen is displayed.

3.   F4 and F8 are the only command keys available on the detail screen; Entering incorrect data (letters, quantity greater than quantity shipped, etc.) will result in a critical error.

4.   Stock locations are validated against the Stock Location Validation file (IC150M).  Balance types are validated against the System Control file; the receipt quantity is validated to ensure it is not greater than the quantity shipped.

5.   The detail screen is validated.  See the Transfer Control User Manual, File Maintenance Screens for more validation rules.

Relationship to TC135E

TC130E calls TC135E (Transfer Order Receiving Update program) to update all files designated to be updated in the Transfer Order Receiving conversation.  This online update also clears work file members after posting data to data base files.  Parameters passed to TC135E include (in order):

1)   Supplying company

2)   Supplying warehouse

3)   Receiving company

4)   Receiving warehouse

5)   FOB code

6)   Transaction receipt date

7)   Update parameter (last successful update)

8)   Error code field

9)   Receiving plant

10)  Receiving plant manufacturing flag

11)  Order number

TC130E Program Menu