Search Results hr_monitor_balance_retrieval




Overview

APPS.PAY_MONITOR_BALANCE_RETRIEVAL is a diagnostic utility package in the Oracle EBS Payroll (PAY) module, designed to surface the internal reasoning behind payroll balance retrieval. Payroll balances are derived through a complex chain of balance feeds, route definitions, and predefined balance processing. When a balance value is incorrect or unexpectedly missing, the cause is often hidden within that derivation chain, and it is difficult for a functional user to determine which balance inputs contributed to a given result. This package addresses that problem by recording diagnostic data each time the balance retrieval route is exercised.

The core purpose, as documented in the package header, is to output key data to a table so that users can interrogate which balances are being derived from the route. Monitoring is gated by the HR_MONITOR_BALANCE_RETRIEVAL profile option, ensuring that the diagnostic overhead is incurred only when a system administrator explicitly enables it. The package header carries the version marker pymnblrt.pkb 120.0, consistent with the 12.1.1 and 12.2.2 file generations.

Key Procedures and Functions

The package exposes six documented program units. Five are named in the ETRM metadata, supplemented by the procedure visible in the source excerpt:

  • MONITOR_BALANCE_RETRIEVAL — The primary entry point. It reads the HR_MONITOR_BALANCE_RETRIEVAL profile, and when that profile evaluates to Y, captures the balance retrieval event and delegates the write to OUTPUT_BAL_RETRIEVAL_DATA. It accepts a defined balance identifier, an assignment action identifier, and a reason code describing the retrieval context.
  • OUTPUT_BAL_RETRIEVAL_DATA — Performs the physical insert of monitoring rows into the tracking table. It is called by MONITOR_BALANCE_RETRIEVAL after the monitoring decision has been made.
  • GET_SESSION_VAR — Retrieves the value of a named session variable. This is the object matched by the search term get_session_var. It is used to resolve the MONITOR session variable into a module name.
  • SET_SESSION_VAR — Assigns or updates a named session variable, allowing callers to control the descriptive label recorded against subsequent monitoring rows.
  • CLEAR_SESSION_VARS — Removes session variables that were established for monitoring, so that diagnostic state does not leak between processing cycles.
  • MONITOR_BALANCE_RETRIEVAL (public interface) — The externally callable wrapper that combines the profile check, session variable resolution, and output call.

Tables Accessed

One table is documented as accessed via an APPS synonym:

  • PAY_MONITOR_BALANCE_RETRIEVALS — The sole persistence target. Rows are inserted by OUTPUT_BAL_RETRIEVAL_DATA and contain the monitoring evidence for each intercepted retrieval. The MODULE_NAME column, whose datatype anchors the l_module_name variable in the source, records either the value of the MONITOR session variable or the default label Monitoring all calls to route when that variable is null.

Usage Notes

The package is a diagnostic instrument, not a functional payroll component, and is normally enabled temporarily during investigation. The controlling profile HR_MONITOR_BALANCE_RETRIEVAL must be set to Y at the appropriate level before any row is written; otherwise MONITOR_BALANCE_RETRIEVAL returns without producing output.

Because it intercepts balance retrieval rather than being driven from a form, the package is typically invoked indirectly whenever payroll processing exercises the balance route — during concurrent payroll runs, QuickPay, or balance adjustment processes. The MONITOR session variable enables selective labelling: a caller can set it through SET_SESSION_VAR to identify a specific test, and clear it with CLEAR_SESSION_VARS afterwards. The package is referenced by one other package in the APPS schema, reflecting its role as a shared instrumentation point.