Search Results mrpbv_plan_pegs
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.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MRP.MRPBV_PLAN_PEGS, object_name:MRPBV_PLAN_PEGS, status:VALID, product: MRP - Master Scheduling/MRP , implementation_dba_data: APPS.MRPBV_PLAN_PEGS ,
-
View: MRPBV_PLAN_PEGS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MRP.MRPBV_PLAN_PEGS, object_name:MRPBV_PLAN_PEGS, status:VALID, product: MRP - Master Scheduling/MRP , implementation_dba_data: APPS.MRPBV_PLAN_PEGS ,
-
SYNONYM: APPS.MRP_FULL_PEGGING
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MRP_FULL_PEGGING, status:VALID,
-
SYNONYM: APPS.MRP_FULL_PEGGING
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MRP_FULL_PEGGING, status:VALID,
-
VIEW: APPS.MRPBV_PLAN_PEGS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MRP.MRPBV_PLAN_PEGS, object_name:MRPBV_PLAN_PEGS, status:VALID,
-
VIEW: APPS.MRPBV_PLAN_PEGS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MRP.MRPBV_PLAN_PEGS, object_name:MRPBV_PLAN_PEGS, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
VIEW: APPS.MFG_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MFG_LOOKUPS, object_name:MFG_LOOKUPS, status:VALID,
-
VIEW: APPS.MFG_LOOKUPS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MFG_LOOKUPS, object_name:MFG_LOOKUPS, status:VALID,
-
eTRM - MRP Tables and Views
12.1.1
description: Recommendations based on user criteria selected in MRP Planner WorkBench ,
-
eTRM - MRP Tables and Views
12.2.2
description: Recommendations based on user criteria selected in MRP Planner WorkBench ,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - INV Tables and Views
12.2.2
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - MRP Tables and Views
12.2.2
description: Recommendations based on user criteria selected in MRP Planner WorkBench ,
-
eTRM - MRP Tables and Views
12.1.1
description: Recommendations based on user criteria selected in MRP Planner WorkBench ,
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - INV Tables and Views
12.2.2