Search Results msc_flp_supply_demand_v2
Overview
MSC_FLP_SUPPLY_DEMAND_V2 is an APPS-owned database view in the Oracle Advanced Supply Chain Planning (MSC) module. It presents a flattened, denormalized representation of supply and demand pegging relationships produced by the Oracle Advanced Supply Chain Planning engine. Rather than exposing raw pegging rows, the view joins demand and supply records against the planning pegging infrastructure and resolves surrogate identifiers into human-readable descriptions using the MSC_GET_NAME package. The "_V2" suffix indicates this is a later revision of the original supply/demand pegging view, with revised logic for deriving supply-side demand context — most notably the DECODE branches that treat DEMAND_ID values of -1, -2, and -3 as special supply-originated rows and resolve them through the MRP_FLP_SUPPLY_DEMAND_TYPE lookup, while all other rows resolve through the MRP_DEMAND_ORIGINATION lookup.
The view is typically consumed by planners, supply chain analysts, and custom reporting layers that need to trace which supply is pegged to which demand, along with the associated allocation quantity, assembly demand date, and project context.
Underlying Base Objects
The documented base objects underlying MSC_FLP_SUPPLY_DEMAND_V2 are:
- MSC_FULL_PEGGING (synonym) — the core pegging table, aliased MFP2 and MFP3 in the view text. It supplies PLAN_ID, ORGANIZATION_ID, PEGGING_ID, PREV_PEGGING_ID, DEMAND_ID, TRANSACTION_ID, END_ITEM_USAGE, INVENTORY_ITEM_ID, and ALLOCATED_QUANTITY.
- MSC_DEMANDS (synonym) — aliased MGR2 and MGR3. It contributes USING_REQUIREMENT_QUANTITY, USING_ASSEMBLY_DEMAND_DATE, NEW_ORDER_QUANTITY, ORIGINATION_TYPE, PROJECT_ID, TASK_ID, DEMAND_ID, and ORDER_NUMBER.
- MSC_SUPPLIES (synonym) — the supply-side planning records underlying the supply rows referenced by the pegging relationship.
- MSC_ITEMS (synonym) — aliased MIF2 and MIF3, supplying ITEM_NAME for the concatenated item/organization display column.
- MSC_GET_NAME (package) — a formatting and lookup utility package invoked for ORG_CODE, ITEM_DESC, LOOKUP_MEANING, PROJECT, TASK, SUPPLY_DATE, and SUPPLY_ORDER. It performs the code-to-meaning translation that makes the view directly usable in reports.
Key Columns
- PLAN_ID, ORGANIZATION_ID — planning scenario and inventory organization context.
- PEGGING_ID, PREV_PEGGING_ID — the pegging chain identifiers linking supply to demand.
- DEMAND_ID, TRANSACTION_ID — the demand record and originating transaction.
- INVENTORY_ITEM_ID — item key, displayed alongside ITEM_NAME concatenated with the organization code.
- ALLOCATED_QUANTITY — quantity of supply allocated to the pegged demand, rounded to two decimals.
- END_ITEM_USAGE — usage quantity of the end item; the view derives a per-unit allocation by dividing ALLOCATED_QUANTITY by END_ITEM_USAGE.
- USING_REQUIREMENT_QUANTITY / NEW_ORDER_QUANTITY — demand-side and order-side quantities, both rounded.
- ORIGINATION_TYPE and derived lookup meaning — resolved via MRP_DEMAND_ORIGINATION or, for supply-originated rows (-1/-2/-3), via MRP_FLP_SUPPLY_DEMAND_TYPE.
- PROJECT and TASK — project/task names returned by MSC_GET_NAME, relevant to project-driven supply chains (including lending/borrowing and inter-project transfer scenarios).
- USING_ASSEMBLY_DEMAND_DATE / SUPPLY_DATE — the demand date or, for supply rows (DEMAND_ID = -1), the supply date.
Common Use Cases and Queries
The primary use case is pegging analysis: determining, for a given plan and item, which demands consume which supplies, and under what project or task context. Because PROJECT and TASK are surfaced as resolved names, the view is frequently used to audit project-based material movements, including lending and borrowing between projects where reference identifiers such as a lending project identifier are used to attribute demand back to the borrowing project.
Example query retrieving pegged supply/demand detail for a plan:
SELECT plan_id, organization_id, inventory_item_id,
allocated_quantity, using_requirement_quantity,
using_assembly_demand_date, demand_id, project, task
FROM apps.msc_flp_supply_demand_v2
WHERE plan_id = :plan_id
AND organization_id = :org_id
AND inventory_item_id = :item_id;
To isolate project-specific pegging, filter on the resolved project column, and correlate with MSC_DEMANDS.PROJECT_ID when a numeric project identifier is required. Performance is generally governed by the underlying MSC_FULL_PEGGING and MSC_DEMANDS access paths, so filtering on PLAN_ID and ORGANIZATION_ID is advisable.
-
View: MSC_FLP_SUPPLY_DEMAND_V2
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V2 ,
-
View: MSC_FLP_SUPPLY_DEMAND_V2
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V2 ,
-
SYNONYM: APPS.MSC_FULL_PEGGING
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_FULL_PEGGING, status:VALID,
-
SYNONYM: APPS.MSC_FULL_PEGGING
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_FULL_PEGGING, status:VALID,
-
SYNONYM: APPS.MSC_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_ITEMS, status:VALID,
-
SYNONYM: APPS.MSC_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_ITEMS, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID,
-
PACKAGE: APPS.MSC_GET_NAME
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_GET_NAME, status:VALID,
-
SYNONYM: APPS.MSC_DEMANDS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_DEMANDS, status:VALID,
-
PACKAGE: APPS.MSC_GET_NAME
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_GET_NAME, status:VALID,
-
SYNONYM: APPS.MSC_SUPPLIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_SUPPLIES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.MSC_DEMANDS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_DEMANDS, status:VALID,
-
SYNONYM: APPS.MSC_SUPPLIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_SUPPLIES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - MSC Tables and Views
12.1.1
description: This table contains the mapping between user-defined zone and included regions ,
-
eTRM - MSC Tables and Views
12.2.2
description: This table contains the mapping between user-defined zone and included regions ,
-
eTRM - MSC Tables and Views
12.1.1
description: This table contains the mapping between user-defined zone and included regions ,
-
eTRM - MSC Tables and Views
12.2.2
description: This table contains the mapping between user-defined zone and included regions ,