Functional Description
Purpose
The purpose of this function is to calculate the routing costs associated with a work order and to call the ShopFloorCostsCache (B3104410) to add the
costs to the Shop Floor Costs cache.
Setup Notes and Prerequisites
Business Function Paramenters:
1. cMode - Not currently used.
2. szCacheJobNumber - This unique job number is passed to the ShopFloorCostsCache to create a unique cache instance.
3. cSuppressErrorMessage - Passing a '1' through this parameter indicates that errors encountered during processing should not be set in the
message center.
4. szErrorMessage - The error ID for errors encountered during processing is returned from the function via this parameter. The error ID is
returned regardless of the value in the cSuppressErrorMessage parameter.
5. idhCursor - Not currently used.
6. mnWorkOrderDocumentNumber - Indicates the work order for which shop floor costs should be calculated. This parameter is used to
retrieve records from the Routing (F3112) table.
7. szOrderType - The work order Order Type.
8. szBranch - The Branch containing the work order.
9. idMfgConstantsPtr - A pointer to the Manufacturing Constants for the Work Order Branch.
Technical Specifications
Retrieve the Mfg. Constants
Retrieve the First Routing record (B3103050).
While Routing records exist
Retrieve Work Center Rates (B3000030) and (B3000150)
Calculate Routing Costs
Store Routing Costs in Shop Floor Costs Cache (B3104410)
Close the Work Order Routing table (B3103050).
D3104130 - Shop Floor Activity Calculation - Data Structure
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szCacheJobNumber | JOBN | char | OPT | INPUT |
The code that identifies the work station ID that executed a particular job. | ||||
cSuppressErrorMessage | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessage | DTAI | char | OPT | OUTPUT |
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
| ||||
idhCursor | GENLNG | ID | OPT | BOTH |
General purpose ID variable. | ||||
mnWorkOrderDocumentNumber | DOCO | MATH_NUMERIC | OPT | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderType | DCTO | char | OPT | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
szBranch | MMCU | char | OPT | 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
| ||||
idMfgConstantsPtr | GENLNG | ID | OPT | NONE |
General purpose ID variable. |
B3000030 Get WC Data | ||||
B3000150 Get WC Rates Data | ||||
B3000450 Get MFG Constants Data | ||||
B3103050 F3112 Retrieve Work Order Routing Records |
None |