Search Results hr_payrolls




Overview

The APPS.HR_PAYROLLS package body is a core Oracle E-Business Suite database object that supports the definition, validation, and manipulation of payroll records within the Oracle HRMS (Human Resources Management System) and Oracle Payroll modules. Operating in both EBS 12.1.1 and 12.2.2 environments, this package encapsulates the business logic required to manage payroll entities, including their associated time periods, period types, and legislative rules. It serves as a centralized programmatic interface through which Oracle Payroll forms, concurrent processes, and dependent APIs interact with the underlying payroll data model. The package is classified as OTHER within the ETRM metadata and carries a VALID status, confirming that it is a compiled, active database object residing in the APPS schema. Many of its procedures support period-related calculations that determine payroll boundaries such as semi-monthly, monthly, and other recurring cycles, making it essential to accurate payroll processing and period reconciliation across multiple business groups and legislative contexts.

Key Procedures and Functions

The package exposes twelve documented procedures and functions, several of which relate to payroll period management and validation:

  • CREATE_PAYROLL_PROC_PERIODS — Creates or initializes payroll processing periods for a given payroll, establishing the time windows over which payroll runs are executed.
  • GET_PERIOD_DETAILS — Retrieves detailed information about payroll periods, including start and end dates and period type context.
  • DISPLAY_PERIOD_NAME — Returns a formatted display name for a payroll period, typically used for presentation in forms or reports.
  • ENABLE_DISPLAY_FETCH — Controls whether period display information is fetched, likely acting as a toggle for performance or UI state management.
  • DISPLAY_PERIOD_NAME_FORCED — A variant of the display procedure that forces period name retrieval regardless of prior caching or state.
  • DERIVE_PAYROLL_DATES — Calculates payroll dates based on period types and legislative rules, central to determining valid processing windows.
  • GET_WARNINGS — Retrieves accumulated warning messages generated during validation or processing.
  • CLEAR_WARNINGS — Clears the warning buffer, resetting state for subsequent operations.
  • SET_GLOBALS — Initializes package-level global variables required by other routines.
  • PREV_SEMI_MONTH — Computes the preceding semi-monthly period, supporting semi-monthly payroll cycles.
  • NEXT_SEMI_MONTH — Computes the subsequent semi-monthly period for forward-looking period determination.

Tables Accessed

The package references several core payroll and HR tables through APPS synonyms, including PAY_ALL_PAYROLLS_F (the payroll definition view), PER_TIME_PERIODS and PER_TIME_PERIODS_S (period definitions and their translated/security variants), PER_TIME_PERIOD_TYPES (period type metadata), PAY_LEGISLATION_RULES (country-specific rules governing payroll dates), and PAY_PAYROLL_ACTIONS (payroll action records). These tables supply the temporal and legislative context needed to derive valid payroll periods. The use of DBMS_SQL indicates dynamic SQL construction, likely to handle flexible period or legislative queries.

Usage Notes

HR_PAYROLLS is typically invoked from Oracle Payroll and HRMS forms during payroll definition, period setup, and validation. It is referenced by seventeen other packages, making it a foundational dependency for downstream payroll APIs. Custom code and concurrent programs that manage payroll periods or derive payroll dates should leverage this package rather than reimplementing period logic, ensuring consistency with Oracle's legislative rules and period calculations.