Search Results ahl_ue_relationships_pkg




Overview

The package body APPS.AHL_UE_RELATIONSHIPS_PKG belongs to the Oracle Enterprise Asset Management (eAM) and Enterprise Tracking / Asset Lifecycle application family within Oracle E-Business Suite Release 12.1.1 and 12.2.2. The AHL prefix designates the Oracle Asset Lifecycle (formerly Enterprise Asset Management and Maintenance) schema, and the UE segment refers to the underlying "User Extension" (descriptive and attribute relationship) framework used to store supplementary or customer-defined data associated with an entity. This package encapsulates the DML logic governing the AHL_UE_RELATIONSHIPS entity, which records the relationships established between user-defined extension records and their associated parent assets, items, or work objects.

Functionally, the package serves as the maintenance layer for relationship rows that link user extensions to their owning business entities. By centralizing INSERT, UPDATE, and DELETE operations in a single PL/SQL package body, Oracle ensures consistent handling of the surrogate keys, WHO-column audit fields, and concurrent processing semantics required by the eAM data model. The API is classified as OTHER, indicating it is not a public, committed interface but an internal maintenance routine invoked primarily by the application's own form and program logic.

Key Procedures and Functions

The documented API exposes three procedures that map directly to the standard DML verbs applied to the relationship entity:

  • INSERT_ROW — Creates a new relationship record in AHL_UE_RELATIONSHIPS. It is responsible for populating the primary key (drawn from the sequence AHL_UE_RELATIONSHIPS_S) and the standard WHO audit columns that Oracle EBS uses to track creation user, date, and originating login.
  • UPDATE_ROW — Modifies an existing relationship record. This procedure applies changes to the mutable attributes of a relationship while preserving the surrogate identifier, and it updates the WHO "last updated by" audit columns accordingly.
  • DELETE_ROW — Removes a relationship record. Deletion is scoped to the identified relationship row, ensuring that orphaned or obsolete user-extension links do not remain in the base table after the owning extension is reconfigured.

No parameter lists are documented in the ETRM metadata, so signatures should be confirmed by inspecting the package specification directly in the target environment before calling these procedures from custom code.

Tables Accessed

The package operates on two documented objects, both accessed through APPS synonyms:

  • AHL_UE_RELATIONSHIPS — The base table storing the actual relationship rows inserted, updated, and deleted by the three procedures. This is the primary target of all DML performed by the package.
  • AHL_UE_RELATIONSHIPS_S — The Oracle sequence supplying unique primary key values for new rows created by INSERT_ROW. Reliance on the sequence ensures that concurrent sessions generate non-colliding identifiers without serializing inserts.

Additionally, the package depends on the PL/SQL STANDARD package, which is the implicit built-in package available to all PL/SQL units in the database.

Usage Notes

Because AHL_UE_RELATIONSHIPS_PKG is classified as OTHER and is not referenced by any other database object, it is best understood as an internal maintenance API rather than a reusable integration point. It is typically invoked by the Oracle eAM forms and concurrent programs that manage user-extension relationships, rather than being called directly by external interfaces or third-party applications.

Developers extending the AHL data model should prefer the supported public APIs where available and treat this package as a lower-level utility. Any custom invocation must observe the EBS WHO-column conventions, commit or roll back within the caller's transaction boundary, and respect the same concurrency and validation rules the standard eAM forms enforce. The AHL_UE_RELATIONSHIPS entity is transactional data, so direct DML outside this package risks bypassing audit population and sequence assignment, which can corrupt downstream relationship integrity.