Search Results original_demand_id
Overview
MSC.MSC_ATP_DETAIL_PEG_TEMP is a global temporary table in the MSC (Advanced Supply Chain Planning / VCP) schema. It is registered in Oracle E-Business Suite FND Design Data as MSC.MSC_ATP_DETAIL_PEG_TEMP and holds a VALID status in the 12.1.1 and 12.2.2 releases. The table is defined as a global temporary table with a data duration of SYS$TRANSACTION, meaning that rows inserted by a session are visible only to that session and are deleted when the transaction commits. This design is characteristic of an intermediate planning workspace, where the ATP (Available-to-Promise) engine stages pegging and demand/supply detail during a planning or promising run before results are consumed or merged into permanent planning tables.
The table consists of 41 documented columns and one non-unique index, MSC_ATP_DETAIL_PEG_TEMP_N1, on the combination of PLAN_ID, SR_INSTANCE_ID, REFERENCE_ITEM_ID, and SALES_ORDER_LINE_ID. That index reflects the primary access pattern: retrieving detail rows for a given plan, source instance, and item/sales order combination. From a Data Vault modeling perspective, the metadata classifies this object as standalone; because it has only one documented foreign key (PEGGING_ID to MRP_FULL_PEGGING), it does not behave as a conventional hub, link, or satellite, but rather as a transient staging structure for pegging detail.
Key Information Stored
The columns capture the demand-to-supply pegging relationship plus ATP-relevant quantities and dates. The most significant columns include:
- PLAN_ID, SR_INSTANCE_ID, ORGANIZATION_ID – identify the plan, source instance, and inventory organization scope of the row.
- REFERENCE_ITEM_ID, BASE_ITEM_ID, INVENTORY_ITEM_ID – the item context for the pegging record; REFERENCE_ITEM_ID participates in the non-unique index.
- DEMAND_ID, DEMAND_DATE, DEMAND_QUANTITY, DEMAND_CLASS, DEMAND_TYPE – the demand side of the peg.
- ORIGINAL_DEMAND_ID – the identifier of the original demand record from which the current demand was derived, used when demand is split or re-created during promising; this is the column users frequently search for.
- SUPPLY_ID, SUPPLY_DATE, SUPPLY_QUANTITY, SUPPLY_TYPE, ALLOCATED_QUANTITY – the supply side of the peg and the quantity allocated to the demand.
- PEGGING_ID, END_PEGGING_ID, PREV_PEGGING_ID, END_DEMAND_ID – the pegging chain identifiers; PEGGING_ID has a documented foreign key to MRP_FULL_PEGGING.
- SALES_ORDER_LINE_ID, SALES_ORDER_QTY, ORDER_NUMBER – sales order context for the demand.
- DEMAND_SOURCE_TYPE, PRODUCT_FAMILY_ID, ATF_DATE – source classification and ATP/ATF date context.
No surrogate primary key is documented; the only documented unique constraint is absent, so business-key uniqueness is not enforced on this temporary structure. Identification is instead driven by the composite index columns.
Common Use Cases and Queries
The table is typically consumed within ATP or planning concurrent programs. Typical use cases include debugging an ATP pegging result, tracing which supply satisfies a given demand, and analyzing forecast consumption and overconsumption. Because it is a session-scoped temporary table, queries must run in the same session that populated it.
Sample pattern to trace demand lineage:
- SELECT DEMAND_ID, ORIGINAL_DEMAND_ID, DEMAND_QUANTITY, SUPPLY_ID, ALLOCATED_QUANTITY FROM MSC_ATP_DETAIL_PEG_TEMP WHERE PLAN_ID = :plan_id AND ORIGINAL_DEMAND_ID = :demand_id;
- SELECT REFERENCE_ITEM_ID, SALES_ORDER_LINE_ID, DEMAND_DATE, SUPPLY_DATE FROM MSC_ATP_DETAIL_PEG_TEMP WHERE PLAN_ID = :plan_id AND SR_INSTANCE_ID = :sr_instance_id;
Reporting use cases focus on pegging reports, ATP availability checks, and reconciliation between forecast and consumed quantities.
Related Objects
The documented foreign key links PEGGING_ID to MRP_FULL_PEGGING, which supplies the persistent pegging chain. Other significant related objects include MSC.MRP_FULL_PEGGING for full pegging detail, the permanent ATP detail tables that receive promoted results, the sales order tables referenced through SALES_ORDER_LINE_ID and ORDER_NUMBER, the planning plan and organization tables referenced through PLAN_ID and ORGANIZATION_ID, and the source instance reference for SR_INSTANCE_ID. Access is generally through the MSC planning and ATP concurrent programs rather than direct SQL against this temporary store.
-
TABLE: MSC.MSC_ATP_DETAIL_PEG_TEMP
12.1.1
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_ATP_DETAIL_PEG_TEMP, object_name:MSC_ATP_DETAIL_PEG_TEMP, status:VALID,
-
VIEW: MSC.MSC_DEMANDS#
12.2.2
-
TABLE: MSC.MSC_ATP_DETAIL_PEG_TEMP
12.2.2
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_ATP_DETAIL_PEG_TEMP, object_name:MSC_ATP_DETAIL_PEG_TEMP, status:VALID,
-
TABLE: MSC.MSC_DEMANDS
12.2.2
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_DEMANDS, object_name:MSC_DEMANDS, status:VALID,
-
VIEW: MSC.MSC_DEMANDS#
12.2.2
owner:MSC, object_type:VIEW, object_name:MSC_DEMANDS#, status:VALID,
-
TABLE: MSC.MSC_DEMANDS
12.1.1
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_DEMANDS, object_name:MSC_DEMANDS, status:VALID,
-
APPS.MSC_ATP_PEG SQL Statements
12.1.1
-
APPS.MSC_ATP_PEG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.MSC_ATP_PEG
12.2.2
-
PACKAGE BODY: APPS.MSC_ATP_PEG
12.1.1
-
APPS.MSC_ATP_PEG dependencies on MSC_ATP_DETAIL_PEG_TEMP
12.2.2
-
APPS.MSC_ATP_PEG dependencies on MSC_ATP_DETAIL_PEG_TEMP
12.1.1
-
APPS.MSC_ATP_PEG dependencies on MSC_FULL_PEGGING
12.2.2
-
APPS.MSC_ATP_PEG dependencies on MSC_FULL_PEGGING
12.1.1
-
PACKAGE BODY: APPS.MSC_GLOBAL_FORECASTING
12.2.2
-
PACKAGE BODY: APPS.MSC_GLOBAL_FORECASTING
12.1.1
-
APPS.MSC_ATP_PEG dependencies on MRP_ATP_PUB
12.2.2
-
APPS.MSC_ATP_PEG dependencies on MRP_ATP_PUB
12.1.1
-
PACKAGE BODY: APPS.MSC_GET_NAME
12.2.2
-
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 ,
-
APPS.MSC_ATP_PEG dependencies on MSC_UTIL
12.2.2
-
APPS.MSC_ATP_PEG dependencies on MSC_UTIL
12.1.1