Results for “pegging_id”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
MRPBV_PLAN_PEGS is an APPS-owned read-only view within the Oracle E-Business Suite Master Scheduling/MRP (MRP) module. Its role is to expose pegging information from the planning engine in a reporting-friendly, oracle-internal-decode-free format. Pegging establishes the relationship between a supply and the demand it satisfies, and this view surfaces that relationship across a full planning run, allowing planners and integration developers to trace how a given supply order is linked to downstream demand. Unlike the underlying raw pegging table, the view resolves lookup codes into human-readable meanings and applies a security predicate on ORGANIZATION_ID. The view is defined WITH READ ONLY, meaning it cannot be used as a target for DML statements and is intended strictly for query and reporting access.
Underlying Base Objects
The view is defined over two documented base objects: MFG_LOOKUPS (a VIEW) and MRP_FULL_PEGGING (exposed through a SYNONYM). MFG_LOOKUPS is joined twice. The first join (LKUP) resolves the supply type by matching LOOKUP_TYPE = 'MRP_ORDER_TYPE' against the pegging row's SUPPLY_TYPE. The second join (LKUP2) derives a lookup type from the END_ORIGINATION_TYPE value using a DECODE expression. Where END_ORIGINATION_TYPE equals 1, 3, or 25, the type is set to 'MRP_PLANNED_ORDER_DEMAND'; for all other values it resolves to 'MRP_DEMAND_ORIGINATION'. This resolved lookup type is then matched against LKUP2.LOOKUP_TYPE, and the LOOKUP_CODE is matched against END_ORIGINATION_TYPE. Both MFG_LOOKUPS joins are outer joins, so pegging rows remain visible even when no matching lookup meaning exists. The primary fact source is MRP_FULL_PEGGING, the full pegging table that stores supply-to-demand linkages generated by the planning process across the entire plan horizon. The view's WHERE clause enforces a multi-org security predicate expressed as '_SEC:PEG.ORGANIZATION_ID' IS NOT NULL, which restricts results according to the organization security profile of the querying user.
Key Columns
- DEMAND_QUANTITY / SUPPLY_QUANTITY / SUPPLY_ALLOCATED_QUANTITY — Quantities describing the demand, the supplying order, and the allocated portion linking them.
- DEMAND_DATE / SUPPLY_DATE — Dates associated with the demand requirement and the supply receipt.
- PEGGING_ID / PREV_PEGGING_ID / END_PEGGING_ID — Identifiers that chain pegging records, enabling traversal of the full pegging path from an end item down to the originating demand.
- ORGANIZATION_ID — The inventory organization, also the object of the org security predicate.
- INVENTORY_ITEM_ID — The item whose supply and demand are being related.
- TRANSACTION_ID / DEMAND_ID — Source transaction and demand identifiers used to trace back to originating documents.
- END_ORIGINATION_TYPE — The origination category of the end demand; its value determines the lookup type resolved in the view's DECODE.
- PROJECT_ID / TASK_ID — Project and task context for project-driven demand.
- LAST_UPDATE_DATE / LAST_UPDATED_BY / CREATION_DATE / CREATED_BY — Standard auditing columns.
Common Use Cases and Queries
The view supports pegging analysis where a planner or integration needs to trace supply back to originating demand, resolve the demand origination category, and restrict results by organization. A typical query joins the view to inventory item master data and filters by organization and item.
- Retrieve pegging rows for a specific organization and item within a plan.
- Identify the end origination type of the demand driving a supply order.
- Walk the PEGGING_ID/PREV_PEGGING_ID chain to reconstruct a full pegging path.
- Report allocated quantities against supply and demand dates for a planning run.
Sample SQL:
- SELECT ORGANIZATION_ID, INVENTORY_ITEM_ID, SUPPLY_TYPE, DEMAND_QUANTITY, SUPPLY_QUANTITY, SUPPLY_DATE, DEMAND_DATE FROM APPS.MRPBV_PLAN_PEGS WHERE ORGANIZATION_ID = :org AND INVENTORY_ITEM_ID = :item;
- SELECT PEGGING_ID, PREV_PEGGING_ID, END_PEGGING_ID, END_ORIGINATION_TYPE FROM APPS.MRPBV_PLAN_PEGS WHERE END_PEGGING_ID = :end_peg ORDER BY PEGGING_ID;
Because the view is read only and enforces organization security, queries must run under a valid organization-enabled responsibility, and results are automatically scoped to the organiz
-
View: MRPBV_PLAN_PEGS 12.1.1
APPS.MRPBV_PLAN_PEGS·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·Explore MRP module →
-
View: MSC_FLP_ONHAND_V 12.1.1
APPS.MSC_FLP_ONHAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_ATP_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_V2·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MRP_FLP_END_DEMAND_V 12.1.1
View of demand information for end assemblies
APPS.MRP_FLP_END_DEMAND_V·↳ FND_GLOBAL·↳ FND_LOOKUP_VALUES·↳ MRP_FULL_PEGGING·Explore MRP module →
-
APPS.MRP_FLP_SUPPLY_DEMAND_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View: MRP_ATP_PROPERTIES_V 12.1.1
APPS.MRP_ATP_PROPERTIES_V·↳ FND_COMMON_LOOKUPS·↳ FND_GLOBAL·↳ MFG_LOOKUPS·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_SUPPLY_DEMAND_V2·↳ INV_DECIMALS_PUB·↳ INV_SALESORDER·↳ MFG_LOOKUPS·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_DEMAND_SUPPLY_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View: MRPFV_PLAN_PEGS 12.1.1
- Retrofitted
APPS.MRPFV_PLAN_PEGS·↳ HR_ALL_ORGANIZATION_UNITS·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·Explore MRP module →
-
View: MRPFV_PLAN_PEGS 12.2.2
- Retrofitted
APPS.MRPFV_PLAN_PEGS·↳ HR_ALL_ORGANIZATION_UNITS·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·Explore MRP module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_V2·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MRP_FLP_ONHAND_V 12.1.1
View of on hand information
APPS.MRP_FLP_ONHAND_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
This table represents the pegging from supply to demands.
-
View: MRP_ATP_PROPERTIES_V 12.2.2
APPS.MRP_ATP_PROPERTIES_V·↳ FND_COMMON_LOOKUPS·↳ FND_GLOBAL·↳ MFG_LOOKUPS·Explore MRP module →
-
View: MRPBV_PLAN_PEGS 12.2.2
APPS.MRPBV_PLAN_PEGS·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·Explore MRP module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_V2·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MSC_FLP_ONHAND_V 12.2.2
APPS.MSC_FLP_ONHAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MRP_ATP_SD_TEMP_V 12.1.1
APPS.MRP_ATP_SD_TEMP_V·↳ MFG_LOOKUPS·↳ MRP_ATP_DETAILS_TEMP·↳ MSC_SCH_WB·Explore MRP module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_ATP_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_DEMAND_SUPPLY_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_V2·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
Full Pegging information
-
Full Pegging information
-
View: MSC_FLP_END_DEMAND_V 12.1.1
APPS.MSC_FLP_END_DEMAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MSC_FLP_END_DEMAND_V 12.2.2
APPS.MSC_FLP_END_DEMAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V·↳ MSC_DEMANDS·↳ MSC_FULL_PEGGING·↳ MSC_GET_NAME·Explore MSC module →
-
View: MRP_FLP_ONHAND_V 12.2.2
View of on hand information
APPS.MRP_FLP_ONHAND_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
This table represents the pegging from supply to demands.
-
APPS.MRP_FLP_SUPPLY_DEMAND_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_SUPPLY_DEMAND_V2·↳ INV_DECIMALS_PUB·↳ INV_SALESORDER·↳ MFG_LOOKUPS·Explore MRP module →
-
View: MRP_FLP_END_DEMAND_V 12.2.2
View of demand information for end assemblies
APPS.MRP_FLP_END_DEMAND_V·↳ FND_GLOBAL·↳ FND_LOOKUP_VALUES·↳ MRP_FULL_PEGGING·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_DEMAND_SUPPLY_V·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_DEMAND_SUPPLY_V2·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View of pegged supply and demand information
APPS.MRP_FLP_DEMAND_SUPPLY_V2·↳ MFG_LOOKUPS·↳ MRP_FULL_PEGGING·↳ MRP_GET_PROJECT·Explore MRP module →
-
View: MRP_ATP_SD_TEMP_V 12.2.2
APPS.MRP_ATP_SD_TEMP_V·↳ MFG_LOOKUPS·↳ MRP_ATP_DETAILS_TEMP·↳ MSC_SCH_WB·Explore MRP module →
-
Holds ATP result details for Supply/Demand, Horizontal ATP and sourcing.
-
Holds ATP result details for Supply/Demand, Horizontal ATP and sourcing.