Search Results pay_balance_context_values_fk1
Overview
The HR.PAY_BALANCE_CONTEXT_VALUES table is a core technical object within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 Payroll module. Its primary function is to store localization context values that, in conjunction with a specific assignment action and a defined balance combination, uniquely identify a specific "latest balance." This table is essential for the accurate calculation and retrieval of payroll balances, which represent cumulative totals of earnings, deductions, taxes, and other payroll elements. By storing context values, it enables the system to maintain distinct balance instances for different legislative, organizational, or user-defined contexts, ensuring precise payroll processing across diverse geographic and business rules.
Key Information Stored
The table's structure is designed to link balance identifiers with their associated context definitions and values. The key columns are:
- LATEST_BALANCE_ID (NUMBER): A foreign key that references either PAY_PERSON_LATEST_BALANCES or PAY_ASSIGNMENT_LATEST_BALANCES. This column identifies the specific balance record to which the context applies.
- CONTEXT_ID (NUMBER): A foreign key to FF_CONTEXTS, identifying the type of context (e.g., legislative data group, payroll, date context).
- VALUE (VARCHAR2(60)): The actual value for the specified context, such as a specific legislative data group code or payroll name.
- INSTANCE_ID (NUMBER): A column added as part of the 12.2 Real Application Clusters (RAC) affinity enhancement for tracking instance-specific data, optimizing performance in clustered database environments.
The primary key constraint PAY_BALANCE_CONTEXT_VALUES_PK is defined on the combination of LATEST_BALANCE_ID and CONTEXT_ID, enforcing uniqueness for each context attached to a balance.
Common Use Cases and Queries
This table is primarily accessed during payroll balance initialization and retrieval processes. A common use case is troubleshooting balance discrepancies by examining the specific contexts that define a balance's scope. For instance, to view all context values attached to a particular latest balance, the following query pattern is used:
SELECT context_id, latest_balance_id, value, instance_id
FROM hr.pay_balance_context_values
WHERE latest_balance_id = :p_balance_id
ORDER BY context_id;
Another critical use case involves data validation and cleanup scripts, where developers may need to identify orphaned context values or verify the integrity of context linkages. The table is integral to reporting on balance dimensions, allowing analysts to understand which legislative or organizational parameters were in effect when a balance was calculated.
Related Objects
HR.PAY_BALANCE_CONTEXT_VALUES is a central junction table with defined relationships to other key payroll objects:
- Primary Key: PAY_BALANCE_CONTEXT_VALUES_PK on (LATEST_BALANCE_ID, CONTEXT_ID).
- Foreign Key (References): The CONTEXT_ID column is a foreign key referencing the FF_CONTEXTS table, which holds the master definitions of all available contexts in the system.
- Foreign Key (Referenced By): The LATEST_BALANCE_ID column is a foreign key pointing to either the PAY_PERSON_LATEST_BALANCES or PAY_ASSIGNMENT_LATEST_BALANCES tables, which store the core balance totals for individuals and assignments, respectively.
- Index: PAY_BALANCE_CONTEXT_VALUES_FK1 (NONUNIQUE) on CONTEXT_ID supports efficient joins back to FF_CONTEXTS.
-
INDEX: HR.PAY_BALANCE_CONTEXT_VALUES_FK1
12.1.1
owner:HR, object_type:INDEX, object_name:PAY_BALANCE_CONTEXT_VALUES_FK1, status:VALID,
-
INDEX: HR.PAY_BALANCE_CONTEXT_VALUES_FK1
12.2.2
owner:HR, object_type:INDEX, object_name:PAY_BALANCE_CONTEXT_VALUES_FK1, status:VALID,
-
TABLE: HR.PAY_BALANCE_CONTEXT_VALUES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_BALANCE_CONTEXT_VALUES, object_name:PAY_BALANCE_CONTEXT_VALUES, status:VALID,
-
TABLE: HR.PAY_BALANCE_CONTEXT_VALUES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_BALANCE_CONTEXT_VALUES, object_name:PAY_BALANCE_CONTEXT_VALUES, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
eTRM - PAY Tables and Views
12.2.2
description: Temporary table used to hold invalid location addresses. ,
-
eTRM - PAY Tables and Views
12.1.1
description: Temporary table used to hold invalid location addresses. ,