Functional Description
Purpose
This business function calculates the Economic Order Quantity(EOQ), Suggested Order Quantity, Lead
Time days and months available for an item.
Setup Notes and Prerequisites
The following need to have been retrieved using the appropriate business function before calling this
function:
-QuantityAvailable(Use CalculateQuantityAvailable shell)
-AverageCost (Use GetItemCost business function)
-LeadTimeDays (Use GetSupplierItemColumns)
-SafetyStock (from the item balance)
-MaximumOrderQuantity (from the item balance)
-MinimumOrderQuantity (from the item balance)
NOTE: This business function is called from an application (POGENERATOR)that browses the Item
Balance file. It does not therefore fetch the reorder point information from the Item Balance. This
information must be retrieved separately if calling this function from elsewhere.
D4001120 - Calculate EOQ and ROP
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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
| ||||
idPointerToF41001DS | GENLNG | ID | NONE | NONE |
Special Input Expected
| ||||
mnItemNumber | 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
| ||||
mnQuantityAvailable | QAVAL | MATH_NUMERIC | NONE | NONE |
A number that indicates the quantity that is available.
For example, the available quantity might consist of the on-hand quantity minus
| ||||
mnLeadTimeDays | ALTD | MATH_NUMERIC | NONE | NONE |
The average number of days from the date of the purchase order to the date that you receive the item. The system calculates leadtime
| ||||
mnSafetyStock | SAFE | MATH_NUMERIC | NONE | NONE |
The quantity of stock kept on hand to cover high-side variations in demand. | ||||
mnMaximumOrderQuantity | RQMX | MATH_NUMERIC | NONE | NONE |
The maximum order quantity for an item. You can base the quantity on factors other than usage, such as perishability, storage capacity,
| ||||
mnEconomicOrderQuantity | EOQ | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnReorderPoint | ROPI | MATH_NUMERIC | NONE | NONE |
A quantity for an item that specifies when replenishment occurs. Typically,this occurs when the total quantity on hand plus the quantity on
| ||||
mnAverageCost | UNCS | MATH_NUMERIC | NONE | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnSuggestedOrderQuantity | SOQ | MATH_NUMERIC | NONE | NONE |
A value that is calculated by the P.O. Generator, Buyer's Inquiry, and Buying Guide Report with the following variables:
AVAL Available
| ||||
mnMonthsAvailable | MAVL | MATH_NUMERIC | NONE | NONE |
Given the usage in prior months, this is the estimated number of months the currently available quantity of the item might be expected to last. | ||||
mnMinimumOrderQuantity | RQMN | MATH_NUMERIC | NONE | NONE |
The minimum order quantity for an item. You can base the quantity on factors other than usage, such as perishability, storage capacity, and
| ||||
cOrderPolicyCode | OPC | char | NONE | NONE |
A code that specifies the rules for inventory reordering in the Requirements Planning and Procurement systems. Valid values are:
0
Reorder
| ||||
mnFixedOrderQuantity | OPV | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
cConversionFlag | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
mnConversionFactor | CONV | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnBusinessDaysPerYear | BSDY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
|
B0000130 Retrieve Company From Business Unit | ||||
B0900242 Retrieve Companys Current Date | ||||
B4000150 Get Branch Constants | ||||
X0903 Fiscal Date Edits + | ||||
XF4115 Update Item Sales HIstory |
None |