1.Functional Description
This function will calculate the current level costs for the items selected in the cost rollup
program (P30820). Current level costs are the costs for the item alone. At this point no cost rollup of
component items is done. The single level costs calculated will be updated in the cost component file
F30026.
1.1Purpose
The purpose of this business function is to calculate the manufactured or net added cost for the item
to process. The cost rollup or total cost for item is also effected by the cost calculated. The
cost calculated will be moved to the cost rollup cost for purchased items, but for manufactured items,
the cost will be added to the cost rollup cost.
1.2Setup Notes and Prerequisites
This business function will be called for each item in the F30UI007, and for each branch in the
branch/plant array. No pre-requisites exist for this business function, although this business function
acts as a prerequisite to B3000670.C (update where used) and B3000680.C (update total cost information)
1.3Special Logic
This business function will build the following link list:
Current Level Costs Link List
COSTcost type (i.e. A1,B1)
XSCRCost Amount
XSMCManufactured Cost
XSCRRolled Costs
2.Technical Specifications
2.4Processing
A. Business function Setup:
Destroy Current Level Link List - if it exists.
Work Fields
WK Factor 29.9
WK Rate 29.9
WK Manufacturing Costs29.9
WK Amount Simulated Cost 15.0
WK Cost Rollup15.0
WK Time Of Day
WK Update Date
WK Job Number
WK User Id
WK Program Id
WK Delete FlagEV01
WK Customer Item ShortITM
0.0 BF Get Audit Info
1.0. Fetch a record from the Item Cost Component Table (F30026) where MMCU=DS Branch, ITM=DS Item
Number, LOCN = blanks, LOTN = blanks, and LEDG = DS Cost Method until fetch fails.
(DS Item Component Flag is != '#"), calculate Amount - Simulated Manufacturing Cost (XSMC).
blanks, and DS Purchased Item is equal to 'P', Calculate costs for 'A1' purchased items.
Item Location Table (F41021).
Return LOCN and LOTN.
Number, LEDG = DS Cost Method. Return unit Cost (UNCS).
Number, LEDG = DS Cost Method, MCU = DS Branch. Return unit cost (UNCS).
Number, LEDG = DS Cost Method, MCU = DS Branch, LOCN = F41021 LOCN, LOTN = F41021
LOTN.
zero simulated cost for 'A1' manufactured items.
move blanks to rate code
zero out factor
zero out rate
and rate code.
equal blanks, recalculate Factor/Rate Code costs. Check Factor != zeros, and Check Rate !=
Zeros.
F30026 XSF>DS Factor Sim
F30026 XSRC>DS Rate Code Sim
F30026 XSR>DS Rate Sim
CurrentLevelCostLL>DS Current Level Costs LL
'0'>DS Suppress Error Messages
XDS Error Message ID
WK Factor<DS Factor
WK Rate<DS Rate
Initialize WK Manufacturing Costs to Zero.
WK Manufacturing Costs = WK Rate.
If WK Rate is equal to 0 and WK Factor is NOT equal to 0,
WK Manufacturing Costs = WK Factor.
If WK Factor is not equal to 0 and WK Rate is not equal to 0, WK Manufacturing Costs
= WK Rate * WK Factor.
would have already been applied.
SAR 1147653 Chameleon Characters (change '#' to '&')
Cost not equal 0, and DS Parent Cost Percent is not equal to 1.0,
and first character of factor code != '&'
and first character of factor code != '*'
and first character of rate code != '&'
and first character of rate code != '*'
If DS Parent Cost Percent != 1.00
and Rate != zero
and Factor != zero
and first character of factor code != '*'
and first character of rate code != '&'
and first character of rate code != '*'
Costs
1.3. Calculate Amount Simulated Cost Rollup (XSCR).
1.3.1. If Single Level Costing (DS SingleLevel = '1') and the Item was not selected (DS
ItemComponentFlag = '#'),
Component Flag is != '#"),
WK Amount Simulated Cost Rollup = F30026 Amount Simulated Cost Rollup (XSCR)
Rollup.
WK Amount Simulated Cost Rollup = LL Cost Amount + F30026 Amount Simulated Cost
Rollup (XSCR).
Cost into link list by cost type.
Cost Type = F30026 Cost Type (COST
Cost Amount= WK Amount Simulated Cost Rollup
Manufactured Costs= WK Manufacturing Costs
Rollup Costs= F30026 Amount Simulated Cost Rollup (XSCR)
SAR 1343671 add last four tests to this if statement because entire record must be blanks for
deletion.
F30026 Amount Simulated Mfg. Cost (XSMC) = 0, and F30026 Amount Simulated Cost Rollup (XSCR) = 0,
and factor code = blank, and rate code = blank, and rate = zero, and factor = zero. delete the
F30026 record.
SAR 2383685 add the test to see if the costs between the simulated & frozen are
different.
If (Compare F30026 Amount - Simulated Mfg. Cost to F30026 Amount - Frozen Cost not = 0 or
(compare F30026 Amount - Simulated Cost Rollup to F30026 Amount - Frozen Cost Rollup not
= 0), set cCostChangedFlag = 2.
******************Process*****************
DS Branch>DS Branch
DS CurrentProcessItem >DS Item Number
'M'>DS Routing Type
DS Process Batch Qty >DS Batch Quantity
'1'>Select Batch Quantity
DS As of Date>DS As Of Date
F30026 CostType(COST)>DS Cost
'0'>DS Return Pointer
WK OutsideOperationExists<DS OutsideOperationExists
WK ManufacturedCost > DS Manufactured Costs
DS CostMethod> DS Cost Method
DS ProcessBatchQuantity> DS ProcessBatchQuantity
DS ProcessConvFactor > DS ProcessConv.Factor
WK Delete Flag> DS Delete Flag
F30026 Cost Type(COST)> DS Cost Type
DS Job Number> DS Job Number
*********End Process**********
For B733.3, we changed:
Replace lpDS->cProcessItem variable with lpDS->cPurchasedItem
Validate lpDS->cPurchaseItem with values:
'0'1a'1a
D3001460 - Update Current Level Costs
Data Item Description I/O Required Notes
ITM Item Number Short I Y used for F30026 key
MCU Branch I Y " "
LEDG Cost Method I Y " ", from processing options
ASDE1 As of Date I Y From Processing Options
VC01A Single Level Costing I Y '1' = not explode BOM from P.O. any other
value = exlpode BOM.
ORDW Item Component flag I Y from F4101 for item to process
CLEV Item Cost Level I Y From F4101 for item to process
EV01 PurchasedItem I Y STKT from F4102, UDC 2nd Desc.
LEDG Purchased Item Cost Method I Y from processing options
GENLNG CostRollupLinkedList I/O Y
ITM CurrentProcessItem I O From F3003, (for Xref item #) Value
retrieved in P30820 ER.
EV01 Process CoByProducts I O From Processing Options P30820
EV01 CoByProductFound I O Indicates if CoBy Products exist for the
Process. Set in BF B3001610
SPHD ProcessItem I O 'R' = Process
MN29D9 ParentCostPercent I O F3404% - retrieved in BF ???, in P30820
ER
BQTY Process Batch Quantity I O Determined from Rtg. for Process Costing
in P30820 ER
CBUP Process Conv. Factor I O Saved Process values from setup. Value
retrieved in BF3001610
JOBS Job Number I Y Required for Cache Processing
UM Unit of Measure I Y Require for convert UOM to Primary
EV01 CostChangedFlag O N Return from BF if there is changes
between Simulated Cost Rollup and Frozen cost.Rollup or between Amount - Simulated Mfg. Cost to Amount -
Frozen Cost
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnItemNumberShort | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranch | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
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
| ||||
cSingleLevelCosting | VC01A | char | NONE | NONE |
This is a generic field used for video constants display. | ||||
cItemComponentFlag | ORDW | char | NONE | NONE |
Future use. The Order With code determines if work order generation (P31410) will explode this items bill of material to create orders for this
| ||||
cItemCostLevel | CLEV | char | NONE | NONE |
A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a
| ||||
cPurchasedItem | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szPurchasedItemCostMethod | 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
| ||||
idCurrentLevelCostsLL | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cProcessItem | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnParentCostPercent | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
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
| ||||
jdAsOfDate | ASDE1 | JDEDATE | NONE | NONE |
The date used for effectivity checking. Enter a specific date to display documents (orders, bills of material, routings, as applicable) that are
| ||||
mnCurrentProcessItem | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
cProcessCoByProducts | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCoByProductFound | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnProcessBatchQuantity | 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
| ||||
mnProcessConvFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szUnitOfMeasure | UM | char | OPT | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
| ||||
cCostChangedFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cCostByWorkCenter | CWC | char | OPT | NONE |
A code, maintained in the Manufacturing Constants program (P3009), that indicates whether the system tracks cost variances for discrete
| ||||
szOutsideOpCostMethod | LEDG | char | OPT | 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
|
B3000770 Check For Outside Operation | ||||
B3001470 Calculate Factor And Rate | ||||
B3001630 Costing Process Current Level | ||||
B3003770 Cache Process Cost Item Information | ||||
B4000520 Get Item UoM Conversion Factor | ||||
B4001040 Get Item Master Description UOM | ||||
B9800100 Get Audit Information | ||||
B9800181 Environment List Business Functions | ||||
B9800420 Get Data Dictionary Definition | ||||
X0005 Get User Defined Codes |
F30026 Item Cost Component Add-Ons | ||||
F300261 Item Cost Component Detail | ||||
F41021 Item Location File | ||||
F4105 Item Cost File |