1.Functional Description
1.1Purpose
This business function will calculate the quantity of a component item needed to produce a specific
quantity of a parent item.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.4Processing
1.0 Determine if a unit of measure conversion needs to be performed.
1.1 Call Verify and Get Item Master with the DS Item Number.
1.2work field quantity $WQTY = DS QNTY.
If DS UnitOfMeasure NE DS UOM1
call business function GetItemUOMConversionFactor converting
'FROM' UM 'TO' UOM1, component branch DS CMCU, and the quantity
to convert is DS QNTY.
put the converted quantity returned into a work field.
In this document it will be referred to as $WQTY.
Pass in TFLA that was retrieved with X4101.
2.0 Check for variable component item
If DS FORQ EQ 'V'
or DS FORQ EQ ' '
or DS FORQ EQ '%'
and DS BQTY EQ zeros
then divide $WQTY by DS CONV
2.a IF DS VC01A = '1'
IF DS FORQ EQ '%'
and DS BQTY NE zeros
then divide $WQTY by DS BQTY
end
IF DS FORQ EQ 'F'
and DS BQTY NE zeros
then divide $WQTY by DS BQTY
end
IF DS FORQ EQ 'F'
and DS BQTY EQ zeros
and DS CBUP NE 1
then divide $WQTY by DS CBUP
end
end
3.0 If needed, inflate quantity for step scrap percent.
IF DS STPP NE zeros
and $WQTY NE zeros
work field = (divide DS STPP by 100) * $WQTY
add work field to $WQTY
4.0 Consider feature cost percent.
(divide DS F_RP by 100) * $WQTY
5.0 If a variable component consider parent requested quantity.
IF DS FORQ EQ 'V'
or DS FORQ EQ ' '
or DS FORQ EQ '%'
and DS BQTY EQ zeros
multiply DS TRQT * $WQTY
6.0 Return the component quantity calculated $WQTY in 4.0 or 5.0 if it was performed.
D3000580 - Calculate Component Quantity
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szComponentBranch | CMCU | char | NONE | NONE |
A secondary or lower-level business unit. The system uses the value that you enter to indicate that a branch or plant contains several
| ||||
mnComponentQty | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. | ||||
szComponentUM | UM | char | NONE | 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,
| ||||
szComponentPrimaryUOM | UOM1 | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA
| ||||
cFixedOrVariable | FORQ | char | NONE | NONE |
A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item
| ||||
mnBatchQuantity | 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
| ||||
mnComponentStepScrapPercent | STPP | MATH_NUMERIC | NONE | NONE |
A value that the system uses to increase or decrease the amount of materials to account for loss within the operation. The system updates
| ||||
mnUOMConversion | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
mnComponentFeatureCostPercent | FRP | MATH_NUMERIC | NONE | NONE |
This period number allows you to specify a 52 period financial reporting date.
This is the reporting period used by several J.D. Edwards
| ||||
mnParentRequestedQty | TRQT | MATH_NUMERIC | NONE | NONE |
A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and
| ||||
mnComponentItemNumber | 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
| ||||
cMode | VC01A | char | NONE | NONE |
This is a generic field used for video constants display. | ||||
szItemNumber | UITM | char | NONE | NONE |
A number that the system assigns to an item. It can be in short, long, or third item number format. | ||||
mnAcctingCostQty | ACQ | MATH_NUMERIC | NONE | NONE |
An amount that the system uses in the Cost Rollup program to determine the allocation of setup costs. The system totals the setup costs
| ||||
mnCalculatedComponentQuantity | MN29D9 | MATH_NUMERIC | OPT | NONE |
This is a generic field used as a work field in Everest. |
B4000460 Free Ptr To Data Structure | ||||
B4000520 Get Item UoM Conversion Factor | ||||
X4101 Validate and Retrieve Item Master |
None |