Results for “ahl_visit_tasks_v”

46 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

AHL_VISIT_TASKS_V is a reporting and integration view owned by the APPS schema within the Oracle E-Business Suite Release 12.1.1 and 12.2.2 environments. It belongs to the AHL product family, Complex Maintenance Repair and Overhaul (CMRO), a module used in heavily regulated and asset-intensive industries such as aerospace, defense, and utilities. The view consolidates visit-level and visit-task-level information into a single denormalized access point, joining visit header data with task detail data.

The view presents maintenance and overhaul tasks associated with a specific maintenance visit — a discrete service event during which one or more tasks are executed against an asset or inventory item. Its primary role is to support operational reporting, costs and pricing analysis, task scheduling displays, and downstream integrations that must retrieve visit tasks without navigating the normalized _B and _TL table pairs directly. Its status is documented as VALID, indicating a compiled and available object in the APPS schema.

Underlying Base Objects

The ETRM metadata documents the view as being defined over four referenced objects, all resolved through APPS-owned synonyms and related views:

Join predicates enforce B.VISIT_TASK_ID = T.VISIT_TASK_ID, B.VISIT_ID = C.VISIT_ID, and C.SIMULATION_PLAN_ID = D.SIMULATION_PLAN_ID. Critically, the view restricts output to the primary simulation plan via D.PRIMARY_PLAN_FLAG = 'Y', and restricts translated text to the session language using T.LANGUAGE = USERENV('LANG'). As a result, only tasks belonging to the primary plan of each visit are returned, and only one language row per task is exposed.

Key Columns

Common Use Cases and Queries

Typical usage includes listing all tasks for a given visit, producing cost and price variance reports, feeding task data into scheduling or shop-floor dashboards, and extracting task details for integration. Because the view already filters to the primary simulation plan and the session language, it simplifies reporting logic considerably.

Retrieve all tasks for a specific visit:

SELECT VISIT_NUMBER, VISIT_TASK_NUMBER, VISIT_TASK_NAME, STATUS_CODE, DURATION
FROM APPS.AHL_VISIT_TASKS_V
WHERE VISIT_ID = :p_visit_id
ORDER BY START_FROM_HOUR;

Compare estimated and actual pricing by task:

SELECT CONCATENATED_VISIT_TASK, ESTIMATED_PRICE, ACTUAL_PRICE, ACTUAL_COST
FROM APPS.AHL_VISIT_TASKS_V
WHERE STATUS_CODE = 'COMPLETE';

Locate tasks for a specific inventory item or instance:

SELECT VISIT_TASK_ID, VISIT_TASK_NAME, TASK_TYPE_CODE
FROM APPS.AHL_VISIT_TASKS_V
WHERE INVENTORY_ITEM_ID = :p_item_id
AND INSTANCE_ID = :p_instance_id;

Analysts should note that the PRIMARY_PLAN_FLAG = 'Y' restriction means tasks tied solely to non-primary simulation plans will not appear. Reports requiring all simulation plans must query AHL_VISIT_TASKS_B and AHL_VISITS_VL directly rather than relying on this view. Similarly, the language restriction means translations are returned only for the current session language, which should be considered when building multilingual or batch extraction processes.