Search Results demand
Deep Dive into MRP_ATP_DETAILS_TEMP Table in Oracle EBS 12.1.1/12.2.2
The MRP_ATP_DETAILS_TEMP table in Oracle E-Business Suite (EBS) versions 12.1.1 and 12.2.2 is a critical temporary storage structure used within the Material Requirements Planning (MRP) and Available-to-Promise (ATP) modules. This table plays a pivotal role in processing ATP inquiries, allocations, and scheduling by temporarily holding intermediate calculation results before final commitment to transactional tables. Below is a detailed breakdown of its purpose, structure, and functional significance.
1. Purpose and Context
The MRP_ATP_DETAILS_TEMP table acts as a staging area during ATP calculations, which determine product availability based on supply (inventory, purchase orders, production schedules) and demand (sales orders, forecasts). It stores transient data generated during ATP rule evaluations, including projected availability dates, quantities, and sourcing details. This temporary storage ensures performance efficiency by avoiding direct writes to permanent tables during complex ATP computations.
2. Key Columns and Data Structure
The table's schema typically includes the following columns (specifics may vary by EBS version):
- SESSION_ID: Unique identifier linking temporary data to a user session.
- INVENTORY_ITEM_ID: References the item being analyzed (foreign key to MTL_SYSTEM_ITEMS_B).
- ORGANIZATION_ID: Identifies the inventory organization (foreign key to HR_ORGANIZATION_UNITS).
- REQUESTED_DATE: The date for which ATP is calculated.
- QUANTITY: Available or allocated quantity.
- ATP_RULE_ID: References the ATP rule applied (from MRP_ATP_RULES).
- SOURCE_TYPE: Indicates supply source (e.g., 'ONHAND', 'PURCHASE_ORDER').
- STATUS_FLAG: Marks data as processed or pending.
3. Integration with ATP Workflow
During ATP execution, Oracle EBS populates MRP_ATP_DETAILS_TEMP in these stages:
- Initialization: Session-specific data is inserted for each ATP inquiry.
- Rule Processing: ATP rules evaluate supply/demand, updating quantities and dates in the temp table.
- Allocation: Temporary records are used to reserve quantities (if allocation is enabled).
- Cleanup: Data is purged post-transaction or via scheduled jobs (e.g., MRP_ATP_TEMP_DATA_CLEANUP).
4. Performance and Maintenance Considerations
Since this table handles high-volume transient data, improper maintenance can lead to performance degradation:
- Indexing: Oracle typically indexes SESSION_ID and STATUS_FLAG for faster queries.
- Purging: Implement regular cleanup via concurrent programs to avoid table bloating.
- Partitioning (12.2.2+): Enhances scalability by partitioning data by session or date ranges.
5. Customization and Extensions
In custom ATP implementations, developers may extend this table by:
- Adding columns for custom sourcing logic (e.g., subcontractor lead times).
- Integrating with PL/SQL APIs like MRP_ATP_PUB.CALL_ATP to modify temp data pre-commit.
6. Troubleshooting
Common issues include orphaned records (due to session crashes) or locking conflicts. Diagnostic queries often join this table with MRP_ATP_SESSIONS to identify stale data.
In summary, MRP_ATP_DETAILS_TEMP is a foundational component of Oracle EBS's ATP engine, balancing computational complexity with transactional integrity. Its efficient design ensures real-time availability checks while maintaining system performance through transient data management.
-
Lookup Type: MRP_DEMAND_ORIGINATION
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP DEMAND ORIGINATION ,
-
Lookup Type: MRP_DEMAND_ORIGINATION
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP DEMAND ORIGINATION ,
-
Lookup Type: MRP_HORIZONTAL_PLAN_TYPE_SC
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP HORIZONTAL PLAN TYPE SC ,
-
Lookup Type: RHX_DP_DATA_ELEMENT_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Data Element Type , description: Demand Planner data element type ,
-
Lookup Type: RHX_DP_LEVEL_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Level Type , description: Demand Planner level type ,
-
Lookup Type: MRP_DEMAND_TIME_FENCE_OPTIONS
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP DEMAND TIME FENCE OPTIONS ,
-
Lookup Type: DEMAND_PLANNER_DIMENSIONS
12.1.1
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Dimension , description: Demand Planner Dimension ,
-
Lookup Type: DEMAND_PLANNER_DIMENSIONS
12.2.2
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Dimension , description: Demand Planner Dimension ,
-
Lookup Type: MRP_DEMAND_TIME_FENCE_OPTIONS
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP DEMAND TIME FENCE OPTIONS ,
-
Lookup Type: RHX_DP_LEVEL_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Level Type , description: Demand Planner level type ,
-
Lookup Type: RHX_DP_DATA_ELEMENT_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: Demand Planner Data Element Type , description: Demand Planner data element type ,
-
Lookup Type: MRP_PLANNED_ORDER_DEMAND
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP PLANNED ORDER DEMAND ,
-
Lookup Type: MRP_PLANNED_ORDER_DEMAND
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP PLANNED ORDER DEMAND ,
-
Lookup Type: MRP_REPETITIVE_DEMAND_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP REPETITIVE DEMAND TYPE ,
-
Lookup Type: MRP_REPETITIVE_DEMAND_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP REPETITIVE DEMAND TYPE ,
-
Concurrent Program: EDW_MRP_DM_CLS_M
12.1.1
execution_filename: EDW_MRP_DM_CLS_M_C.PUSH , product: MRP - Master Scheduling/MRP , user_name: EDW_MRP_DM_CLS_M , description: Demand Class Dimension , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Lookup Type: MRP_ATP_FORM_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP_ATP_FORM_TYPE , description: Lookups used by the ATP form ,
-
Lookup Type: MRP_ATP_FORM_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP_ATP_FORM_TYPE , description: Lookups used by the ATP form ,
-
Concurrent Program: EDW_MRP_DM_CLS_M
12.2.2
execution_filename: EDW_MRP_DM_CLS_M_C.PUSH , product: MRP - Master Scheduling/MRP , user_name: EDW_MRP_DM_CLS_M , description: Demand Class Dimension , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Lookup Type: MRP_HORIZONTAL_PLAN_TYPE_SC
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP HORIZONTAL PLAN TYPE SC ,
-
Lookup Type: MRP_SUPPLY_DEMAND_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP SUPPLY DEMAND TYPE ,
-
Lookup Type: MRP_SUPPLY_DEMAND_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP SUPPLY DEMAND TYPE ,
-
Lookup Type: MRP_SCP_PART_INCLUDE_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP SCP PART INCLUDE TYPE ,
-
Concurrent Program: MRRGRF
12.1.1
execution_filename: MRRGRF , product: MRP - Master Scheduling/MRP , user_name: MRRGRF , description: MRP/MPS Graphical Report , argument_method: Database fetch , enabled: Yes , execution_method: Spawned ,
-
Concurrent Program: MRRGS1
12.1.1
execution_filename: MRRGRF , product: MRP - Master Scheduling/MRP , user_name: MRRGRF , description: MRP/MPS Graphical Report , argument_method: Database fetch , enabled: Yes , execution_method: Spawned ,
-
Lookup Type: MRP_SCP_PART_INCLUDE_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP SCP PART INCLUDE TYPE ,
-
Lookup Type: MRP_EXCEPTION_CODE_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP EXCEPTION CODE TYPE ,
-
Concurrent Program: MRRGRF
12.2.2
execution_filename: MRRGRF , product: MRP - Master Scheduling/MRP , user_name: MRRGRF , description: MRP/MPS Graphical Report , argument_method: Database fetch , enabled: Yes , execution_method: Spawned ,
-
Concurrent Program: MRRGS1
12.2.2
execution_filename: MRRGRF , product: MRP - Master Scheduling/MRP , user_name: MRRGRF , description: MRP/MPS Graphical Report , argument_method: Database fetch , enabled: Yes , execution_method: Spawned ,
-
Lookup Type: MRP_HORIZONTAL_PLAN_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP HORIZONTAL PLAN TYPE ,
-
Lookup Type: MRP_HORIZONTAL_PLAN_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP HORIZONTAL PLAN TYPE ,
-
Lookup Type: MRP_EXCEPTION_CODE_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP EXCEPTION CODE TYPE ,
-
Lookup Type: MRP_ORDER_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP ORDER TYPE ,
-
Lookup Type: MRP_ORDER_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP ORDER TYPE ,
-
Lookup Type: MRP_SUPPLY_DEMAND_SOURCE_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP_SUPPLY_DEMAND_SOURCE_TYPE ,
-
Lookup Type: MRP_SUPPLY_DEMAND_SOURCE_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP_SUPPLY_DEMAND_SOURCE_TYPE ,
-
Table: MRP_ATP_DETAILS_TEMP
12.1.1
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_ATP_DETAILS_TEMP, object_name:MRP_ATP_DETAILS_TEMP, status:VALID, product: MRP - Master Scheduling/MRP , description: Holds ATP result details for Supply/Demand, Horizontal ATP and sourcing. , implementation_dba_data: MRP.MRP_ATP_DETAILS_TEMP ,
-
Table: MRP_KANBAN_DEMAND
12.1.1
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_KANBAN_DEMAND, object_name:MRP_KANBAN_DEMAND, status:VALID, product: MRP - Master Scheduling/MRP , description: Demand information for items included in a kanban plan , implementation_dba_data: MRP.MRP_KANBAN_DEMAND ,
-
Table: MRP_KANBAN_DEMAND
12.2.2
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_KANBAN_DEMAND, object_name:MRP_KANBAN_DEMAND, status:VALID, product: MRP - Master Scheduling/MRP , description: Demand information for items included in a kanban plan , implementation_dba_data: MRP.MRP_KANBAN_DEMAND ,
-
Lookup Type: MRP_AUTO_REDUCE_MPS
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP AUTO REDUCE MPS ,
-
Lookup Type: MRP_ACTIONS
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP ACTIONS ,
-
Lookup Type: MRP_ACTIONS
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP ACTIONS ,
-
Table: MRP_ATP_DETAILS_TEMP
12.2.2
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_ATP_DETAILS_TEMP, object_name:MRP_ATP_DETAILS_TEMP, status:VALID, product: MRP - Master Scheduling/MRP , description: Holds ATP result details for Supply/Demand, Horizontal ATP and sourcing. , implementation_dba_data: MRP.MRP_ATP_DETAILS_TEMP ,
-
Lookup Type: MRP_SCHEDULE_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP SCHEDULE TYPE ,
-
Lookup Type: MRP_SCHEDULE_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP SCHEDULE TYPE ,
-
Lookup Type: MRP_AUTO_REDUCE_MPS
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP AUTO REDUCE MPS ,
-
Lookup Type: MRP_FLP_SUPPLY_DEMAND_TYPE
12.2.2
product: MRP - Master Scheduling/MRP , meaning: MRP FLP SUPPLY DEMAND TYPE ,
-
Lookup Type: MRP_FLP_SUPPLY_DEMAND_TYPE
12.1.1
product: MRP - Master Scheduling/MRP , meaning: MRP FLP SUPPLY DEMAND TYPE ,
-
Table: MRP_PLAN_SCHEDULES
12.2.2
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_PLAN_SCHEDULES, object_name:MRP_PLAN_SCHEDULES, status:VALID, product: MRP - Master Scheduling/MRP , description: Supply and Demand Schedules for MPS, MRP, and DRP plans , implementation_dba_data: MRP.MRP_PLAN_SCHEDULES ,
-
Table: MRP_PLAN_SCHEDULES
12.1.1
owner:MRP, object_type:TABLE, fnd_design_data:MRP.MRP_PLAN_SCHEDULES, object_name:MRP_PLAN_SCHEDULES, status:VALID, product: MRP - Master Scheduling/MRP , description: Supply and Demand Schedules for MPS, MRP, and DRP plans , implementation_dba_data: MRP.MRP_PLAN_SCHEDULES ,