Search Results ahl_visit_tasks_vl




Overview

In Oracle E-Business Suite 12.1.1 and 12.2.2, AHL_VISIT_TASKS_VL is a documented view owned by the APPS schema within the AHL (Complex Maintenance Repair and Overhaul) product family. Per its ETRM metadata the object is VALID and its purpose is to "store the query to retrieve Visit Task details." Functionally it is a translation (VL, "view language") view: it collapses the physical, language-independent base table and its language-dependent translation table into a single reporting surface that automatically filters on the session language.

Because the view resolves the user's language at runtime via USERENV('LANG'), it is the appropriate access point for any component — concurrent program, OAF page, BI Publisher report, or external integration — that needs human-readable task names and descriptions alongside the structural visit-task data. It is a query-only construct; DML against visit tasks must be issued against the underlying _B and _TL tables through the appropriate AHL APIs.

Underlying Base Objects

The view is defined over two referenced base objects, both exposed to APPS through synonyms:

  • AHL_VISIT_TASKS_B — the language-independent base table holding task identity, foreign keys, dates, costs, flexfield attributes, and workflow columns.
  • AHL_VISIT_TASKS_TL — the language-dependent translation table holding VISIT_TASK_NAME and DESCRIPTION per installed language.

The join is an equi-join on VISIT_TASK_ID in both directions, with the language predicate T.LANGUAGE = USERENV('LANG') applied to the _TL side. In the view text the _B table is aliased B and the _TL table is aliased T. Only rows having a translation in the current session language are returned, which is the expected behavior for VL views.

Key Columns

Common Use Cases and Queries

Typical scenarios include listing all tasks for a given visit, extracting translated task details for BI Publisher output, joining task data to work-order or maintenance-route information, and feeding external MRO integrations. The language filter makes it safe to use whenever end users must see text in their own language.

  • Tasks for a visit:
    SELECT visit_task_id, visit_task_number, visit_task_name, status_code FROM apps.ahl_visit_tasks_vl WHERE visit_id = :p_visit_id ORDER BY visit_task_number;
  • Open tasks by status:
    SELECT visit_task_number, visit_task_name, estimated_price FROM apps.ahl_visit_tasks_vl WHERE status_code = 'OPEN';
  • Cost/pricing summary:
    SELECT visit_id, SUM(actual_cost) actual_cost, SUM(estimated_price) est_price FROM apps.ahl_visit_tasks_vl GROUP BY visit_id;
  • By maintained item:
    SELECT visit_task_number, visit_task_name FROM apps.ahl_visit_tasks_vl WHERE inventory_item_id = :p_item AND item_organization_id = :p_org;

Because the USERENV('LANG') predicate is embedded, the view requires a properly initialized EBS session (or an explicit language override in a NLS-enabled client) to return rows. Applications should treat it as read-only and rely on the AHL public APIs for insert, update, or delete operations on visit tasks.