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.
- Business-key candidates. The unique index
AHL_VISIT_TASKS_B_U2covers (VISIT_ID,VISIT_TASK_NUMBER), meaning every task line is uniquely identified within its parent visit by a user-facing task number. The user's search term ahl_visit_tasks_b_u2 refers directly to this composite unique index. - Parent linkage.
VISIT_IDis a foreign key toAHL_VISITS_B, anchoring each task to its visit header. - Task hierarchy.
ORIGINATING_TASK_ID(self-referencing FK),PRIMARY_VISIT_TASK_ID,COST_PARENT_ID, andSUMMARY_TASK_FLAGsupport parent/child and summary task structures. - Asset and item context.
INSTANCE_ID(FK toCSI_ITEM_INSTANCES) identifies the installed base instance;INVENTORY_ITEM_IDandITEM_ORGANIZATION_IDidentify the item and inventory organization. - Material and repair references.
MR_ID(FK toAHL_MR_HEADERS_B),MR_ROUTE_ID, andORIGINATING_MR_HEADER_IDtie the task to material requirements and routing. - Effectivity and scheduling.
UNIT_EFFECTIVITY_ID(FK toAHL_UNIT_EFFECTIVITIES_B),START_FROM_HOUR,DURATION,START_DATE_TIME, andEND_DATE_TIMEdefine when and for how long the task runs. - Commercial attributes.
ESTIMATED_PRICE,ACTUAL_PRICE,PRICE_LIST_ID, andACTUAL_COSTcapture pricing and cost. - Quantity and returns.
QUANTITY,TARGET_QTY,RET_SERVICEABLE_QTY,RET_UNSERVICEABLE_QTY, andRETURN_TO_SUPPLY_FLAGtrack returned material. - Status and classification.
STATUS_CODE,TASK_TYPE_CODE,SERVICE_TYPE_CODE,STAGE_TYPE_CODE, andDEPARTMENT_ID(FK toBOM_DEPARTMENTS) drive execution workflow. - Cross-module references.
SERVICE_REQUEST_ID(FK toCS_INCIDENTS_ALL_B) andPROJECT_TASK_ID(FK toPA_TASKS) link to Service and Projects.
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_TLonVISIT_TASK_IDto retrieve language-specific text (2.2 supports multi-language). - Cost variance reporting. Aggregate
ESTIMATED_PRICE,ACTUAL_PRICE, andACTUAL_COSTbyVISIT_ID,TASK_TYPE_CODE, orDEPARTMENT_ID. - Hierarchy traversal. Use a recursive query on
ORIGINATING_TASK_ID(or throughAHL_TASK_LINKS) to explode summary tasks into child tasks. - Work order bridge. Join to
AHL_WORKORDERSonVISIT_TASK_IDto trace execution against scheduled tasks. - Instance/billable reporting. Join
INSTANCE_IDtoCSI_ITEM_INSTANCESandINVENTORY_ITEM_IDtoMTL_SYSTEM_ITEMS_Bto 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_IDandPARENT_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_IDandMR_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, andSERVICE_REQUEST_IDrespectively.
-
12.1.1 DBA Data 12.1.1
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.2.2 DBA Data 12.2.2
-
TABLE: AHL.AHL_VISIT_TASKS_B 12.1.1
-
This table stores information about visit tasks
-
This table stores information about visit tasks
-
TABLE: AHL.AHL_VISIT_TASKS_B 12.2.2
-
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