1.Functional Description
1.1Purpose
This function calculates a total quantity with shrink for a parent item by taking the passed
transaction quantity, converting it to the item's primary unit of measure, and increasing (or decreasing) that
quantity based on the shrink factor (IBSRNK) and Shrink Factor Method (IBSRKF), percentage yield (%)
or yield quantity (F), in the Item Branch table (F4102) for that item. The result is rounded based
on the "Round to Whole Number" value (SNS) on the Item Master (F4101).
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
The value returned in the Component Multiplier field will be the quantity used to extend the
component required quantity. The components or routing hours are extended by the requested qty w/ shrink
converted to the Bill of material or routing UOM.
2.Technical Specifications
2.4Processing
1.0.Convert Requested Qty to primary UOM.
UOM.
Branch. Retrieve the Rounding Indicator (SNS) from F4101 using DS Item Number.
3.0.Calculate Requested Qty w/ Shrink.
IF F4102 SRNK is equal to 0, WK Requested Qty w/ Shrink Primary = WK Requested Qty Primary
IF F4102 SRNK is not equal to 0 and F4102 SRKF = '%',
(F4102 SRNK / 100))
IF F4102 SRNK is note equal to 0 and F4102 SRKF is not equal to '%',
4.0.Round the Requested Qty w/ Shrink.
5.0.Convert to BOM UOM to calculate the component multiplier.
6.0.Calculate Requested Qty w/ Shrink in Requested Qty UOM.
If F4101 Rounding indicator is equal to 'R', round DS Requested Qty w/ Shrink
D3003220 - CalculateQuantityWithShrink
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnParentItemNumberShort | KIT | MATH_NUMERIC | OPT | NONE |
Parent Short Item Number (KIT) - Required Input Parameter
| ||||
szBranchPlant | MMCU | char | OPT | NONE |
Parent Branch (MMCU) - Required Input Parameter
| ||||
mnRequestedQuantity | TRQT | MATH_NUMERIC | OPT | NONE |
Requested Qty in Requested Qty UOM (TRQT) - Required Input Parameter
| ||||
mnRequestedQtyWithShrink | RQTE1 | MATH_NUMERIC | OPT | NONE |
Requested Qty w/ Shrink in Requested Qty UOM (RQTE1) - Output parameter. Business function returns
| ||||
cShrinkFactorMethod | SRKF | char | OPT | NONE |
Shrink Factor Method (SRKF) - Output parameter; returns the shrink factor method for the parent item
| ||||
mnShrinkFactor | SRNK | MATH_NUMERIC | OPT | NONE |
Shrink Factor (SRNK) - Output parameter; returns the shrink factor for the parent item from F4101.
| ||||
szRequestedQtyUOM | UOM | char | OPT | NONE |
Requested Qty UOM (UOM) - Required input parameter. Business function will convert the requested qty
| ||||
szBOMRoutingUOM | UOM | char | OPT | NONE |
BOM Routing UOM (UOM) - Required input parameter. Business function will convert the component
| ||||
mnComponentMultiplier | MN29D9 | MATH_NUMERIC | OPT | NONE |
Component Multipier (MN29D9) - Output parameter. Business function returns requested qty w/ shrink
| ||||
cSuppressErrorMsgs | EV01 | char | OPT | NONE |
Suppress Error Msgs (EV01) - Optional input parameter. If set to '1', business function will
| ||||
szErrorMsgId | DTAI | char | OPT | NONE |
Error Msg Id (DTAI) - Output parameter; returns error message numbers if errors are encountered in
|
None |
None |