Search Results overlay_segments_by_gldate




Overview

APPS.AP_UTILITIES_PKG is a shared PL/SQL utility package in the Oracle E-Business Suite Payables (AP) module. It provides a centralized library of helper routines used across Payables forms, concurrent programs, and dependent APIs to perform common calculation, validation, lookup, and caching tasks that would otherwise be duplicated in every calling program. The package is classified as OTHER in the ETRM and is owned by APPS. It is referenced by 108 other packages, confirming its role as a foundational dependency within the Payables code base. The source header indicates continuous maintenance, with the most recent attribution dated 2008 and internal bug references for natural account segment caching, period name caching, asset book caching, and currency data caching.

The specific reference to ap_round_currency in the search that surfaced this package points to one of its most frequently used numeric utilities: currency-aware rounding of monetary amounts. Rounding behavior in Payables must respect the precision and minimum accountable unit defined for each currency, and this package encapsulates that logic rather than leaving it to individual callers.

Key Procedures and Functions

ETRM documents 50 procedures and functions. The principal routines include:

The package declares several cached collection types, including number_table_type, natural account segment, current period name, open period name, asset book code, and FND currency record types, used to avoid repetitive queries.

Tables Accessed

The package reads and writes data through APPS synonyms, including:

Usage Notes

AP_UTILITIES_PKG is invoked from Payables forms, concurrent programs, and other PL/SQL packages—particularly the 108 dependent packages identified in ETRM. Custom code that needs to round a monetary amount for a specific currency should call AP_ROUND_CURRENCY rather than applying its own rounding rules, so that precision and minimum accountable unit remain consistent with standard Payables behavior. Because several routines rely on package-level cached data, callers should be aware that caching persists for the duration of the session. The pragma restrict_references directive present in the source indicates restrictions on the purity of certain functions.