1.Functional Description
1.1Purpose
Determine if there are CoByProducts for the process. Calculate the CoByProduct Cost Percent. Store
the CoByProducts in memory.
1.2Setup Notes and Prerequisites
This function is performed once per Routing if the CoByProducts are being rolled.
The CoByProduct Cache must be created in ER prior to calling this business function.
The CoByProduct Cache must be cleared or deleted after processing each Process.
1.3Special Logic
Calculate Ratio Percent should be passed a '1' when called from the Current Level Update Section of
P30820.
2.Technical Specifications
2.4Processing
WorkFields
ProcessBranch
ProcessNumber
ProcessType
ProcessBatchQty
ProcessUOM
ProcessTotalAmt(P30820)
CoByExtraCost(P30820)
CoByAmount(P30820)
1.0. Initialize DS CoByProductFound = '0', WK CoByProductAmount = 0,
2.0. Convert Batch Quantity to Transaction UOM.
BF Batch Quantity, Format for File and Display (B3000160)
Branch= DS Process Branch
Item Number= DS Process Item
Batch Quantity File= DS Process Batch Qty Prim
Display UOM= DS Process UOM
Batch Quantity Display = DS Process Batch Qty Trans
F4101Genlngx
Primary UOMx
Suppress Error Messages= '1'
Error Message Idx
ConversionFactor= DS Process UOM Conv Factor
4.0. Search selected Bill of Material for CoByProducts save any CoByProducts into memory.
Index:
where: ITM = DS Process Item
TBM = 'M'
QNTY = DS ProcessBatchQtyTrans
UM = DS ProcessUOM
return: EFFF, EFFT, COBY, KIT, KITL, KITA, MMCU, OPSQ, F$RP
4.1.2. Check F3002 CoByProduct(COBY) = 'C' or 'B'.
4.1.3. initialize Cache to blank/zero.
4.1.4. assign DS CoByProductFound = '1'
4.1.5. Save CoByProduct in Cache.
Cache Process= DS Process Item
Cache CoByProductItem2nd= F3002 KITL
Cache CoByProductItem3rd= F3002 KITA
Cache CoByProductBranch= F3002 MMCU
Cache CoByProductOperation= F3002 OPSQ
Cache CoByFeatureCostPercent= F3002 F$RP
Cache CoByQuantityPrimary= F3002 BQTY
4.1.6.3. If F3404 Item Number = F3002 Item Number,
Exit 4.1.5.
sub F3404 Feature Cost Percent from Cache CoByProductCostPercent.
CoByProductCostPercent = 0.
Retrieve Primary UOM from the Item Master using F3002 KIT, F3002 MMCU.
Convert F3002 BQTY from primary to transaction using F3002 UOM and F4101 UOM1.
Assign Cache CoByQuantityTransaction = result.
Assign Cache CoByConversionFactor = Conversion Factor for converting from F3002 Uom to
F4101 UOM1.
ProcessCoByProduct (B3001650)
5.0. If DS CalculateRatioPercent = '1', Get the CoByProduct Ratio Percent of Process
products
(B3001650). (LOOP)
(LOOP)
Where:
MCU= Cache CoByProductBranch
LOCN = blanks
LOTN= blanks
LEDG= DS Cost Method (LEDG).
5.2.1.1.3. Determine CoBy cost percent from F3404, until fetch fails. (LOOP)
F3404 MMCU= Cache CoByProductBranch
If F3404 Item Number (ITM) = Cache CoByProductItem and
F3404 Branch (CMCU) = Cache CoByProductBranch
F3404 F$RP, stop fetching to F3404.
WK ProcessTotalAmt = WK ProcessTotalAmt + WK CoByAmount
5.2.3. Update Cache with Cache CoByProduct%Rate and Cache CoByTotB1- C4.
BF Cache, ProcessCoByProduct (B3001650)
(B3001650).
Update Cache
D3001610 - Costing, Initialize CoBy Product Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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
| ||||
mnProcessBatchQtyPrim | 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
| ||||
szProcessUOM | 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). | ||||
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
| ||||
szCostType | 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
| ||||
cCoByProductFound | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnProcessBatchQtyTrans | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. | ||||
mnProcessUOMConvFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
cCalculateRatioPercent | EV01 | 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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. |
B3000160 Convert Batch Quantity | ||||
B3001650 Cache, Process CoBy Product | ||||
B3003870 Get Work Center By Operation Sequence |
F3002 Bill of Material Master File | ||||
F30026 Item Cost Component Add-Ons | ||||
F3404 Co-Products Planning/Costing Table | ||||
F4101 Item Master |