Search Results external_source_code
Overview
APPS.MTL_DEMAND_OM_VIEW is a VALID database view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the INV (Inventory) product module. It presents order-management demand records in the standard MTL_DEMAND format, deriving its rows from order management lines rather than from the physical MTL_DEMAND table. Its principal role is to expose open sales order line demand to the material planning and inventory reservation engines—specifically MRP, ATP, and reservation processing—in a normalized structure that mirrors the columns of MTL_DEMAND.
The view is significant because the RESERVATION_TYPE column is hard-coded to the literal 1 in the view definition. This distinguishes order-management demand from other demand sources and provides the attribute that reservation and planning logic uses to classify the record. Because the view synthesizes MTL_DEMAND-shaped output from OE_ORDER_LINES_ALL, it allows planning and reservation routines to consume sales order demand without requiring that demand to be staged into MTL_DEMAND first.
Underlying Base Objects
The documented base objects underlying this view are: OE_ORDER_LINES_ALL (SYNONYM), MTL_DEMAND (SYNONYM), and the packages INV_DECIMALS_PUB, INV_SALESORDER, MRP_OE, and OE_INSTALL.
- OE_ORDER_LINES_ALL — the primary source of demand rows; aliased as
OOLin the view text, supplying line ID, ship-from organization, inventory item, order quantity, shipped quantity, schedule ship date, demand class, and customer/site identifiers. - MTL_DEMAND — the reference structure the view emulates column-for-column; rows are shaped to match its demand model.
- INV_DECIMALS_PUB — provides
GET_PRIMARY_QUANTITY, converting ordered and shipped quantities into the item's primary unit of measure. - INV_SALESORDER — provides
GET_SALESORDER_FOR_OEHEADER, resolving the header ID to the sales order number. - MRP_OE — supplies planning-related functions:
UPDATED_FLAG,AVAILABLE_TO_MRP,AVAILABLE_TO_ATP,MRP_DATE, andMRP_QUANTITY, which inject MRP/ATP eligibility and calculated dates and quantities. - OE_INSTALL — an order management installation/utility package referenced in the view's dependency chain.
Key Columns
DEMAND_ID— sourced fromOOL.LINE_ID; uniquely identifies the demand record.ORGANIZATION_ID— the ship-from organization.DEMAND_SOURCE_TYPE— derived via DECODE fromSOURCE_DOCUMENT_TYPE_IDandLINE_CATEGORY_CODE, yielding values such as 8, 2, or 12.DEMAND_SOURCE_HEADER_ID— the sales order number, resolved byINV_SALESORDER.GET_SALESORDER_FOR_OEHEADER.RESERVATION_TYPE— fixed at1, marking the row as order-management demand.RESERVATION_QUANTITY/LINE_ITEM_RESERVATION_QTY— the reserved primary quantity (NVL of MD1.PRIMARY_UOM_QUANTITY), and a NULL placeholder for line-level reservation quantity.PRIMARY_UOM_QUANTITY,COMPLETED_QUANTITY— ordered and shipped quantities converted to primary UOM.REQUIREMENT_DATE— the schedule ship date.AVAILABLE_TO_MRP,AVAILABLE_TO_ATP,UPDATED_FLAG,MRP_DATE,MRP_QUANTITY— planning flags and computed values from MRP_OE.DEMAND_CLASS,ROW_STATUS_FLAG,CUSTOMER_ID,BILL_TO_SITE_USE_ID,SHIP_TO_SITE_USE_ID— demand classification and party/site references.
Common Use Cases and Queries
A principal scenario is identifying order-management reservations and their type, aligned with the "reservation_type" search context:
- Retrieve all reservation-typed order demand for an item in an organization.
- Report sales order demand available to MRP or ATP for a planning horizon.
- Reconcile order line quantities against reserved and completed quantities.
Representative query:
SELECT demand_id, organization_id, inventory_item_id, demand_source_header_id,
reservation_type, reservation_quantity, primary_uom_quantity,
completed_quantity, requirement_date, available_to_mrp, available_to_atp
FROM apps.mtl_demand_om_view
WHERE inventory_item_id = :item_id
AND organization_id = :org_id
AND reservation_type = 1;
Because the view relies on PL/SQL functions within its SELECT list, users should account for per-row function execution cost when querying large order volumes.
-
View: MTL_DEMAND_OM_VIEW
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_DEMAND_OM_VIEW, object_name:MTL_DEMAND_OM_VIEW, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_DEMAND_OM_VIEW ,
-
View: MTL_DEMAND_OM_VIEW
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_DEMAND_OM_VIEW, object_name:MTL_DEMAND_OM_VIEW, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_DEMAND_OM_VIEW ,
-
View: MTL_RESERVATIONS_ALL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_RESERVATIONS_ALL_V, object_name:MTL_RESERVATIONS_ALL_V, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_RESERVATIONS_ALL_V ,
-
View: MTL_RESERVATIONS_ALL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_RESERVATIONS_ALL_V, object_name:MTL_RESERVATIONS_ALL_V, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_RESERVATIONS_ALL_V ,
-
View: MTL_RESERVATIONS_INTERFACE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_RESERVATIONS_INTERFACE_V, object_name:MTL_RESERVATIONS_INTERFACE_V, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_RESERVATIONS_INTERFACE_V ,
-
View: MTL_RESERVATIONS_INTERFACE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_RESERVATIONS_INTERFACE_V, object_name:MTL_RESERVATIONS_INTERFACE_V, status:VALID, product: INV - Inventory , implementation_dba_data: APPS.MTL_RESERVATIONS_INTERFACE_V ,
-
View: MTL_DEMAND_INTERFACE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_DEMAND_INTERFACE_V, object_name:MTL_DEMAND_INTERFACE_V, status:VALID, product: INV - Inventory , description: 10SC ONLY , implementation_dba_data: APPS.MTL_DEMAND_INTERFACE_V ,
-
View: MTL_DEMAND_INTERFACE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_DEMAND_INTERFACE_V, object_name:MTL_DEMAND_INTERFACE_V, status:VALID, product: INV - Inventory , description: 10SC ONLY , implementation_dba_data: APPS.MTL_DEMAND_INTERFACE_V ,