Results for “msc_flp_supply_demand_v”

32 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

MSC_FLP_SUPPLY_DEMAND_V is a reporting view owned by the APPS schema in Oracle Advanced Supply Chain Planning (MSC). It exposes the full pegging supply-and-demand relationship maintained by the planning engine, presenting demand-side pegging rows alongside the corresponding supply-side pegging rows and the resolved component or end-item usage. The "FLP" prefix denotes the Full Pegging functionality, and the view is the principal read interface for horizontally exploded pegging information — that is, the chain that links a supply order to the demands it satisfies and, where assemblies are involved, to the dependent component demands consumed in the process.

Because it resolves identifiers into descriptive values through the MSC_GET_NAME package, the view is suited to diagnostic reporting, pegging inquiry screens, and integration extracts that require human-readable demand origination, project, task, item, and organization context without writing custom decode logic. The view is documented as VALID in the ETRM repository for 12.1.1 and 12.2.2.

Underlying Base Objects

The documented base objects underlying the view are:

  • MSC_FULL_PEGGING (synonym) — the primary source of pegging rows (aliased MFP2, MFP3), supplying plan, organization, pegging, demand, transaction, quantity, date, and allocation attributes.
  • MSC_DEMANDS (synonym) — the demand record layer referenced by DEMAND_ID.
  • MSC_SUPPLIES (synonym) — the supply record layer, aliased MR2, providing NEW_ORDER_QUANTITY.
  • MSC_SYSTEM_ITEMS (synonym) — item master information for the planning organization (MIF2, MIF3).
  • MSC_PLANS (synonym) — plan definition context.
  • MSC_GET_NAME (package) — a scalar function package that resolves codes and identifiers into organization, item description, project, task, supply date, and lookup meaning values.

The joins revolve around the pegging identifiers PEGGING_ID and PREV_PEGGING_ID, which are used both to link supply rows to demand rows and to chain the component-level pegging back to the parent assembly demand.

Key Columns

  • PLAN_ID, ORGANIZATION_ID — identify the plan and planning organization for the pegging relationship.
  • PEGGING_ID, PREV_PEGGING_ID — the current and preceding pegging keys that establish the supply-to-demand chain.
  • DEMAND_ID — the demand identifier, which doubles as a classification key. Values of -1, -2, and -3 denote special pegging conditions resolved through the MRP_FLP_SUPPLY_DEMAND_TYPE lookup; other values resolve through MRP_DEMAND_ORIGINATION or MRP_PLANNED_ORDER_DEMAND.
  • INVENTORY_ITEM_ID / ITEM_NAME — the item involved, with ITEM_NAME concatenated with the organization code.
  • Demand quantity and date — derived as NVL of the using requirement quantity and the stored demand quantity, with the corresponding date from the using assembly demand date or the stored demand date.
  • ALLOCATED_QUANTITY — the quantity pegged to this relationship, also used to derive end-item usage ratios.
  • END_ITEM_USAGE, usage ratio — the per-assembly usage factor and the computed component quantity per end item.
  • PROJECT, TASK — descriptive project and task values resolved via MSC_GET_NAME.

Common Use Cases and Queries

Typical reporting scenarios include tracing why a supply order exists, listing all demands pegged to a supply, and identifying component demand generated by a specific parent. Because the view references several synonyms over potentially large FULL_PEGGING and DEMANDS data, queries should always be constrained by plan and organization.

Sample query: demands pegged to a supply for a plan and organization

SELECT demand_id, pegging_id, inventory_item_id,
       demand_quantity, demand_date
FROM   apps.msc_flp_supply_demand_v
WHERE  plan_id = :p_plan_id
AND    organization_id = :p_org_id;

Sample query: item-level pegging summary by demand type

SELECT inventory_item_id, demand_id, SUM(demand_quantity)
FROM   apps.msc_flp_supply_demand_v
WHERE  plan_id = :p_plan_id
GROUP  BY inventory_item_id, demand_id;

In both cases, joining the reserved DEMAND_ID values back to MRP_FLP_SUPPLY_DEMAND_TYPE provides the descriptive demand type, and the project/task columns support project-driven pegging analysis.