Search Results pay_sa_upgrade




Overview

PAY_SA_UPGRADE is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite, classified under the ETRM API classification "OTHER." Its package header declares AUTHID CURRENT_USER, meaning that execution privileges are resolved against the invoking schema rather than the definer, and the package is not a public, supported business API in the conventional sense. The package is intended for use during upgrade or migration processing within the Oracle Payroll (PAY) product family, specifically to reconcile and populate standard payroll data structures from legacy or staging representations. Its single entry point, the RUN procedure, behaves as a controlled batch driver rather than an interactive API, accepting diagnostic and status outputs through the standard concurrent program parameter convention (an error buffer and a return code), which strongly indicates it is registered as a concurrent program or invoked by an upgrade driver script.

Key Procedures and Functions

The package header exposes exactly one documented procedure:

  • RUN — The sole procedure defined in the package specification. It is declared with output parameters for an error buffer and a return code, following the Oracle Application Object Library concurrent program calling convention. Its purpose is to execute the upgrade logic as a batch operation, reporting success or failure through the standard p_errbuf/p_retcode pair so that it can be scheduled and monitored as a concurrent request. No other procedures or functions are declared in the package header. The body is not part of the documented metadata, and the internal processing sequence is therefore not exposed through the specification; only the single batch entry point is guaranteed by the interface contract.

Tables Accessed

The documented APPS synonym references identify the payroll data structures the package is designed to read and write. These tables are consistent with an upgrade that must rebuild payroll run results and their associated context information:

  • FF_CONTEXTS — FastFormula context definitions; used to validate or map context identifiers when reconstructing payroll results.
  • PAY_ACTION_CONTEXTS — Context values associated with payroll actions; referenced when re-establishing the context in which a payroll action was processed.
  • PAY_ASSIGNMENT_ACTIONS — Links payroll actions to assignments; accessed to associate upgraded results with the correct assignment-level processing records.
  • PAY_ELEMENT_TYPES_F — Element type definitions; used to resolve element type identifiers during result reconstruction.
  • PAY_INPUT_VALUES_F — Element input value definitions; referenced to map and persist input values for the upgraded element entries.
  • PAY_RUN_RESULTS — The core payroll run result records; the primary target of the upgrade processing.
  • PAY_RUN_RESULT_VALUES — Detail values belonging to run results; populated or corrected as part of the same operation.

Usage Notes

PAY_SA_UPGRADE is typically invoked as a scheduled concurrent program or from an upgrade driver during a release upgrade or data migration, rather than called interactively or from forms. The presence of the standard error buffer and return code parameters makes it suitable for registration via the Concurrent Programs form and for execution with the Concurrent Manager, where its output can be reviewed in the request log. The header comment indicates a header revision dated 2004, so the package predates later releases and should be treated as legacy tooling whose behavior may vary between 12.1.1 and 12.2.2.

Because the ETRM classification is "OTHER" and the reference count is zero—no other packages depend on it—the package is not a dependency of supported application code. Customizations should not call it directly. It is intended to be run once, in a controlled upgrade window, against the database being upgraded, with a full backup available. Any re-execution outside that context risks duplicating or corrupting payroll run results, and Oracle does not document the internal body for general reuse.