Search Results ahl_mr_instances_v
Overview
AHL_MR_INSTANCES_V is an APPS-owned database view in the Oracle E-Business Suite Release 12.1.1 / 12.2.2 environment, delivered as part of the AHL – Complex Maintenance Repair and Overhaul (CMRO) product family. Its documented purpose is "View To get all the Maintenance Requirements in Production." In practical terms, the view consolidates unit effectivity records, maintenance requirement headers, visit records, visit tasks, and master work orders into a single denormalized result set that reports the current production status of a maintenance requirement against a specific asset instance.
Because the view is built over the operational AHL transaction tables rather than a reporting-only snapshot, it reflects live production data. It is typically consumed by CMRO inquiry screens, Oracle Reports, BI Publisher layouts, and customer-written SQL used for maintenance dashboards and status reporting. The view derives the maintenance requirement status dynamically by calling AHL_COMPLETIONS_PVT.GET_MR_STATUS, so status values are not stored on the base tables but computed at query time.
Underlying Base Objects
The documented base objects referenced by the view include the unit effectivity and visit foundations of the AHL schema. The principal join path is:
AHL_UE_DEFERRAL_DETAILS_V– source of unit effectivity and maintenance requirement context (aliasedUE), providingUNIT_EFFECTIVITY_ID,MR_HEADER_ID, and QA attributes.AHL_VISITS_B– visit header (aliasedVST), supplyingVISIT_ID,VISIT_NUMBER,START_DATE_TIME, organization, and department.AHL_VISIT_TASKS_B– visit task lines (aliasedVT), joining visits to work orders throughUNIT_EFFECTIVITY_IDandVISIT_ID.AHL_WORKORDERS– master work orders (aliasedWO), filtered byMASTER_WORKORDER_FLAG = 'Y'.FND_LOOKUP_VALUES_VL– lookup view filtered on lookup typeAHL_PRD_MR_STATUSto translate the computed status code into a meaning.BOM_DEPARTMENTSandORG_ORGANIZATION_DEFINITIONS– outer-joined for department description and organization name.
The metadata also documents references to supporting objects such as AHL_UTILITY_PVT (used in the GET_UNIT_NAME call), AHL_COMPLETIONS_PVT, AHL_PRD_PRINT_PVT, FND_GLOBAL, FND_PROFILE, HR_GENERAL, HR_SECURITY, MO_GLOBAL, CSI_ITEM_INSTANCES, CS_INCIDENTS_ALL_VL, MTL_SYSTEM_ITEMS_KFV, and WIP_DISCRETE_JOBS, reflecting the view's inheritance of organization security and item master context.
Key Columns
UNIT_EFFECTIVITY_ID– primary identifier of the unit effectivity record driving the maintenance requirement.MR_HEADER_ID,MR_TITLE– maintenance requirement header identifier and title; the title is decoded to the incident number when no header exists.CSI_ITEM_INSTANCE_ID,INSTANCE_NUMBER,UNIT_NAME– the asset instance and its resolved display name.VISIT_ID,VISIT_NUMBER,VISIT_START_DATE– the visit scheduled against the maintenance requirement.VISIT_START_DATEis the column most commonly targeted by the search term "visit_start_date"; it maps toVST.START_DATE_TIMEonAHL_VISITS_B.STATUS_CODE,STATUS– lookup code (AHL_PRD_MR_STATUS) and its meaning, derived fromAHL_COMPLETIONS_PVT.GET_MR_STATUS.ACTUAL_END_DATE– populated when the status code isACCOMPLISHED,ALL_JOBS_COMPLETE, orALL_JOBS_CLOSED.ORGANIZATION_ID,ORGANIZATION_NAME,DEPARTMENT_ID,DEPARTMENT_NAME– organizational context.PLAN_ID,COLLECTION_ID,QA_INSPECTION_TYPE– quality and planning attributes.
Common Use Cases and Queries
Typical reporting scenarios include maintenance requirement status dashboards, upcoming visit schedules, and completion tracking per asset instance.
- Upcoming visits by start date:
SELECT VISIT_NUMBER, VISIT_START_DATE, UNIT_NAME, STATUS FROM APPS.AHL_MR_INSTANCES_V WHERE VISIT_START_DATE >= TRUNC(SYSDATE) ORDER BY VISIT_START_DATE;
- Production status for an asset instance:
SELECT INSTANCE_NUMBER, MR_TITLE, STATUS, ACTUAL_END_DATE FROM APPS.AHL_MR_INSTANCES_V WHERE CSI_ITEM_INSTANCE_ID = :instance_id;
- Open requirements within an organization:
SELECT ORGANIZATION_NAME, VISIT_NUMBER, VISIT_START_DATE, STATUS FROM APPS.AHL_MR_INSTANCES_V WHERE ORGANIZATION_ID = :org_id AND STATUS_CODE NOT IN ('ACCOMPLISHED','ALL_JOBS_CLOSED');
Because status is computed through AHL_COMPLETIONS_PVT.GET_MR_STATUS, queries returning large result sets can be resource-intensive; filtering by ORGANIZATION_ID, UNIT_EFFECTIVITY_ID, or VISIT_START_DATE range is recommended. Organization-level security inherited from MO_GLOBAL and HR_SECURITY also applies, so results are naturally restricted to the operating unit context of the session.
-
View: AHL_MR_INSTANCES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INSTANCES_V, object_name:AHL_MR_INSTANCES_V, status:VALID, product: AHL - Complex Maintenance Repair and Overhaul , description: View To get all the Maintenance Requirements in Production , implementation_dba_data: APPS.AHL_MR_INSTANCES_V ,
-
View: AHL_MR_INSTANCES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INSTANCES_V, object_name:AHL_MR_INSTANCES_V, status:VALID, product: AHL - Complex Maintenance Repair and Overhaul , description: View To get all the Maintenance Requirements in Production , implementation_dba_data: APPS.AHL_MR_INSTANCES_V ,
-
VIEW: APPS.AHL_MR_INST_RELATIONSHIPS_V
12.1.1
-
VIEW: APPS.AHL_MR_INST_RELATIONSHIPS_V
12.2.2
-
View: AHL_MR_INST_RELATIONSHIPS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INST_RELATIONSHIPS_V, object_name:AHL_MR_INST_RELATIONSHIPS_V, status:VALID, product: AHL - Complex Maintenance Repair and Overhaul , description: View to describe the Relationship between Maintenance Requirements in Production , implementation_dba_data: APPS.AHL_MR_INST_RELATIONSHIPS_V ,
-
View: AHL_MR_INST_RELATIONSHIPS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INST_RELATIONSHIPS_V, object_name:AHL_MR_INST_RELATIONSHIPS_V, status:VALID, product: AHL - Complex Maintenance Repair and Overhaul , description: View to describe the Relationship between Maintenance Requirements in Production , implementation_dba_data: APPS.AHL_MR_INST_RELATIONSHIPS_V ,
-
PACKAGE: APPS.AHL_PRD_PRINT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AHL_PRD_PRINT_PVT, status:VALID,
-
PACKAGE: APPS.AHL_COMPLETIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AHL_COMPLETIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.AHL_QA_RESULTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AHL_QA_RESULTS_PVT, status:VALID,
-
PACKAGE: APPS.AHL_COMPLETIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AHL_COMPLETIONS_PVT, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
PACKAGE: APPS.AHL_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AHL_UTILITY_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.AHL_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AHL_UTILITY_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
APPS.AHL_QA_RESULTS_PVT SQL Statements
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
SYNONYM: APPS.AHL_WORKORDERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AHL_WORKORDERS, status:VALID,
-
SYNONYM: APPS.AHL_VISIT_TASKS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AHL_VISIT_TASKS_B, status:VALID,
-
VIEW: APPS.AHL_MR_INSTANCES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INSTANCES_V, object_name:AHL_MR_INSTANCES_V, status:VALID,
-
PACKAGE BODY: APPS.AHL_COMPLETIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AHL_COMPLETIONS_PVT, status:VALID,
-
SYNONYM: APPS.AHL_VISITS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AHL_VISITS_B, status:VALID,
-
SYNONYM: APPS.AHL_MR_HEADERS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_MR_HEADERS_B, status:VALID,
-
SYNONYM: APPS.AHL_WORKORDERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_WORKORDERS, status:VALID,
-
SYNONYM: APPS.AHL_VISIT_TASKS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_VISIT_TASKS_B, status:VALID,
-
SYNONYM: APPS.AHL_VISITS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_VISITS_B, status:VALID,
-
VIEW: APPS.AHL_MR_INST_RELATIONSHIPS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INST_RELATIONSHIPS_V, object_name:AHL_MR_INST_RELATIONSHIPS_V, status:VALID,
-
VIEW: APPS.AHL_MR_INSTANCES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INSTANCES_V, object_name:AHL_MR_INSTANCES_V, status:VALID,
-
VIEW: APPS.AHL_MR_INST_RELATIONSHIPS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_MR_INST_RELATIONSHIPS_V, object_name:AHL_MR_INST_RELATIONSHIPS_V, status:VALID,
-
VIEW: APPS.CS_INCIDENT_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_INCIDENT_TYPES_VL, object_name:CS_INCIDENT_TYPES_VL, status:VALID,
-
VIEW: APPS.AHL_UE_DEFERRAL_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_UE_DEFERRAL_DETAILS_V, object_name:AHL_UE_DEFERRAL_DETAILS_V, status:VALID,
-
VIEW: APPS.CS_INCIDENT_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_INCIDENT_TYPES_VL, object_name:CS_INCIDENT_TYPES_VL, status:VALID,
-
VIEW: APPS.AHL_UE_DEFERRAL_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_UE_DEFERRAL_DETAILS_V, object_name:AHL_UE_DEFERRAL_DETAILS_V, status:VALID,
-
SYNONYM: APPS.BOM_DEPARTMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:BOM_DEPARTMENTS, status:VALID,
-
SYNONYM: APPS.BOM_DEPARTMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:BOM_DEPARTMENTS, status:VALID,
-
APPS.AHL_COMPLETIONS_PVT dependencies on AHL_MR_INSTANCES_V
12.2.2
-
APPS.AHL_QA_RESULTS_PVT dependencies on AHL_MR_INSTANCES_V
12.2.2
-
VIEW: APPS.FND_LOOKUP_VALUES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUP_VALUES_VL, object_name:FND_LOOKUP_VALUES_VL, status:VALID,
-
SYNONYM: APPS.WIP_DISCRETE_JOBS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WIP_DISCRETE_JOBS, status:VALID,
-
VIEW: APPS.FND_LOOKUP_VALUES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUP_VALUES_VL, object_name:FND_LOOKUP_VALUES_VL, status:VALID,
-
SYNONYM: APPS.WIP_DISCRETE_JOBS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WIP_DISCRETE_JOBS, status:VALID,
-
SYNONYM: APPS.CSI_ITEM_INSTANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CSI_ITEM_INSTANCES, status:VALID,
-
VIEW: APPS.ORG_ORGANIZATION_DEFINITIONS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.ORG_ORGANIZATION_DEFINITIONS, object_name:ORG_ORGANIZATION_DEFINITIONS, status:VALID,
-
PACKAGE: APPS.HR_SECURITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_SECURITY, status:VALID,
-
PACKAGE: APPS.HR_SECURITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_SECURITY, status:VALID,
-
VIEW: APPS.ORG_ORGANIZATION_DEFINITIONS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.ORG_ORGANIZATION_DEFINITIONS, object_name:ORG_ORGANIZATION_DEFINITIONS, status:VALID,
-
VIEW: APPS.CS_INCIDENTS_ALL_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_INCIDENTS_ALL_VL, object_name:CS_INCIDENTS_ALL_VL, status:VALID,
-
VIEW: APPS.CS_INCIDENTS_ALL_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CS.CS_INCIDENTS_ALL_VL, object_name:CS_INCIDENTS_ALL_VL, status:VALID,
-
SYNONYM: APPS.MTL_SYSTEM_ITEMS_KFV
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_SYSTEM_ITEMS_KFV, status:VALID,
-
APPS.AHL_COMPLETIONS_PVT SQL Statements
12.2.2