Search Results inv_minmax_pvt
Overview
APPS.INV_MINMAX_PVT is a private (PVT) PL/SQL package that implements the core business logic for Oracle Inventory's Min-Max replenishment planning engine in Oracle E-Business Suite 12.1.1 and 12.2.2. The package drives the Min-Max Planning and Replenishment process, evaluating on-hand quantities, demand, supply, and item attributes across organizations, subinventories, and locators to determine which items require replenishment and what quantities must be ordered.
As the name suggests, the package is classified as private, meaning its procedures and functions are not intended as a public integration API. It is invoked by concurrent programs and replenishment forms within the Inventory module, and it centralizes the logic that previously resided in report scripts. The header comments reference a series of patchset and bug fix enhancements, including Replenishment Consolidation and Min-Max Lead Time enhancements (Patchset I), the optional parameters p_cust_site_id, p_vmi_enabled, and p_gen_report, and Bug 6807835, which added the p_osfm_batch_id parameter for process manufacturing integration.
Key Procedures and Functions
- RUN_MIN_MAX_PLAN — The primary entry point. It executes the Min-Max planning run using the supplied item, category, and organization selection criteria, along with numerous control flags covering restocking, non-net quantities, purchase orders, move orders, WIP, internal requisitions, reservations, approvals, buyers, customers, cutoffs, calendars, and exception sets. It returns status and message outputs and populates the results used by the planning report.
- GET_ONHAND_QTY — Returns the on-hand quantity for a given item, organization, subinventory, and system date, with a flag indicating whether non-net quantities are included. Added under Bug 2677358.
- DO_RESTOCK — Performs the restocking calculation that determines replenishment quantity for an item when inventory falls below its minimum level.
- GET_SHIPPED_QTY — Retrieves the quantity already shipped for an item, used in netting supply against demand during the planning computation.
- GET_STAGED_QTY — Returns the quantity staged in a staging area for the item, contributing to the nettable supply position.
- GET_PICK_RELEASED_QTY — Returns the quantity on pick-released material, allowing the engine to account for inventory already committed against demand.
- GET_ITEM_UOM_CODE — Returns the unit of measure code associated with an item, used when expressing replenishment quantities in the correct UOM.
Tables Accessed
The package operates against a broad set of Inventory and Manufacturing tables through APPS synonyms. Item and category master data come from MTL_CATEGORIES and MTL_CATEGORIES_KFV. Supply and demand balancing relies on MTL_DEMAND, MTL_MATERIAL_TRANSACTIONS, MTL_MATERIAL_TRANSACTIONS_TEMP, and MRP_ATP_SCHEDULE_TEMP_S. Location and stocking detail are drawn from MTL_ITEM_LOCATIONS, MTL_ITEM_REVISIONS, and MTL_LOT_NUMBERS. Manufacturing and process data are read from BOM_OPERATIONAL_ROUTINGS, GME_BATCH_HEADER, and GME_MATERIAL_DETAILS. Calendar-driven lead time calculations use BOM_CALENDAR_DATES, and user context comes from FND_USER. Results are written to the temporary planning table INV_MIN_MAX_TEMP.
Usage Notes
INV_MINMAX_PVT is normally invoked indirectly. In the standard EBS flows it is called by the Min-Max Planning concurrent program and by replenishment-related forms within Oracle Inventory, which pass the selection parameters defined in the run_min_max_plan signature. It is referenced by one other package, indicating that other Inventory components depend on its computations. Because it is a PVT package, custom code should not call it directly without accepting the risk of signature changes across patches; developers seeking the "max " UDA or similar item attribute information should expect this package to surface such attributes only indirectly through the planning results it generates and writes to INV_MIN_MAX_TEMP, rather than as a standalone public API.
-
PACKAGE: APPS.INV_MINMAX_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_MINMAX_PVT, status:VALID,
-
PACKAGE: APPS.INV_MINMAX_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_MINMAX_PVT, status:VALID,
-
PACKAGE BODY: APPS.INV_MINMAX_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_MINMAX_PVT, status:VALID,
-
PACKAGE BODY: APPS.INV_MINMAX_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_MINMAX_PVT, status:VALID,
-
PACKAGE: APPS.MRP_SOURCING_API_PK
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MRP_SOURCING_API_PK, status:VALID,
-
PACKAGE: APPS.WIP_CALENDAR
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WIP_CALENDAR, status:VALID,
-
SYNONYM: APPS.INV_MIN_MAX_TEMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:INV_MIN_MAX_TEMP, status:VALID,
-
PACKAGE: APPS.INV_MMX_WRAPPER_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_MMX_WRAPPER_PVT, status:VALID,
-
SYNONYM: APPS.WSM_LOT_JOB_INTERFACE_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_JOB_INTERFACE_S, status:VALID,
-
SYNONYM: APPS.INV_MIN_MAX_TEMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:INV_MIN_MAX_TEMP, status:VALID,
-
PACKAGE: APPS.INV_MMX_WRAPPER_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_MMX_WRAPPER_PVT, status:VALID,
-
PACKAGE: APPS.GMP_BATCH_WRAPPER_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GMP_BATCH_WRAPPER_PKG, status:VALID,
-
SYNONYM: APPS.WSM_LOT_SM_IFC_HEADER_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_SM_IFC_HEADER_S, status:VALID,
-
PACKAGE: APPS.INV_CONSIGNED_VALIDATIONS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_CONSIGNED_VALIDATIONS, status:VALID,
-
PACKAGE: APPS.MRP_SOURCING_API_PK
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MRP_SOURCING_API_PK, status:VALID,
-
PACKAGE: APPS.WSMPVERS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WSMPVERS, status:VALID,
-
PACKAGE: APPS.WSMPVERS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WSMPVERS, status:VALID,
-
SYNONYM: APPS.WSM_LOT_JOB_INTERFACE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_JOB_INTERFACE, status:VALID,
-
PACKAGE: APPS.GMP_BATCH_WRAPPER_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GMP_BATCH_WRAPPER_PKG, status:VALID,
-
SYNONYM: APPS.WSM_LOT_SM_IFC_HEADER_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_SM_IFC_HEADER_S, status:VALID,
-
SYNONYM: APPS.WSM_LOT_JOB_INTERFACE_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_JOB_INTERFACE_S, status:VALID,
-
PACKAGE: APPS.INV_CONSIGNED_VALIDATIONS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_CONSIGNED_VALIDATIONS, status:VALID,
-
SYNONYM: APPS.WSM_LOT_JOB_INTERFACE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSM_LOT_JOB_INTERFACE, status:VALID,
-
PACKAGE: APPS.WIP_CALENDAR
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WIP_CALENDAR, status:VALID,
-
SYNONYM: APPS.WIP_JOB_NUMBER_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WIP_JOB_NUMBER_S, status:VALID,
-
PACKAGE BODY: APPS.INV_MMX_WRAPPER_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_MMX_WRAPPER_PVT, status:VALID,
-
PACKAGE: APPS.MSC_ATP_PROC
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_ATP_PROC, status:VALID,
-
SYNONYM: APPS.WIP_JOB_NUMBER_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WIP_JOB_NUMBER_S, status:VALID,
-
SYNONYM: APPS.MRP_ATP_SCHEDULE_TEMP_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MRP_ATP_SCHEDULE_TEMP_S, status:VALID,
-
PACKAGE BODY: APPS.INV_MMX_WRAPPER_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_MMX_WRAPPER_PVT, status:VALID,
-
PACKAGE: APPS.INV_DECIMALS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_DECIMALS_PUB, status:VALID,
-
PACKAGE: APPS.INV_TRANSFER_ORDER_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_TRANSFER_ORDER_PVT, status:VALID,
-
SYNONYM: APPS.MRP_ATP_SCHEDULE_TEMP_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MRP_ATP_SCHEDULE_TEMP_S, status:VALID,
-
PACKAGE: APPS.INV_TRANSFER_ORDER_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_TRANSFER_ORDER_PVT, status:VALID,
-
PACKAGE: APPS.INV_MINMAX_PVT
12.1.1
-
PACKAGE: APPS.MSC_ATP_PROC
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_ATP_PROC, status:VALID,
-
SYNONYM: APPS.MTL_DEMAND
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_DEMAND, status:VALID,
-
PACKAGE: APPS.INV_MINMAX_PVT
12.2.2
-
PACKAGE: APPS.MSC_SCH_WB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_SCH_WB, status:VALID,
-
PACKAGE: APPS.INV_DECIMALS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_DECIMALS_PUB, status:VALID,
-
SYNONYM: APPS.MTL_DEMAND
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_DEMAND, status:VALID,
-
SYNONYM: APPS.OE_DROP_SHIP_SOURCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_DROP_SHIP_SOURCES, status:VALID,
-
SYNONYM: APPS.WIP_REPETITIVE_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WIP_REPETITIVE_ITEMS, status:VALID,
-
SYNONYM: APPS.PO_REQUISITIONS_INTERFACE_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_REQUISITIONS_INTERFACE_ALL, status:VALID,
-
SYNONYM: APPS.OE_DROP_SHIP_SOURCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_DROP_SHIP_SOURCES, status:VALID,
-
SYNONYM: APPS.MTL_CATEGORIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_CATEGORIES, status:VALID,
-
VIEW: APPS.WMS_LOADED_QUANTITIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WMS.WMS_LOADED_QUANTITIES_V, object_name:WMS_LOADED_QUANTITIES_V, status:VALID,
-
SYNONYM: APPS.WIP_REPETITIVE_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WIP_REPETITIVE_ITEMS, status:VALID,
-
PACKAGE: APPS.MSC_SCH_WB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_SCH_WB, status:VALID,
-
SYNONYM: APPS.MTL_CATEGORIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_CATEGORIES, status:VALID,