Search Results ahl_visit_types_vl
Overview
Within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 releases, APPS.AHL_VISIT_TYPES_VL is a validated database view belonging to the AHL product family, Complex Maintenance Repair and Overhaul (also referred to as Enterprise Asset Management for complex assets). The view presents visit type definitions — the configurable categories that describe and classify the nature of a service or maintenance visit — in a fully translated, display-ready form. Its suffix _VL identifies it as a "view with language" variant, meaning it joins the base entity to its translation table and resolves a user-facing name through the language environment, in addition to the descriptive text stored in the translation table. This makes the view the standard, multi-lingual source for consuming visit type reference data rather than the underlying tables directly.
From a reporting and integration standpoint, AHL_VISIT_TYPES_VL functions as a read-only reference (lookup) source. It is not a transactional object: it does not record individual visits, only the visit type definitions against which visits are later planned and executed. Because it exposes the security group identifier and the standard WHO audit columns, the view is also suitable for security-scoped and audit-aware extracts. In pre-12.2.2 contexts the object already existed under the same name; the ETRM-documented 12.2.2 metadata (owner APPS, view type, valid status) reflects its continued availability in the later multitenant-capable release.
Underlying Base Objects
The ETRM metadata documents the view as being defined over three referenced objects:
- AHL_VISIT_TYPES_B (SYNONYM) — the base entity table holding the visit type identifier, code, service category, status, estimated duration, flags, security group, and the fifteen ATTRIBUTE columns.
- AHL_VISIT_TYPES_TL (SYNONYM) — the translated layer holding language-specific descriptive text keyed by VISIT_TYPE_ID and LANGUAGE.
- FND_LOOKUP_VALUES_VL (VIEW) — the application lookup view used to resolve the visit type code into a display meaning.
The view connects these through an inner join: the base table B is matched to the translation table TL on VISIT_TYPE_ID, restricted to TL.LANGUAGE = USERENV('LANG') so that only the current session's language row is returned. A second join links the base code to the lookup view FND on FND.LOOKUP_CODE = B.VISIT_TYPE_CODE with FND.LOOKUP_TYPE = 'AHL_PLANNING_VISIT_TYPE', yielding the resolved meaning. The view exposes the ROWID of the base table as ROW_ID, along with all B columns, TL.DESCRIPTION, and FND.MEANING aliased as VISIT_TYPE_NAME.
Key Columns
- ROW_ID / VISIT_TYPE_ID — the row identifier and the primary surrogate key of the visit type.
- VISIT_TYPE_CODE — the lookup code used to power the FND lookup join.
- VISIT_TYPE_NAME —
FND.MEANING, the displayed name resolved from the AHL_PLANNING_VISIT_TYPE lookup. - DESCRIPTION — translated text from AHL_VISIT_TYPES_TL.
- SERVICE_CATEGORY_CODE, STATUS_CODE, ESTIMATED_DURATION — category, activation status, and expected duration of the visit type.
- MC_ID, LINKED_VISIT_TYPE_ID, TRANSIT_TYPE_FLAG, COMPONENT_VISIT_FLAG — maintenance context association, self-referencing linkage, and transit/component indicators.
- SECURITY_GROUP_ID — the security scope, plus OBJECT_VERSION_NUMBER and the WHO audit columns (CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN).
- ATTRIBUTE_CATEGORY and ATTRIBUTE1–ATTRIBUTE15 — the standard DFF columns.
Common Use Cases and Queries
Typical scenarios include populating a lookup LOV with visit types, building extracts of active planning visit types, and joining visit transactions to their human-readable classification.
SELECT VISIT_TYPE_ID, VISIT_TYPE_CODE, VISIT_TYPE_NAME, DESCRIPTION,
SERVICE_CATEGORY_CODE, STATUS_CODE, ESTIMATED_DURATION
FROM APPS.AHL_VISIT_TYPES_VL
WHERE STATUS_CODE = 'ACTIVE';
SELECT vt.VISIT_TYPE_NAME, vt.SERVICE_CATEGORY_CODE, vt.ESTIMATED_DURATION FROM APPS.AHL_VISIT_TYPES_VL vt WHERE vt.SECURITY_GROUP_ID = :p_security_group_id ORDER BY vt.VISIT_TYPE_NAME;
Because the joins are inner joins and the language filter uses USERENV('LANG'), queries run under a language with no translation row return fewer results; reports requiring all languages should query AHL_VISIT_TYPES_TL directly.
-
View: AHL_VISIT_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_VISIT_TYPES_VL, object_name:AHL_VISIT_TYPES_VL, status:VALID, product: AHL - Complex Maintenance Repair and Overhaul , implementation_dba_data: APPS.AHL_VISIT_TYPES_VL ,
-
SYNONYM: APPS.AHL_VISIT_TYPES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_VISIT_TYPES_B, status:VALID,
-
SYNONYM: APPS.AHL_VISIT_TYPES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_VISIT_TYPES_TL, status:VALID,
-
PACKAGE BODY: APPS.AHL_VISIT_TYPE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AHL_VISIT_TYPE_PVT, status:VALID,
-
PACKAGE BODY: APPS.AHL_AVF_OPER_VSTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AHL_AVF_OPER_VSTS_PVT, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPS.AHL_VISIT_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AHL.AHL_VISIT_TYPES_VL, object_name:AHL_VISIT_TYPES_VL, status:VALID,
-
APPS.AHL_VISIT_TYPE_PVT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AHL_VISIT_TYPE_PVT
12.2.2
-
VIEW: APPS.FND_LOOKUP_VALUES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUP_VALUES_VL, object_name:FND_LOOKUP_VALUES_VL, status:VALID,
-
APPS.AHL_VISIT_TYPE_PVT dependencies on AHL_VISIT_TYPES_VL
12.2.2
-
APPS.AHL_AVF_OPER_VSTS_PVT dependencies on AHL_VISIT_TYPES_VL
12.2.2
-
APPS.AHL_VISIT_TYPE_PVT dependencies on AHL_MC_HEADERS_B
12.2.2
-
APPS.AHL_AVF_OPER_VSTS_PVT SQL Statements
12.2.2
-
APPS.AHL_VISIT_TYPE_PVT dependencies on DUAL
12.2.2
-
APPS.AHL_VISIT_TYPE_PVT dependencies on AHL_VISIT_TYPE_STAGES_B_S
12.2.2
-
APPS.AHL_VISIT_TYPE_PVT dependencies on AHL_VISIT_TYPE_STAGES_B
12.2.2
-
eTRM - AHL Tables and Views
12.2.2
description: Ahl Production Workorder Operations Information stored in this table ,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.AHL_AVF_OPER_VSTS_PVT
12.2.2
-
eTRM - AHL Tables and Views
12.2.2
description: Ahl Production Workorder Operations Information stored in this table ,