Search Results debug_mesg
Overview
APPS.PAY_PAYROLL_EXTRACT is a PL/SQL package belonging to the Oracle Payroll (PAY) module of Oracle E-Business Suite. The package body carries the internal identifier payextract.pkb (version 120.3, dated 2007/02/23), indicating it has been stable across the 12.1.1 and 12.2.2 releases. In the ETRM classification, the package is registered as an OTHER object owned by APPS, meaning it is not itself a public payroll API but an internal utility supporting payroll data extraction.
The package's central business purpose is to produce an XML representation of payroll results for a given payroll action. It does this by dynamically constructing a SQL query against payroll data and then converting the result set into a CLOB using the DBMS_XMLGEN facility. This XML payload is the vehicle by which payroll run output is passed to downstream consumers, such as third-party payroll providers, statutory reporting processes, or custom interfaces requiring structured payroll data.
The body declares a private package global, g_package, initialized to the literal 'pay_payroll_extract', used to prefix trace messages emitted through hr_utility.trace. A boolean global g_debug is initialized to FALSE, providing a conventional debug-gating flag within the package. The debug_mesg search term that led to this object reflects the diagnostic tracing pattern used throughout the body rather than any distinct documented procedure; the package's actual diagnostics are emitted using hr_utility.trace with the package name prefixed to each message.
Key Procedures and Functions
The ETRM metadata documents exactly one callable unit within this package body:
- GET_XMLDOC_CLOB — the sole documented function. Its purpose is to return a CLOB containing the XML document representing payroll extract data. The source excerpt shows that the function is driven by a payroll action identifier and additional selection parameters that govern which assignments and elements are included in the extract. Internally, the function builds a dynamic SQL query string, applies null-handling logic to the optional assignment set and element set inputs (substituting the literal
'NULL'when a set is not supplied), and raises a privatenoDataFoundexception if the query produces no rows. It also declares working variables including aDBMS_XMLGEN.ctxHandlecontext handle, a CLOB output variable, and storage/length counters used when materializing the CLOB.
No other procedures or functions are registered in the ETRM documentation for this package body, and the referenced-by count is zero, confirming the function is consumed by internal payroll processing rather than by other PL/SQL packages in the documented dependency graph.
Tables Accessed
The documented table references for this package are limited to the Oracle-supplied packages DBMS_LOB and DBMS_XMLGEN, accessed through APPS synonyms. Both are procedural PL/SQL packages rather than data tables: DBMS_XMLGEN supplies the context handle and result-to-XML conversion used to populate the CLOB, while DBMS_LOB is used for large-object manipulation of the returned CLOB. The underlying payroll base tables are queried through dynamically assembled SQL rather than through fixed, statically documented table references, which is why the ETRM table list captures only the packaged dependencies.
Usage Notes
Because no other documented package references PAY_PAYROLL_EXTRACT, invocation is expected from payroll concurrent programs, the payroll extraction/archiving flow, or bespoke integration code that requires an XML serialization of payroll results. In practice, the function is called with a populated payroll action identifier after the payroll run has completed, since the extract depends on the existence of payroll action results.
The package includes explicit tracing via hr_utility.trace that logs entry into the function and echoes each incoming parameter, including the resolved assignment and element set identifiers. This tracing, together with the g_debug flag, makes the object conducive to diagnostic investigation when payroll extracts return empty or malformed XML. The private noDataFound exception indicates that callers should be prepared to handle the no-rows condition for a given payroll action. As with any APPS-owned internal package, customizations should avoid modifying the shipped body; extensions should wrap or invoke the documented function rather than editing it directly, and the source header's noship designation should be preserved to avoid conflicts during patching.
-
PACKAGE BODY: APPS.PAY_PAYROLL_EXTRACT
12.2.2
-
PACKAGE: APPS.PAY_PAYROLL_EXTRACT
12.1.1
-
PACKAGE: APPS.PAY_PAYROLL_EXTRACT
12.2.2
-
PACKAGE BODY: APPS.PSA_UTILS
12.1.1
-
PACKAGE BODY: APPS.PAY_PAYROLL_EXTRACT
12.1.1
-
PACKAGE: APPS.PSA_UTILS
12.1.1
-
PACKAGE: APPS.FV_UTILITY
12.1.1
-
PACKAGE: APPS.FV_UTILITY
12.2.2
-
PACKAGE: APPS.PSA_UTILS
12.2.2
-
PACKAGE BODY: APPS.FV_UTILITY
12.1.1
-
PACKAGE BODY: APPS.FV_UTILITY
12.2.2
-
APPS.PAY_PAYROLL_EXTRACT dependencies on HR_UTILITY
12.2.2
-
APPS.PAY_PAYROLL_EXTRACT dependencies on HR_UTILITY
12.1.1
-
APPS.PAY_PAYROLL_EXTRACT dependencies on DBMS_LOB
12.2.2
-
APPS.PAY_PAYROLL_EXTRACT dependencies on DBMS_LOB
12.1.1
-
PACKAGE BODY: APPS.PSA_UTILS
12.2.2
-
APPS.PSA_UTILS dependencies on FND_LOG
12.1.1