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

Transfer Control Requisition Maintenance - Calculations

TC110E

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 initialized.

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

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.   Quantity field size 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 428) and loaded into an array.  If no records are found for the user, a flag is set to authorize the user to all company/warehouses.

e.   The following general processing information is retrieved:

(1)  Applications installed   (category 012)

(2)  Part types   (category 405)

(3)  Requisition status codes   (category 006)

(4)  Requisition release authorization   (category 010)

(5)  Transfer Control system defaults   (category 005)

(6)  Requisition print codes   (category 014)

(7)  Requisition close reason codes   (category 012)

B.   Mainline

1.   The Requisition Maintenance Function Select screen (TC110) is initialized with blanks and displayed to the user.

Two maintenance modes are allowed: add a new requisition or change an existing requisition.

2.   The user's input is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.  Any errors are highlighted and the appropriate error message is displayed.

3.   In change mode, the Requisition file (TC110M1) is checked to see if the record to be changed is in use.  If so, the Function Select screen is redisplayed with an error message.  If the record is not in use, the record is retrieved and formatted for display on the multi-line screen. 

4.   The Requisition Maintenance Multi-Line screen (TC110S02) is initialized and displayed.  In change mode, the part description is retrieved from the Part Master file (DE100M).

5.   To enter data, the user first must enter a line number and maintenance code at the bottom of the screen.

a.   For add transactions, the line number is automatically incremented by one each time.  For change transactions, the line number must be one of the existing line numbers displayed.

b.   Four maintenance codes are allowed:

(1)  A - Add the line.

(2)  C - Change the line.

(3)  X - Cancel the line.

(4)  R - Reinstate the line.

c.   The user's input is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.

6.   If no errors have occurred, the multi-line screen is redisplayed.

a.   For an add transaction, a line is displayed in the subfile at the bottom of the screen for data entry.  All fields are initialized with blanks and are open to data entry.

b.   For a change transaction, the existing record is displayed in the subfile.  Certain fields are open for data entry depending on whether the requisition has been covered.

c.   For cancel and reinstate transactions, the data is displayed in the subfile.  If the transaction is valid, the line status field of the selected line is changed accordingly.  For a cancel/close transaction, a valid close reason code is needed to close the line.

7.   The added or changed input is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.

8.   The Requisition file is updated with the data from the multi-line screen.  If automatic number assignment is in effect, the Reference file (REFERPU) is updated with the next available requisition number (category D08).  The net change flag on the receiving Part Master file is updated if the following conditions are true:

·     Receiving company/warehouse is manufacturing.

·     Supply code is M.

·     Requisition quantity or receiving due date has been changed.

·     Promised ship date has been changed.

The net change flag on the supplying Part Master file is updated under the following conditions:

·     Supplying company/warehouse is manufacturing.

·     Relief code is M.

·     Supplying plant is different than the receiving plant or they have the same supply code and it is not M.

·     Requisition quantity or receiving due date has been changed.

·     Promised ship date has been changed.

9.   An audit trail record is written to the Transfer Requisition Audit Trail file (TC110BPl).

10.  If the user presses F5 - Detail (while in add or change mode) or F14 - Detail Add (while in change mode the Requisition Maintenance Detail screen (TC110S03) is displayed for the line number entered in the subfile at the bottom of the multi-line screen.  If no line number was entered, the line number defaults to the next available line number.

11.  The detail screen is initialized and displayed.

a.   For an add transaction, the screen is initialized with the values from the multi-line screen and the remaining fields are filled with blanks.

b.   For a change transaction, the screen is initialized with the data from the Requisition file for the current requisition line.  Decodes are retrieved from the Reference file and the arrays loaded in Housekeeping.

12.  The user's input is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.

13.  If no errors have occurred, the record is updated on the Requisition file.  An audit trail record is formatted and written to the Requisition Audit Trail file.

14.  If the user presses F12 - Comments, the Requisition Maintenance Comment Screen (TC110S04) is displayed for the current requisition line number if the screen is accessed from the detail screen only.  If the program calls TC110S04 from the multi-line screen, comments added will be for the whole requisition, not for any specific line.

a.   For an add requisition transaction, the subfile is loaded with blanks.

b.   For a change transaction, the existing comments are retrieved from the Requisition Comment file (TC110M2) and loaded into the subfile.

15.  Up to 99 comment lines may be entered for each requisition line.  When the Enter key is pressed, the print code is validated.  See the Transfer Control User Manual, File Maintenance Screens for validation rules.

16.  The Requisition Comment file (TC110M2) is updated with the added or changed comments.  An audit trail record is formatted and written to the Requisition Comment Audit Trail file (TC110BP2).

TC110E Program Menu