Search Results pay_latest_balances




Overview

The PAY_LATEST_BALANCES table is a core data object within the Oracle E-Business Suite Payroll module (PAY). It serves as a high-performance repository for the most current balance values for an employee, either at the person or assignment level. Its primary role is to provide rapid access to the latest calculated payroll results, such as year-to-date totals, without requiring a computationally expensive re-aggregation of historical payroll run results. This table is fundamental to payroll reporting, real-time balance inquiries, and the calculation of subsequent payroll runs that may depend on prior period accumulations.

Key Information Stored

While the provided ETRM metadata does not list specific columns beyond the primary and foreign keys, the table's description and standard Oracle Payroll architecture define its critical data elements. The table stores a unique record identified by LATEST_BALANCE_ID. Each record links to a specific balance definition via the DEFINED_BALANCE_ID foreign key, which references the PAY_DEFINED_BALANCES table. Crucially, it holds the latest calculated VALUE for that particular balance. It also contains key identifiers to associate the balance value with the correct person (PERSON_ID) or assignment (ASSIGNMENT_ID), and context such as BUSINESS_GROUP_ID and potentially a time dimension like TAX_UNIT_ID or JURISDICTION_CODE to support legislative requirements.

Common Use Cases and Queries

This table is central to operational and compliance reporting. A common use case is generating a summary of year-to-date earnings and deductions for an employee. Payroll administrators and self-service users frequently query it for real-time balance checks. The table is also essential for payroll processing logic where a calculation depends on a running total from earlier periods. A typical query pattern involves joining to PAY_DEFINED_BALANCES and related dimension tables to retrieve a meaningful balance name and value.

  • Sample Query: Retrieving latest balances for a specific assignment.
    SELECT pdb.defined_balance_name, plb.value
    FROM pay_latest_balances plb,
         pay_defined_balances pdb
    WHERE plb.defined_balance_id = pdb.defined_balance_id
    AND plb.assignment_id = :assignment_id
    AND pdb.balance_type_id = (SELECT balance_type_id FROM pay_balance_types WHERE balance_name = 'Gross Earnings');
    

Related Objects

The PAY_LATEST_BALANCES table has a direct, documented relationship with the PAY_DEFINED_BALANCES table, which defines the balance's structure and rules. As per the provided metadata:

  • Foreign Key Relationship: PAY_LATEST_BALANCES.DEFINED_BALANCE_ID references PAY_DEFINED_BALANCES. This join is mandatory to interpret the type of balance stored (e.g., Gross Earnings YTD).

In practice, this table is also closely related to other key payroll tables not listed in the excerpt. It is populated from the detailed PAY_BALANCES table, which holds the full historical ledger of balance feeds. It is frequently used in conjunction with PAY_BALANCE_TYPES, PAY_ASSIGNMENT_ACTIONS, and PAY_RUN_RESULTS for comprehensive payroll analysis and auditing.