Results for “cs_incident_number”
22 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
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.2.2
View To get all the Maintenance Requirements in Production
APPS.AHL_MR_INSTANCES_V·↳ AHL_COMPLETIONS_PVT·↳ AHL_MR_HEADERS_B·↳ AHL_PRD_PRINT_PVT·Explore AHL module →
-
View: AHL_MR_INSTANCES_V 12.1.1
View To get all the Maintenance Requirements in Production
APPS.AHL_MR_INSTANCES_V·↳ AHL_COMPLETIONS_PVT·↳ AHL_UE_DEFERRAL_DETAILS_V·↳ AHL_UTILITY_PVT·Explore AHL module →
-
This view stores the query to retrieve unit effectivities information based on the Maintainance Requirements defined in Fleet Maintainance Program and item instances available in Install Base for a position (node).
APPS.AHL_UNIT_EFFECTIVITIES_V·↳ AHL_MR_HEADERS_B·↳ AHL_MR_HEADERS_TL·↳ AHL_MR_INTERVALS·Explore AHL module →
-
View to retrieve the deferral and unit effectivity details.
APPS.AHL_UE_DEFERRAL_DETAILS_V·↳ AHL_MR_HEADERS_V·↳ AHL_UNIT_DEFERRALS_B·↳ AHL_UNIT_EFFECTIVITIES_APP_V·Explore AHL module →
-
View to retrieve the deferral and unit effectivity details.
APPS.AHL_UE_DEFERRAL_DETAILS_V·↳ AHL_MR_HEADERS_V·↳ AHL_UNIT_DEFERRALS_B·↳ AHL_UNIT_EFFECTIVITIES_APP_V·Explore AHL module →
-
This view stores the query to retrieve unit effectivities information based on the Maintainance Requirements defined in Fleet Maintainance Program and item instances available in Install Base for a position (node).
APPS.AHL_UNIT_EFFECTIVITIES_V·↳ AHL_MR_HEADERS_B·↳ AHL_MR_HEADERS_TL·↳ AHL_MR_INTERVALS·Explore AHL module →
-
eTRM - AHL Tables and Views 12.1.1
Ahl Production Workorder Operations Information stored in this table
-
eTRM - AHL Tables and Views 12.2.2
Ahl Production Workorder Operations Information stored in this table