Search Results pay_backpay_rules




Overview

The PAY_BACKPAY_RULES table is a core configuration table within the Oracle E-Business Suite Payroll module (PAY). It defines the specific payroll balances that must be recalculated when a RetroPay process is executed. RetroPay, or retrospective pay, is the mechanism for recalculating an employee's earnings and deductions when a payroll is rerun for a past period due to corrections or late entries. This table acts as a rule engine, linking a set of RetroPay instructions (a Backpay Set) to the precise defined balances and input values that require recalculation, ensuring data integrity and accurate financial adjustments.

Key Information Stored

The table's structure is defined by a composite primary key, which uniquely identifies each recalculation rule. The critical columns are:

  • BACKPAY_SET_ID: A foreign key to PAY_BACKPAY_SETS. This identifies the specific RetroPay event or context for which the rules apply.
  • DEFINED_BALANCE_ID: A foreign key to PAY_DEFINED_BALANCES. This specifies the exact payroll balance (e.g., Gross Earnings, Tax Withheld) that needs to be recalculated.
  • INPUT_VALUE_ID: A foreign key to PAY_INPUT_VALUES_F. This pinpoints the specific element input value (e.g., Hours, Rate) that, when changed, triggers the need for the balance recalculation defined by the rule.

The combination of these three IDs forms the primary key (PAY_BACKPAY_RULES_PK), establishing a unique rule that a particular balance must be recalculated for a specific RetroPay set when a specific input value is adjusted.

Common Use Cases and Queries

This table is primarily accessed by the RetroPay engine itself during payroll reprocessing. Administrators and developers may query it to audit or troubleshoot RetroPay configurations. A common reporting use case is to list all balance recalculation rules associated with a particular RetroPay set to understand the scope of a backpay calculation.

Sample Query: To retrieve all defined balances and corresponding input values configured for a specific Backpay Set named 'CORRECTION_Q1'.

SELECT pbs.backpay_set_name,
       pdb.defined_balance_name,
       piv.name input_value_name
  FROM pay_backpay_rules pbr,
       pay_backpay_sets pbs,
       pay_defined_balances pdb,
       pay_input_values_f piv
 WHERE pbr.backpay_set_id = pbs.backpay_set_id
   AND pbr.defined_balance_id = pdb.defined_balance_id
   AND pbr.input_value_id = piv.input_value_id
   AND SYSDATE BETWEEN piv.effective_start_date AND piv.effective_end_date
   AND pbs.backpay_set_name = 'CORRECTION_Q1';

Related Objects

PAY_BACKPAY_RULES is centrally linked to other key payroll tables via foreign key relationships, as documented in the ETRM:

  • PAY_BACKPAY_SETS: Via PAY_BACKPAY_RULES.BACKPAY_SET_ID → PAY_BACKPAY_SETS. This is the parent table that defines the RetroPay event or context.
  • PAY_DEFINED_BALANCES: Via PAY_BACKPAY_RULES.DEFINED_BALANCE_ID → PAY_DEFINED_BALANCES. This table stores the definition of the balance to be recalculated.
  • PAY_INPUT_VALUES_F: Although not listed in the provided foreign key metadata, the INPUT_VALUE_ID column is a foreign key to PAY_INPUT_VALUES_F, which holds the details of the element input that triggers the recalculation.