1.Functional Description
completion was done it will update the quantity at operation of the next operation for the current
Document Number.
1.1Purpose
This function will update the Shop Floor Control Routing Instructions (F3112) table with labor,
setup, and machine hours; calculate completed and scrapped quantities; and update the status code. If a
completion was done it will update the quantity at operation to the next operation.
1.2Setup Notes and Prerequisites
Set on "Suppress Error Messages" to suppress the runtime error message handling. Otherwise, if an
error occurs the error message will be displayed on the message line.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
1.Fetch Shop Floor Control Routing Instructions Table (F3112) DS DOCO, DS OPSQ, and OPSC= Blank.
MCU, CTS5, CTS2, SETA, CTS4, CTS1, LABA, MACA, CTS3,
CTS6, DCT, SOQS, QMTO, UORG, SOCN, OPST, UPMJ, USER, PID,
and JOBN, TDAY.
"07". This will retrieve direct labor (STLF), setup
labor (STFF), and machine (MSFR) hourly rates used
later in calculations.
WLDCTO. This will retrieve the Service Order Type.
a. If call to B3000150 (1.1) failed, set hourly rate
fields to zero, direct labor (STLF), setup labor
(STFF), and machine (MSFR).
b. If Fetch to F3112 (1) passed with no errors
continue processing.
calcs.)
WLLABA = WTHRW + WLLABA.
WTGPAY = WLPWRT * WTHRW
Else
WLCTS4 = WTGPAY + WLCTS4.
2.If WTTYR equal '2', Calculate Setup Hours.
WLSETA = WLSETA + WTHRW.
WTGPAY = IWSTFF * WTHRW.
WLCTS2 = WTHRW + WLCTS2.
WLCTS5 = WTGPAY + WLCTS5.
3.If WTTYR equals '3', Calculate Machine Hours.
WLMACA = WTHRW + WLMACA..
WTGPAY = IWMSFR * WTHRW.
WLCTS3 = WTHRW + WLCTS3.
WLCTS6 = WTGPAY + WLCTS6.
4.If WTTYR equals '4' (quantities completed) or '5' (quantities scrapped)
a.If unit of measure (WLUOM) from the F3112 table is blank, then set to the value of
unit of measure (WTUOM) from the F31122 table.
b.Call VerifyAndGetPartsList B3100470 with Return Pointer = 0, Call Type = 1,
Suppress Error Message = 1, Index = 6, Keys = 3, COBY = I, DOCO = WTDOCO, OPSQ =
WTOPSQ. WMCPIT and WMCMCU are returned.
c.If unit of measure (WLUOM) from the F3112 table is equal to unit of measure
(WTUOM) from the F31122 table, add 1 to work field CUTL-WF.
else
If call to B3100470 passed (4b):
Call GetItemUoMConversionFactor B4000520 with Branch Plant = WTMMCU, From
Unit of Measure = WTUOM, To Unit of Measure = WLUOM, Quantity to Convert = '0',
Inventory Interface Flag = 'Y', and Short Item Number = WMCPIT,
else
Call GetItemUoMConversionFactor B4000520 with Branch Plant = WTMMCU, From
Unit of Measure = WTUOM, To Unit of Measure = WLUOM, Quantity to Convert = '0',
Inventory Interface Flag = 'Y', and Short Item Number = WTKIT.
If no errors from call to B4000520:
Assign Conversion Factor From to To to a work field CUTL-WF.
else
Add 1 to work field CUTL-WF.
5.Create a work field PDONE-WF and assign it to zero.
If WTTYR equals '4' and EV02 equals '0', Calculate Completed Quantities.
WQTY-WF = WTSOQS * CUTL-WF.
WLSOQS = WQTY-WF + WLSOQS.
WLQMTO = WLQMTO - WQTY-WF.
PDONE-WF = WQTY-WF / WLUORG.
6.If WTTYR equals '5' and EV02 equals '0', Calculate Scrapped Quantities.
WQTY-WF = WTSOCN * CUTL-WF.
WLSOCN = WLSOCN + WQTY-WF.
WLQMTO = WLQMTO - WQTY-WF.
7.If WTOPST not Blank, then WLOPST = WTOPST.
8.WLDCT = DS DCT.
WLPID = DS PID.
9.Call GetAuditInformationB9800100 to retrieve time and date stamp information, then
update WLUSER, WLJOBN, WLUPMJ, WLTDAY.
10.Update Shop Floor Control Routing Instructions (F3112) Table.
11.If PDONE-WF not zero. Fetch the next record from Shop Floor Control Routing
Instructions (F3112) table with WTDOCO. If WLOPSC is Blank, calculate quantity at operation and
update the table. Retrieve OPSC, UORG, and QMTO from (F3112)
Calculate quantity at operation:
Work Field WK299-WF = WLUORG * PDONE-WF
WLQMTO = WLQMTO + WK299-WF.
Update Shop Floor Control Routing Instructions (F3112) Table.
^
D3100520 - Update Hours And Quantities
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnDocumentNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnParentItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szBranch | MMCU | char | NONE | NONE |
A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which
| ||||
mnOperationSequenceNumber | OPSQ | MATH_NUMERIC | NONE | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
szOperationStatus | OPST | char | NONE | NONE |
User defined code system 31, type OS. The operation status code that identifies the current status of a work order or engineering change
| ||||
cTypeOfHours | TYR | char | NONE | NONE |
A code that indicates the type of time entered. Valid values are:
1 Run Labor Hours
2 Setup Labor Hours
3 Machine Hours
4
| ||||
szDocumentType | DCT | char | NONE | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
mnHoursWorked | HRW | MATH_NUMERIC | NONE | NONE |
The number of hours associated with each transaction. | ||||
mnGrossPay | GPAY | MATH_NUMERIC | NONE | NONE |
The actual gross pay amount for an employee. This amount is different from the distributed gross pay amount used for labour
| ||||
mnQuantityShipped | SOQS | MATH_NUMERIC | NONE | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
mnQuantityCanceled | SOCN | MATH_NUMERIC | NONE | NONE |
The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for
| ||||
szUnitOfMeasure | UOM | char | NONE | NONE |
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box). | ||||
szProgramID | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cSuperBackflushFlag | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
jdGLDate | DGL | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction is to be posted.
The company constants specify the date range for each
| ||||
mnEmployeeNumber | AN8 | MATH_NUMERIC | OPT | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
cPayPointStatus | PPRF | char | OPT | NONE |
A code that indicates whether the operation should be taken to a status of complete or partially complete. Valid values are:
Blank Not
|
B3000150 Get WC Rates Data | ||||
B3100470 Verify And Get Parts List | ||||
B4000460 Free Ptr To Data Structure | ||||
B4000520 Get Item UoM Conversion Factor | ||||
B4001040 Get Item Master Description UOM | ||||
B9800100 Get Audit Information |
F3112 Work Order Routing |