Search Results level_procedure




Overview

ARP_UTIL_TAX is a utility package body residing in the APPS schema within Oracle E-Business Suite, valid in both the 12.1.1 and 12.2.2 releases. As its name implies, it belongs to the Receivables (AR) family of shared utilities, prefixed with the ARP convention used across Oracle Receivables database objects. The package is classified in the ETRM repository as an OTHER API, meaning it is not a public, supported business API in the sense of ARP_TAX or the Receivables transaction APIs, but rather an internal helper module that the Tax engine and its dependent programs invoke for common low-level services.

The defining characteristic of this package body is its infrastructure role rather than a business-document role. It does not create, update, or delete transactional tax data. Instead it provides diagnostic and initialization support that other Receivables tax routines call before performing real work. The dependency metadata confirms a narrow footprint: the body references only STANDARD (the Oracle-supplied PL/SQL package used for output and type support) and FND_LOG (the Oracle Application Object Library logging package). This tight dependency set is characteristic of a shared diagnostic or setup utility rather than a data-processing module.

Key Procedures and Functions

The ETRM metadata documents three callable units in this package body:

  • INITIALIZE - A setup routine that prepares the package state for use during a session or calling process. It is the entry point that downstream code invokes to ensure the package's internal context is established before other operations execute. It carries no documented parameter list in the repository.
  • IS_DEBUG_ENABLED - A Boolean-returning function that reports whether debug mode is currently active. Callers use it to determine whether to emit diagnostic output, thereby avoiding the overhead of formatting log messages when debugging is off.
  • DEBUG - A diagnostic procedure that writes debug information to the logging infrastructure. It is the counterpart to IS_DEBUG_ENABLED and is guarded by that function so that messages are recorded only when debugging has been switched on.

Together these three units form a self-contained debug and initialization facility. They illustrate the standard defensive pattern in Oracle Receivables utilities: check first, log second, and initialize before anything else.

Tables Accessed

The ETRM metadata records no direct table references for ARP_UTIL_TAX. Its only documented object dependencies are the STANDARD package and FND_LOG. This is significant: the package reads no Receivables tax configuration or transaction tables such as AR_TAX_CODES_ALL or AR_TAX_LINES. Diagnostic output is routed through the FND_LOG API, which persists messages to the FND_LOG_MESSAGES table on behalf of the caller, rather than through direct DML from this package. The absence of table references reinforces the conclusion that ARP_UTIL_TAX is a support module, not a data access layer.

Usage Notes

Although the package is not referenced by any database object according to the dependency metadata, it is documented as being referenced by thirty-eight other packages. This apparent contradiction is common in ETRM extracts and indicates that callers invoke the package dynamically or that the reference graph was captured incompletely. In practice, ARP_UTIL_TAX is invoked from other Receivables tax packages, from concurrent programs that must produce diagnostic traces during tax calculation, and from custom PL/SQL extensions that follow Oracle's own debugging conventions.

The typical invocation sequence is: a caller executes INITIALIZE to establish package state, then calls IS_DEBUG_ENABLED to test the flag, and only if it returns true calls DEBUG to emit a message. Because the package is classified as OTHER, Oracle does not guarantee its signature across patches or upgrades; custom code that depends on it should be treated as unsupported and reviewed at each release. For debugging tax issues in 12.1.1 or 12.2.2, enabling the standard FND debug profile options will cause this package's output to appear in the log facility, making it a useful first stop when tracing Receivables tax behavior.