Search Results ref_cursor
Overview
PAY_SOE_UTIL is a utility package owned by the APPS schema in Oracle E-Business Suite, classified as a utility (UTIL) API within the Oracle Payroll and Statement of Earnings (SOE) infrastructure. The package addresses a recurring architectural challenge in EBS: the presentation layer, particularly Oracle Forms and the Statement of Earnings report engine, requires dynamically constructed result sets that cannot be expressed as static cursors. PAY_SOE_UTIL provides the plumbing to build and manipulate SQL statements at runtime, store intermediate state, resolve key flexfield and bank account values, and retrieve configuration settings relevant to SOE processing.
A central element of the package is the public type declaration ref_cursor IS REF CURSOR. Functions within the package, notably CONVERTCURSOR, return this type, enabling calling programs to open and consume dynamically assembled queries. This pattern is characteristic of SOE-related code, where earnings and deduction lines are assembled conditionally based on legislation, assignment, and configuration data.
Key Procedures and Functions
- SETVALUE — Accepts a name/value pair together with positional indicators (firstCol, lastCol) to populate an internal buffer used in constructing SQL fragments. It supports incremental assembly of statements.
- CLEAR — Resets the internal state maintained by the package, ensuring that a prior SQL construction does not leak into a subsequent invocation.
- GENCURSOR — Returns the assembled SQL statement as a LONG value, allowing the caller to inspect or pass the generated text onward.
- CONVERTCURSOR — Takes a SQL string (LONG) and returns a REF CURSOR, executing the dynamic query and handing the result set back to the caller.
- GETIDFLEXVALUE — Resolves a descriptive value for a given key flexfield segment, based on the flexfield code, flexfield number, application column name, and the ID value supplied.
- GETBANKDETAILS — Returns formatted bank account information (for example, masked account segments) for a given legislation code, external account ID, segment type, and mask.
- GETCONFIG — Retrieves a configuration value keyed by configuration type, used to drive SOE behavior.
The package spec also contains a commented-out legacy overload of SETVALUE, reflecting historical evolution of the signature.
Tables Accessed
- FND_FLEX_VALIDATION_TABLES and FND_ID_FLEX_SEGMENTS — consulted by GETIDFLEXVALUE to map key flexfield structure and validation information to display values.
- HR_ORGANIZATION_INFORMATION — referenced for organization-level attributes, typically bank or legislative details associated with GETBANKDETAILS.
- DUAL — used for scalar resolution and expression evaluation.
- PLITBLM — the PL/SQL internal table helper, used in the dynamic SQL construction and buffer management performed by SETVALUE and related routines.
Usage Notes
PAY_SOE_UTIL is referenced by fourteen other packages, indicating it functions as shared infrastructure rather than an entry-point API. Typical invocation occurs from SOE report generation logic and from Oracle Forms-based payroll screens where dynamic LOVs or display values must be built at runtime. Because CONVERTCURSOR returns a REF CURSOR, callers are responsible for fetching, closing, and managing the cursor lifecycle; failure to close results can leak cursors in long-running concurrent requests. The AUTHID CURRENT_USER declaration means the package executes with the privileges of the calling schema, which is significant when it is invoked from custom code that does not possess APPS-level access. The GETCONFIG function implies that behavior is externally tunable, so implementations should be validated against the current configuration before relying on default output formats. Given its age (last header revision in 2003) and utility classification, the package is stable but should not be treated as a formally supported public API for new development.
-
PACKAGE: APPS.PAY_SOE_UTIL
12.1.1
-
PACKAGE: APPS.CSP_REPAIR_ORDER_PKG
12.2.2
-
PACKAGE: APPS.PAY_SOE_UTIL
12.2.2
-
PACKAGE: APPS.PQH_PROCESS_ACADEMIC_RANK
12.1.1
-
PACKAGE: APPS.PQH_PROCESS_ACADEMIC_RANK
12.2.2
-
PACKAGE: APPS.PQH_PROCESS_TENURE_STATUS
12.1.1
-
PACKAGE: APPS.PQH_PROCESS_EMP_REVIEW
12.1.1
-
PACKAGE: APPS.PQH_PROCESS_EMP_REVIEW
12.2.2
-
PACKAGE: APPS.PQH_PROCESS_TENURE_STATUS
12.2.2
-
PACKAGE: APPS.CZ_PB_SYNC
12.2.2
-
PACKAGE: APPS.PQP_SS_VEHICLE_TRANSACTIONS
12.2.2
-
PACKAGE BODY: APPS.CZ_PB_SYNC_UTIL
12.1.1
-
PACKAGE BODY: APPS.CZ_PB_SYNC_UTIL
12.2.2
-
PACKAGE: APPS.CZ_PB_SYNC
12.1.1
-
PACKAGE: APPS.PQP_SS_VEHICLE_TRANSACTIONS
12.1.1
-
PACKAGE: APPS.ZPB_TRANSFORM_IO_TABLES
12.1.1
-
PACKAGE: APPS.PER_RESPOWNER_UTIL_SS
12.2.2
-
PACKAGE: APPS.PER_RESPOWNER_UTIL_SS
12.1.1
-
PACKAGE: APPS.PQP_SS_VEHICLE_MILEAGE_CLAIMS
12.2.2
-
PACKAGE BODY: APPS.OKL_TRANS_ACCT_OPT_PVT
12.2.2
-
PACKAGE BODY: APPS.PAY_SOE_UTIL
12.1.1
-
PACKAGE: APPS.PQP_SS_VEHICLE_MILEAGE_CLAIMS
12.1.1
-
PACKAGE BODY: APPS.OKL_TRANS_ACCT_OPT_PVT
12.1.1
-
PACKAGE BODY: APPS.CSP_REPAIR_ORDER_PKG
12.2.2
-
PACKAGE: APPS.ZPB_SOLVE
12.1.1
-
PACKAGE BODY: APPS.PAY_SOE_UTIL
12.2.2
-
APPS.PQH_PROCESS_EMP_REVIEW SQL Statements
12.2.2
-
APPS.PQH_PROCESS_EMP_REVIEW SQL Statements
12.1.1
-
PACKAGE BODY: APPS.CZ_PB_SYNC
12.2.2
-
PACKAGE: APPS.AME_MULTI_TENANCY_PKG
12.2.2
-
PACKAGE BODY: APPS.CZ_PB_SYNC
12.1.1
-
PACKAGE: APPS.AME_MULTI_TENANCY_PKG
12.1.1
-
PACKAGE BODY: APPS.JA_CN_PS_CYB_EXPORT_PKG
12.2.2
-
PACKAGE: APPS.CZ_PUBL_SYNC_CRASH
12.2.2
-
PACKAGE BODY: APPS.OKL_INTEREST_MAINT_PVT
12.2.2
-
PACKAGE: APPS.CZ_PUBL_SYNC_CRASH
12.1.1
-
PACKAGE BODY: APPS.OKL_INTEREST_MAINT_PVT
12.1.1
-
PACKAGE BODY: APPS.PQH_PROCESS_ACADEMIC_RANK
12.1.1
-
PACKAGE BODY: APPS.OKL_SYSTEM_ACCT_OPT_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_SYSTEM_ACCT_OPT_PVT
12.2.2
-
PACKAGE BODY: APPS.PQH_PROCESS_ACADEMIC_RANK
12.2.2
-
PACKAGE BODY: APPS.BSC_DEFAULT_KEY_ITEM_PUB
12.1.1
-
PACKAGE BODY: APPS.BEN_CWB_CHANGE_ACCESS
12.2.2
-
PACKAGE BODY: APPS.BEN_CWB_CHANGE_ACCESS
12.1.1
-
PACKAGE BODY: APPS.PQH_PROCESS_EMP_REVIEW
12.2.2
-
PACKAGE BODY: APPS.PQH_PROCESS_EMP_REVIEW
12.1.1
-
PACKAGE BODY: APPS.PQH_PROCESS_TENURE_STATUS
12.2.2
-
PACKAGE BODY: APPS.PQH_PROCESS_TENURE_STATUS
12.1.1
-
APPS.BEN_CWB_CHANGE_ACCESS SQL Statements
12.2.2
-
PACKAGE BODY: APPS.ENI_PROD_VALUESET
12.1.1