Search Results is_instance_warranty_available
Overview
APPS.AHL_WARRANTY_GRP is a public PL/SQL group package within the Oracle E-Business Suite warranty management module (AHL). The package is defined with AUTHID CURRENT_USER, meaning its procedures execute under the privileges of the calling schema rather than the defining schema, which is a standard convention for public API group packages intended to be shared across products. The header comment explicitly states that the package "provides the APIs which may be invoked by other products such as Depot Repair." This establishes its role as a cross-product integration point for warranty validation logic rather than a self-contained application module.
The package is classified as an API group (GRP) package in the ETRM 12.2.2 documentation, indicating that it exists to expose reusable warranty-checking functionality to external callers. This is consistent with the broader AHL schema design, where warranty, service, and repair flows span multiple products and require centralized, callable logic to determine coverage eligibility.
Key Procedures and Functions
The documented package defines a single public function, IS_INSTANCE_WARRANTY_AVAILABLE. According to the source comments, this function checks whether a given instance has at least one 'ACTIVE' contract available, returning 'Y' or 'N' as a VARCHAR2 result.
- IS_INSTANCE_WARRANTY_AVAILABLE — Accepts a warranty instance identifier as input and evaluates the associated contract records to determine whether any active contract exists for that instance. The function is the sole documented entry point in the package, providing a lightweight boolean-style warranty availability check for external consumers.
The warranty instance identifier parameter is marked as required in the source comments, reflecting the function's dependency on a specific instance context. No additional procedures or functions are documented for this package.
Tables Accessed
The ETRM metadata for APPS.AHL_WARRANTY_GRP does not document any table references made through APPS synonyms. In practice, a warranty availability check of this nature typically queries contract and warranty instance tables within the AHL and OKC (Contracts) schemas to identify active coverage records. However, because the documented metadata is silent on the specific tables accessed, no table-level assertions should be relied upon for integration or performance planning without independent verification against the deployed package body.
Usage Notes
The package is intended for invocation by other Oracle EBS products, most notably Depot Repair. In this context, it is typically called during repair intake, service order creation, or warranty validation workflows to determine whether a customer's item is covered by an active contract before determining billing treatment.
Because the function is a group package API with AUTHID CURRENT_USER, custom code and extensions may invoke it directly, provided the calling schema holds the necessary grants on the package and the underlying objects. Note that the ETRM metadata records zero referencing packages, meaning no other shipped package depends on it within the documented dependency graph.
When troubleshooting scenarios such as a service request where warranty coverage appears absent, this function is the appropriate programmatic gateway to verify whether an active contract exists for the instance. Callers should treat the 'Y'/'N' return value as the authoritative indicator of warranty availability for the supplied instance.