1.Functional Description
1.1Purpose
Calculate the On Hand Quantity and Available Quantity for the Item. The On Hand Quantity and
Available Quantity are returned in the Items primary unit of measure. On Hand Quantity can be calculated
with or without adjustment for safety stock.
1.2Setup Notes and Prerequisites
Set flag to indicate whether or not safety stock should be subtracted from the On Hand Quantity.
Retrieve Safety Stock, From Potency, Thru Potency, From Grade, and Thru Grade from F4102
Retrieve Primary and Secondary UOM from F4101
1.3Special Logic
Returns the On Hand Quantity and Available Quantity in Primary Unit of measure.
2.Technical Specifications
2.4Processing
1.0.Call business function to Calculate Availability
BSFN F41021 CalculateAvailability
DS Item NumberShort >mnShortItemNumber
DS BranchPlant>szBranchPlant
DS From Potency>mnFromPotency
DS Thru Potency>mnThruPotency
DS From Grade>szFromGrade
DS Thru Grade>szThruGrade
DS Primary UOM>szPrimaryUOM
DS Secondary UOM>szSecondaryUOM
DS AvailableQty<MnQuantityAvailable
'2'>mnIndex
'2'>mnKeys
DS OnHandQtyPrimary<mnQtyOnHand
2.0.If DS Subtract Safety Stock = '1', subtract safety stock from quantity on hand.
^
D3003120 - F3002 Calculate Availability
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cSubtractSafetyStock | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnSafetyStock | SAFE | MATH_NUMERIC | NONE | NONE |
The quantity of stock kept on hand to cover high-side variations in demand. | ||||
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
| ||||
szBranchPlant | 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
| ||||
mnFromPotency | FRMP | MATH_NUMERIC | NONE | NONE |
A number that indicates the minimum potency or percentage of active ingredients acceptable for an item.
The system displays a warning
| ||||
mnThruPotency | THRP | MATH_NUMERIC | NONE | NONE |
A number that indicates the maximum potency or percentage of active ingredients that is acceptable for an item.
The system displays a
| ||||
szFromGrade | FRGD | char | NONE | NONE |
A user defined code (40/LG) that indicates the minimum grade that is acceptable for an item.
The system displays a warning message if
| ||||
szThruGrade | THGD | char | NONE | NONE |
A user defined code (40/LG) that indicates the maximum grade that is acceptable for an item.
The system displays a warning message if
| ||||
szPrimaryUOM | 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
| ||||
szSecondaryUOM | UOM2 | char | NONE | NONE |
A user defined code (00/UM) that indicates an alternate unit of measure for the item. | ||||
mnCFPrimaryToComponent | MN29D9 | MATH_NUMERIC | NONE | NONE |
This is a generic field used as a work field in Everest. | ||||
mnAvailableQty | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. | ||||
mnOnHandQtyPrimary | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. |
None |
None |