Results for “ahl_process_code”

22 results




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

Overview

VIEW: APPS.AHL_OPERATIONS_V is the Oracle E-Business Suite operational view that presents operation records belonging to the Oracle Enterprise Asset Management (eAM) / Advanced Planning and Scheduling operations model. In Release 12.1.1 and 12.2.2 the view is owned by the APPS schema and is defined over the current-edition base object AHL_OPERATIONS_VL together with several FND lookup views. Its principal reporting function is to expose operation definitions with their descriptive flexfield context and attributes, their workflow lifecycle flags, and, critically, human-readable meanings decoded from lookup codes rather than raw coded values.

The object is especially relevant to users searching for ahl_revision_status, because REVISION_STATUS_CODE is decoded in the view through the lookup type AHL_REVISION_STATUS. This enables revision pending, approved, and similar states to be reported directly without a second join to FND_LOOKUP_VALUES. Because the view joins several lookup views, it is most appropriate for ad hoc reporting, concurrent program queries, and OAF or XML Publisher data sources rather than for high-volume transactional processing.

Underlying Base Objects

The ETRM documentation records three referenced base objects: AHL_OPERATIONS_VL (VIEW), FND_LOOKUP_VALUES_VL (VIEW), and QA_CHAR_VALUE_LOOKUPS_V (VIEW). The primary join is to AHL_OPERATIONS_VL, aliased O, which supplies every operational column from OPERATION_ID through ENIGMA_OP_ID. The remaining objects are decoded through FND_LOOKUP_VALUES_VL, referenced multiple times with the aliases ST, REVST, OPTYPE, PROCESS, and MODEL, each constrained on a distinct LOOKUP_TYPE. QA_CHAR_VALUE_LOOKUPS_V, aliased QAL, supplies the QA inspection type description and is joined on SHORT_CODE with the restriction NVL(QAL.CHAR_ID,87)=87.

The joins to OPTYPE, PROCESS, and MODEL are outer joins, indicated by the (+) syntax, so operations lacking an operation type, process code, or model code are still returned. The joins to ST and REVST are inner joins and are mandatory filters: an operation is only returned when its STANDARD_OPERATION_FLAG exists in lookup type AHL_YES_NO_TYPE and its REVISION_STATUS_CODE exists in AHL_REVISION_STATUS. This dependency is the reason records with an unrecognised or uncoded revision status will not appear in the view.

Key Columns

Common Use Cases and Queries

The view is typically queried to obtain a consolidated list of operations with their statuses and flexfield values. A representative query is:

SELECT OPERATION_ID, REVISION_NUMBER, REVISION_STATUS_CODE, MEANING, CONCATENATED_SEGMENTS, DESCRIPTION FROM APPS.AHL_OPERATIONS_V WHERE REVISION_STATUS_CODE = 'PENDING' ORDER BY OPERATION_ID;

Because the view hides the lookup join, the second MEANING column (aliased REVST) supplies the decoded revision status text, which is useful for reporting without additional lookup maintenance. A second common pattern restricts by enabled and effective-dated operations:

SELECT OPERATION_ID, SEGMENT1, OPERATION_TYPE_CODE, MEANING, START_DATE_ACTIVE, END_DATE_ACTIVE FROM APPS.AHL_OPERATIONS_V WHERE ENABLED_FLAG = 'Y' AND SYSDATE BETWEEN START_DATE_ACTIVE AND NVL(END_DATE_ACTIVE, SYSDATE + 1);

When presenting columns such as MEANING or DESCRIPTION, alias them explicitly (for example, REVISION_STATUS_MEANING) to avoid ambiguity among the several decoded columns. Note also that the mandatory inner joins to AHL_REVISION_STATUS and AHL_YES_NO_TYPE mean operations with unresolved codes are silently excluded; where completeness is essential, query AHL_OPERATIONS_VL directly and perform outer joins to FND_LOOKUP_VALUES manually. Under edition-based redefinition in 12.2.2, the view resolves to the current edition of AHL_OPERATIONS_VL, so query behaviour remains consistent with the active edition configuration.