Search Results mtl_supply_demand_temp_s
Overview
FLM_SUPPLY_DEMAND is an Oracle Applications (APPS) PL/SQL package body that supports the supply and demand processing infrastructure used by Oracle Flow Manufacturing and adjacent planning/inventory modules. Its central responsibility is to collect, stage, and expose supply and demand information for items within a given organization so that downstream availability, ATP (Available-to-Promise), and scheduling logic can consume a consolidated view of what is on hand, what is expected, and what is required. The package orchestrates data gathering from a wide range of manufacturing, inventory, and order management sources into a temporary staging table, and then provides access routines to retrieve that consolidated picture. It relies heavily on the FND_API and FND_MSG_PUB error-handling framework, indicating that it is designed as an internal API layer rather than an end-user interface. In ETRM 12.2.2 the package is documented as VALID and classified as OTHER, with twenty-one documented procedures spanning collection of supply, collection of demand, staging cleanup, and retrieval. It references the MTL_SUPPLY_DEMAND_TEMP_S staging table, which aligns with the user's search term and reflects the package's role as a supply/demand aggregator.
Key Procedures and Functions
- COLLECT_SUPPLY_DEMAND_INFO — Master driver that orchestrates the full collection cycle for both supply and demand.
- GET_SUPPLY_DEMAND_INFO — Returns the consolidated supply and demand information assembled by the collection routines.
- CLEAR_SUPPLY_DEMAND_INFO — Purges prior staged data so that each collection run starts from a clean state.
- COLLECT_SUPPLY_INFO — Coordinates all supply-side collection sub-routines.
- COLLECT_DEMAND_INFO — Coordinates all demand-side collection sub-routines.
- COLLECT_ONHAND_SUPPLY — Gathers on-hand quantity supply from inventory balances.
- COLLECT_USER_SUPPLY — Collects manually entered user supply records.
- COLLECT_MTL_SUPPLY — Collects supply from the MTL_SUPPLY table (purchase orders, requisitions, etc.).
- COLLECT_DISCRETEJOB_SUPPLY — Collects supply contributed by discrete jobs.
- COLLECT_WIPNEGREQ_SUPPLY — Collects supply arising from negative WIP requirements.
- COLLECT_REPSCHED_SUPPLY — Collects supply from repetitive schedules.
- COLLECT_FLOWSCHED_SUPPLY — Collects supply from flow schedules.
- COLLECT_DISCRETEJOB_DEMAND — Collects component demand generated by discrete jobs.
- COLLECT_REPSCHED_DEMAND — Collects demand generated by repetitive schedules.
- COLLECT_USER_DEMAND — Collects manually entered user demand.
- COLLECT_FLOWSCHED_DEMAND — Collects demand generated by flow schedules.
- COLLECT_SALESORDER_DEMAND — Collects demand from sales order lines.
- GET_COMPONENT_QTY — Calculates component quantities required per assembly.
- READ_COMP_AVAIL — Reads component availability, likely used during ATP-style checks.
The remaining documented procedures are internal helpers supporting the routines above; parameter signatures are not published in the ETRM metadata and should not be assumed.
Tables Accessed
The package reads and writes a broad set of APPS synonyms. Supply and balance data is drawn from MTL_ONHAND_QUANTITIES, MTL_SUPPLY, MTL_USER_SUPPLY, MTL_MATERIAL_TRANSACTIONS_TEMP, and MTL_SECONDARY_INVENTORIES. Demand is sourced from MTL_DEMAND, MTL_DEMAND_INTERFACE, MTL_USER_DEMAND, and OE_ORDER_LINES. Bill-of-material explosion and component logic relies on BOM_BILL_OF_MATERIALS, BOM_EXPLOSIONS, BOM_INVENTORY_COMPONENTS, BOM_COMMON_DEFINITIONS, and BOM_CALENDAR_DATES. WIP-related supply and demand comes from WIP_DISCRETE_JOBS, WIP_REPETITIVE_ITEMS, WIP_REPETITIVE_SCHEDULES, WIP_FLOW_SCHEDULES, WIP_OPERATIONS, and WIP_REQUIREMENT_OPERATIONS. ATP rules are read from MTL_ATP_RULES, MTL_ATP_RULES_S, MTL_GROUP_ATPS_VIEW, and MTL_GROUP_ITEM_ATPS_VIEW. Item and organization context comes from MTL_SYSTEM_ITEMS, MTL_PARAMETERS, and the MRP_CALENDAR. The staging target is MTL_SUPPLY_DEMAND_TEMP_S, which ties directly to the user's search term and serves as the working store for the collection routines. Several of these are package references (BOM_COMMON_DEFINITIONS, FND_API, FND_MSG_PUB, MRP_CALENDAR, OE_INSTALL, WIP_CONSTANTS) rather than plain tables.
Usage Notes
FLM_SUPPLY_DEMAND is not referenced by any database object, meaning it is invoked from the outside — typically from Oracle Flow Manufacturing forms, concurrent programs, or custom PL/SQL calls that need a consolidated supply/demand snapshot for an organization and item. The CLEAR / COLLECT / GET sequence strongly implies a two-phase usage pattern: call CLEAR_SUPPLY_DEMAND_INFO followed by COLLECT_SUPPLY_DEMAND_INFO to refresh the staging table, then call GET_SUPPLY_DEMAND_INFO to read results. Because the package depends on FND_API and FND_MSG_PUB, callers should check the standard FND message stack for errors after each invocation. Since MTL_SUPPLY_DEMAND_TEMP_S is a temporary staging structure, callers should treat the collected data as session- or run-scoped and re-run the collection rather than persisting assumptions across calls.
-
SYNONYM: APPS.MTL_SUPPLY_DEMAND_TEMP_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_SUPPLY_DEMAND_TEMP_S, status:VALID,
-
SEQUENCE: INV.MTL_SUPPLY_DEMAND_TEMP_S
12.1.1
owner:INV, object_type:SEQUENCE, object_name:MTL_SUPPLY_DEMAND_TEMP_S, status:VALID,
-
SEQUENCE: INV.MTL_SUPPLY_DEMAND_TEMP_S
12.2.2
owner:INV, object_type:SEQUENCE, object_name:MTL_SUPPLY_DEMAND_TEMP_S, status:VALID,
-
SYNONYM: APPS.MTL_SUPPLY_DEMAND_TEMP_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_SUPPLY_DEMAND_TEMP_S, status:VALID,
-
PACKAGE BODY: APPS.FLM_SUPPLY_DEMAND
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FLM_SUPPLY_DEMAND, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.FLM_SUPPLY_DEMAND
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FLM_SUPPLY_DEMAND, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
APPS.FLM_SUPPLY_DEMAND dependencies on MTL_SUPPLY_DEMAND_TEMP_S
12.1.1
-
APPS.FLM_SUPPLY_DEMAND dependencies on MTL_SUPPLY_DEMAND_TEMP_S
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1