Search Results arp_debug




Overview

ARP_DEBUG is a utility package in the Oracle E-Business Suite Receivables (AR) module, owned by the APPS schema and shipped in a VALID state in both release 12.1.1 and 12.2.2. Its business function is to provide controlled, low-level diagnostic output for Receivables PL/SQL code paths without contaminating production data or requiring changes to application logic. Rather than writing rows into application tables, ARP_DEBUG routes debug messages to the file system through UTL_FILE or to the FND logging framework, gated by profile options read at runtime. The package body is therefore an infrastructure component: it exists so that other Receivables packages can emit trace information during development, upgrade validation, and production troubleshooting, and then be silenced by configuration alone. In the ETRM documentation model it is classified as OTHER rather than as a public API, reflecting that it is an internal support utility rather than a supported integration surface.

Key Procedures and Functions

Three documented programs constitute the functional surface of the package body:

  • DEBUG — The central tracing entry point. Callers invoke it to emit diagnostic messages from within Receivables processing logic. It determines whether debugging is currently active, applies the appropriate output channel, and suppresses output when tracing is disabled, so that callers can embed debug calls unconditionally in their code.
  • ENABLE_FILE_DEBUG — Activates file-based debugging. This turns on the UTL_FILE output path so that subsequent DEBUG calls are written to the debug file destination defined by the package and accessible through the database server's directory configuration.
  • DISABLE_FILE_DEBUG — The counterpart operation, deactivating file-based debugging and returning the package to its default (silent) behavior. This allows tracing to be scoped narrowly to a single investigative session and switched off immediately afterwards.

The ETRM metadata does not publish parameter signatures for these programs; parameter lists should be confirmed against the deployed package specification before direct invocation.

Tables Accessed

ARP_DEBUG references AR_SYSTEM_PARAMETERS through the APPS synonym layer. This indicates that decisions about whether and how to emit debug output are governed at least in part by Receivables system parameter configuration rather than solely by profile options, allowing tracing behavior to be aligned with the operational setup of a given Receivables installation. The second documented dependency, UTL_FILE, is the Oracle-supplied PL/SQL file I/O package rather than an application table; it is the mechanism by which DEBUG output reaches the file system. Additional dependencies recorded for the package body include FND_LOG for the Oracle Applications logging framework, FND_PROFILE for profile option lookups, and APP_EXCEPTION for internal error handling. The ETRM dependency record notes that ARP_DEBUG is not referenced by any database object, confirming it sits at the top of the call graph and is never triggered implicitly by database-level constructs.

Usage Notes

ARP_DEBUG is not intended to be executed by end users. It is invoked indirectly: Receivables forms, concurrent programs, and other PL/SQL packages call DEBUG from within their own processing logic, and the output is enabled or disabled by DBAs and developers as a troubleshooting measure. The documented metadata states that the package is referenced by 24 other packages, so its behavior has broad reach across the Receivables code base, and changes to debug configuration may affect output from many modules simultaneously. Typical scenarios include diagnosing invoice validation or accounting failures, tracing concurrent request behavior during period-close issues, and validating post-upgrade code paths. Before enabling file debug, the UTL_FILE destination must be correctly configured at the database level and writable by the APPS schema, and tracing should be disabled immediately after the investigation to avoid unbounded file growth and I/O overhead. Because ARP_DEBUG is classified as OTHER and carries Oracle's proprietary and confidential marking, customizations should not extend or replace it; instead, Release 12 debugging should preferentially use FND_LOG-based mechanisms, to which this package already delegates.