Results for “task_type_code”

50+ results




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

Overview

APPS.AHL_SEARCH_VISIT_TASK_V is a read-only database view in the Oracle E-Business Suite Release 12.1.1 and 12.2.2 environments, owned by the APPS schema and shipped as part of the AHL – Complex Maintenance Repair and Overhaul (CMRO) product family. Its documented purpose is to store the query used by the Search Visit Tasks screen to retrieve visit task information. In practice, the view functions as the data access layer behind that screen, joining visit header data, visit task detail, master route configuration, asset instance data, service requests, departments, and the work orders generated against visit tasks into one denormalized result set.

The view is heavily used in reporting and integration scenarios because it consolidates attributes that normally reside across a dozen or more AHL, CSI, CS, BOM, and MTL objects. The reference to WORKORDER_ID in the view text (aliased from AWO.WORKORDER_ID in AHL_WORKORDERS) is the primary correlation point between a scheduled visit task and its execution work order, which is why users searching for "work_order_id" land on this object. Only non-template visits are returned, because the view filters AVTS.TEMPLATE_FLAG = 'N'.

Underlying Base Objects

The view is defined over the following documented base objects:

All joins to optional parents (asset instance, service request, originating task, master route, unit effectivity, department, lookups) are outer joins, so a visit task is still returned even when those relationships are absent.

Key Columns

Common Use Cases and Queries

Typical scenarios include locating the work order generated for a given visit task, reviewing all tasks on a visit with their statuses and actual dates, and reporting task-to-asset or task-to-service-request traceability.

Find work orders for a specific visit task number:

  • SELECT VISIT_NUMBER, VISIT_TASK_NUMBER, WORKORDER_ID, WORKORDER_NAME, STATUS_CODE FROM APPS.AHL_SEARCH_VISIT_TASK_V WHERE VISIT_TASK_NUMBER = :task_number;

List all tasks and their work orders for a visit:

  • SELECT VISIT_TASK_NUMBER, VISIT_TASK_NAME, WORKORDER_ID, WORKORDER_NAME, ACTUAL_START_DATE FROM APPS.AHL_SEARCH_VISIT_TASK_V WHERE VISIT_ID = :visit_id ORDER BY VISIT_TASK_NUMBER;

Because the view embeds FND_LOOKUP_VALUES joins and outer joins across large maintenance tables, queries should be filtered on indexed identifiers such as VISIT_ID, VISIT_TASK_ID, WORKORDER_ID, or INSTANCE_ID to avoid full scans. As with all AHL views, query it with read-only privileges and never attempt DML, since it is a non-updatable join view.