Results for “ahl_visit_tasks_b_u2”

12 results




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

Overview

AHL.AHL_VISIT_TASKS_B is the base transactional table within the Oracle E-Business Suite (EBS) Complex Maintenance, Repair, and Overhaul (CMRO) / Enterprise Asset Management (AHL) schema that stores the individual task lines belonging to a visit. Each row represents a discrete maintenance, repair, or service activity scheduled against a visit header, capturing planning attributes, execution status, pricing, quantity, and sourcing references used by the Service/Repair scheduling engine. In EBS 12.1.1 and 12.2.2 the table resides in the APPS_TS_TX_DATA tablespace with PCT Free 10, and is registered in FND Design Data as AHL.AHL_VISIT_TASKS_B with a VALID status.

From a dimensional modeling perspective (Data Vault heuristic), the FK structure—multiple inbound foreign keys referencing independent business entities such as visits, material requirements, unit effectivity, service requests, and projects—suggests classifying this table as a hub, with its unique business keys acting as the natural candidates for hub key derivation. The table is paired with a translated table (AHL_VISIT_TASKS_TL) that carries language-dependent descriptive fields keyed by VISIT_TASK_ID.

Key Information Stored

The table contains 61 documented columns. The surrogate primary key is VISIT_TASK_ID, exposed through the unique index AHL_VISIT_TASKS_B_U1, and is complemented by standard WHO columns (CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN) and OBJECT_VERSION_NUMBER for optimistic locking.

Common Use Cases and Queries

Typical reporting and integration scenarios include retrieving all tasks for a visit, monitoring task status through execution, reconciling estimated versus actual cost, and populating maintenance work orders.

  • List tasks for a visit. SELECT VISIT_TASK_ID, VISIT_TASK_NUMBER, STATUS_CODE, DURATION FROM AHL.AHL_VISIT_TASKS_B WHERE VISIT_ID = :p_visit_id ORDER BY VISIT_TASK_NUMBER;
  • Task with translated description. Join to AHL_VISIT_TASKS_TL on VISIT_TASK_ID to retrieve language-specific text (2.2 supports multi-language).
  • Cost variance reporting. Aggregate ESTIMATED_PRICE, ACTUAL_PRICE, and ACTUAL_COST by VISIT_ID, TASK_TYPE_CODE, or DEPARTMENT_ID.
  • Hierarchy traversal. Use a recursive query on ORIGINATING_TASK_ID (or through AHL_TASK_LINKS) to explode summary tasks into child tasks.
  • Work order bridge. Join to AHL_WORKORDERS on VISIT_TASK_ID to trace execution against scheduled tasks.
  • Instance/billable reporting. Join INSTANCE_ID to CSI_ITEM_INSTANCES and INVENTORY_ITEM_ID to MTL_SYSTEM_ITEMS_B to report by customer asset.

Because VISIT_TASK_NUMBER is unique only within VISIT_ID, queries keyed on task number alone must always be qualified by the visit—this is the practical implication of index AHL_VISIT_TASKS_B_U2.

Related Objects

  • AHL_VISITS_B — parent visit header; join on VISIT_ID.
  • AHL_VISIT_TASKS_TL — translated descriptions; join on VISIT_TASK_ID.
  • AHL_TASK_LINKS — task dependency/parent-child relationships; joins on both VISIT_TASK_ID and PARENT_TASK_ID.
  • AHL_WORKORDERS — execution work orders; FK VISIT_TASK_ID.
  • AHL_SCHEDULE_MATERIALS — scheduled material lines; FK VISIT_TASK_ID.
  • AHL_SNAPSHOTS — historical snapshot of task state; FK VISIT_TASK_ID.
  • AHL_MR_HEADERS_B and AHL_MR_ROUTES — material requirement headers and routing; joins on MR_ID and MR_ROUTE_ID.
  • AHL_UNIT_EFFECTIVITIES_B — effectivity definition; join on UNIT_EFFECTIVITY_ID.
  • CSI_ITEM_INSTANCES — installed base instance; join on INSTANCE_ID.
  • MTL_SYSTEM_ITEMS_B, BOM_DEPARTMENTS, PA_TASKS, and CS_INCIDENTS_ALL_B — cross-module masters joined through INVENTORY_ITEM_ID, DEPARTMENT_ID, PROJECT_TASK_ID, and SERVICE_REQUEST_ID respectively.