Results for “ahl_doc_revisions_v”

22 results




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

Overview

In Oracle E-Business Suite 12.1.1 and 12.2.2, AHL_DOC_REVISIONS_V is a reporting view owned by the APPS schema and registered under the AHL (Complex Maintenance Repair and Overhaul) product family. Its documented description is "Documents Revision View," indicating that it exposes revision-level metadata for controlled documents managed within the AHL document framework. The view presents each document revision alongside denormalized, language-aware lookup descriptions and the party identity of the approving person, sparing report developers and integration consumers the effort of manually joining the underlying revision entity to lookups and party tables.

The object is marked VALID and is fully documented in ETRM for the 12.2.2 reference environment. Because APPS-owned views are conventionally granted to the APPS-tier responsibilities and often exposed through the APPS synonym interface, AHL_DOC_REVISIONS_V is typically consumed by concurrent programs, Oracle Reports/BI Publisher layouts, OBIEE or Discoverer extracts, and custom PL/SQL that queries it under the APPS schema. A distinguishing behavior is that the view computes an effective revision status at query time: any revision whose OBSOLETE_DATE has passed is reported as OBSOLETE regardless of the stored status code, so consumers always see a status consistent with the current date.

Underlying Base Objects

The documented 12.2.2 dependency list identifies the following referenced objects:

All lookup joins are outer joins keyed on lookup type AHL_REVISION_STATUS_TYPE, AHL_REVISION_TYPE, and AHL_MEDIA_TYPE respectively, ensuring revisions still appear even when a code is not yet defined in the lookup set. The party join is likewise outer, so revisions without an approver are not filtered out.

Key Columns

Common Use Cases and Queries

Typical uses include document revision status dashboards, audit extracts of approver history, and interfaces that publish revision metadata to external archives or document-management systems. A basic listing of active revisions with their meanings is shown below.

  • Active revisions by document: SELECT DOCUMENT_ID, REVISION_NO, REVISION_STATUS_CODE, MEANING, EFFECTIVE_DATE FROM AHL_DOC_REVISIONS_V WHERE REVISION_STATUS_CODE = 'RELEASED' ORDER BY DOCUMENT_ID, REVISION_NO;
  • Revisions audited by approver: SELECT DOCUMENT_ID, REVISION_NO, PARTY_NUMBER, PARTY_NAME, APPROVED_DATE FROM AHL_DOC_REVISIONS_V WHERE APPROVED_DATE >= :p_from_date;
  • Expiring or expiring-now revisions: SELECT DOCUMENT_ID, REVISION_NO, OBSOLETE_DATE FROM AHL_DOC_REVISIONS_V WHERE OBSOLETE_DATE BETWEEN SYSDATE AND SYSDATE + 30;

Because status is evaluated at runtime, filters on REVISION_STATUS_CODE return OBSOLETE for expired revisions even if the underlying AHL_DOC_REVISIONS_VL row still stores the original code. Queries should therefore be written against the view's calculated column, not the base table, whenever current status is required.