1.Functional Description
1.1Purpose
This function is used to calculate CoBy Product costs.
1.2Setup Notes and Prerequisites
This function is performed once per Routing Operation if the CoByProducts are being rolled and
CoByProductsFound.
If CoByProductFound = '1'
This business function is called after all costs for the routing operation have been calculated.
B3001660 - stores Outside Operation Costs are stored in a Linked list.
B3001610 - stores the CoByProducts into Cache.
1.3Special Logic
None
2.Technical Specifications
2.4Processing
Work fields
WK Cost Type
WK AmountCostType
WK AccumCoByOperation
WK AccumCoByAmount
0.0. WK AccumCoByOperation = 0
1.0. Read CoByProducts from cache where Cache Process Branch = DS Process Branch, Cache Process
Item = DS Process Item, and Cache Operation Sequence = DS Operation Sequence, and DS JOBS. until fetch
fails.. (BF B3001650) (LOOP)
from cache.
1.2. Process Cost Type B1
1.2.2. Set WK AmountCostType = DS B1AccumAmount
1.2.3. Call Internal function - AddUpdateCostComponent
1.3.2. Set WK AmountCostType = DS B2AccumAmount
1.3.3. Call Internal Function - AddUpdateCost/Component
1.4.2. Set WK AmountCostType = DS B3AccumAmount
1.4.3. Call Internalfunction - AddUpdateCostComponent
1.5.2. Set WK AmountCostType = DS B4AccumAmount
1.5.3. Call Internalfunction - AddUpdateCostComponent
1.6.2. Set WK AmountCostType = DS C1AccumAmount
1.6.3. Call Internal function - AddUpdateCostComponent
1.7.2. Set WK AmountCostType = DS C2AccumAmount
1.7.3. Call Internalfunction - AddUpdateCostComponet
1.8.2. Set WK AmountCostType = DS C3AccumAmount
1.8.3. Call Internalfunction - AddUpdateCostComponent
1.9.2. Set WK AmountCostType = DS C4AccumAmount
1.9.3. Call Internalfunction - AddUpdateCostComponent
1.10.2. Set WK CostType = Cache CostType
1.10.3. Set WK AmountCostType = Cache TotalCostAmount
1.10.4. Call Internal Function - AddUpdateCostComponent.
Cache and Assign Cache CostAmount = Cache CostAmount + Cache CostAmountOperation. Assign Cache
CostAmountOperation = 0.
Internal Function: AddUpdateCostComponent
1.0. Retrieve CoByAccumCosts Cache using B3003010 where Cache Cost Type = WK Cost. Assign WK
AccumCoByAmount = Cache Cost Amount. Assign WK AccumCoByOperation = Cache CostAmountOperation.
1.1. Fetch Cost Component record from F30026
Where: ITM = Cache CoByItemNumber
MMCU= Cache CoByProductBranch
LOCN= blank
LOTN= blank
LEDG= DS Cost Method
COST= WK Cost
F30026 PFLG = '1'
accumulate amount of Co/By cost for this operation.
100)).
3.2. WK AccumCoByOperation = WK AccumCoByOperation + WK CoByNetAdded.
3.3. If WK CoByNetAdded is not equal to zero and Cache FeatureCostPercent is not equal to
zero, determine cost per unit.
If PO CoByProducts = '1' and Cache CoByCostPercent is not equal to 1, WK CoByNetAdded =
WK CoByNetAdded * Cache CoByCostPercent.
SAR 2809743:
Do the following, except for B2. (Since B2 is Setup cost, we don't need to extend the
cost)
If (strcmp (szCostType, "B2")! = 0)
4.0. Update CostAmountOperation in CoByAccumCostCache using B3003010 where Cost Type = WK Cost.
Assing Cost AmountOperation = WK AccumCoByOperation.
5.0. If fetch of F30026 was successful, update the F30026 record.
6.0. If fetch of F30026 was unsuccessful, add a record to F30026.
D3001620 - Costing Calculate CoBy Product Costs
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnOperationSequence | 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
| ||||
mnCoByProductTotal | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnB1AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnB2AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnB3AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnB4AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnC1AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnC2AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnC3AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnC4AccumCost | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
szCostMethod | LEDG | char | NONE | NONE |
A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards
| ||||
mnProcessBatchQtyTrans | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
| ||||
idOutsideOperPointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
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
| ||||
mnProcessItem | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szProcessBranch | 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
| ||||
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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnProcessUOMFactor | QTY | MATH_NUMERIC | OPT | NONE |
The number of units associated with an asset. | ||||
szWorkCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
cCostByWorkCenter | CWC | char | OPT | NONE |
A code, maintained in the Manufacturing Constants program (P3009), that indicates whether the system tracks cost variances for discrete
|
B3001650 Cache, Process CoBy Product | ||||
B3001660 Costing Process Outside Operation | ||||
B3003010 Cache Process Co By Accum Costs | ||||
B3003900 F300261 Cost Components Detail Cache | ||||
B9800100 Get Audit Information |
F30026 Item Cost Component Add-Ons |