Search Results ahl_applicable_mrs_n3




Overview

AHL.AHL_APPLICABLE_MRS is a global temporary table (GTT) owned by the AHL schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It is registered as FND Design Data under the same name and holds a status of VALID. The table is used by Oracle Complex Maintenance, Repair, and Overhaul (CMRO) and Enterprise Asset Management flows to stage the set of Maintenance Requirements (MRs) that are applicable to a given item instance during a planning or scheduling run. Because it is a GTT with a SYS$TRANSACTION data duration, rows are visible only to the session that inserted them and are purged at transaction commit or rollback. This design makes the table transient scratch space rather than a persistent repository.

The heuristic Data Vault classification mined from the foreign-key structure is standalone. In modeling terms, this object does not behave as a hub or link in a persistent sense; it is better treated as a transient staging or work table rather than a durable satellite. Its two declared foreign keys (MR_HEADER_IDAHL_MR_HEADERS_B and MR_EFFECTIVITY_IDAHL_MR_EFFECTIVITIES) are informational references to persistent master data, but the row lifetime is bounded by the session transaction.

Key Information Stored

The table has 17 documented columns. The most significant are:

No surrogate single-column primary key is documented; the de facto business key is the combination of CSI_ITEM_INSTANCE_ID and MR_HEADER_ID, evidenced by index AHL_APPLICABLE_MRS_N1. Three non-unique indexes (N1, N2, N3) support filtering and joins.

Common Use Cases and Queries

Typical usage falls into three categories: populating the GTT during MR applicability processing, reporting on repetitive and descendant MR hierarchies, and debugging sequence or effectivity issues. A representative query joining back to the persistent headers is:

SELECT a.CSI_ITEM_INSTANCE_ID,
       a.MR_HEADER_ID,
       a.DESCENDENT_COUNT,
       a.REPETITIVE_FLAG,
       a.PM_SCHEDULE_EXISTS
FROM   AHL.AHL_APPLICABLE_MRS a
WHERE  a.MR_HEADER_ID = :mr_header_id;

Because the table is GTT with SYS$TRANSACTION duration, any query must be run in the same session and transaction that populated the rows. Reporting against historical applicability must instead target the persistent MR and effectivity tables.

Related Objects

  • AHL.AHL_MR_HEADERS_B — joined on MR_HEADER_ID; supplies persistent header attributes.
  • AHL.AHL_MR_EFFECTIVITIES — joined on MR_EFFECTIVITY_ID; supplies effectivity ranges.
  • APPS.AHL_APPLICABLE_MRS — the APPS synonym commonly referenced by concurrent programs and PL/SQL packages.
  • CSI_ITEM_INSTANCE — referenced through CSI_ITEM_INSTANCE_ID for asset context.
  • AHL.AHL_MR_HEADERS_TL — translation table typically consulted alongside AHL_MR_HEADERS_B for display names.
  • PM_SCHEDULES related objects — surfaced through PM_SCHEDULE_EXISTS and PROGRAM_MR_HEADER_ID.