Search Results pay_balance_context_values_pk
Overview
The PAY_BALANCE_CONTEXT_VALUES table is a core data object within the Oracle E-Business Suite (EBS) Payroll module (PAY). It serves a critical localization function by storing the specific context values that link payroll balances to the FastFormula (FF) contexts used in legislative-specific calculations. This table acts as a mapping mechanism, ensuring that payroll balance values are correctly associated with the appropriate context identifiers required for complex, country-specific payroll processing rules. Its existence is fundamental to the accurate and compliant operation of payroll in multi-legislation environments, enabling the system to retrieve the correct balance information based on runtime context.
Key Information Stored
Based on the provided ETRM metadata, the table's structure is defined by its primary and foreign keys. The primary key is a composite of LATEST_BALANCE_ID and CONTEXT_ID. This design enforces a unique relationship between a specific payroll balance and a specific context. The LATEST_BALANCE_ID column references a unique payroll balance identifier, while the CONTEXT_ID column holds a foreign key to the FF_CONTEXTS table, which defines the available contexts within the FastFormula engine. The table itself does not store the actual context value (e.g., 'US', 'TAX_YEAR') but establishes the essential link that allows the payroll engine to resolve which balance corresponds to which formula context at runtime.
Common Use Cases and Queries
The primary use case for this table is during the execution of payroll calculations and the generation of payroll reports that require legislative-specific logic. For instance, when a formula for a US tax rule needs to access a year-to-date gross earnings balance, the system uses this table to find the correct balance ID for the given context. A common query pattern involves joining this table to balance and context definitions to understand the mapping for a specific legislation or balance type.
SELECT bc.latest_balance_id,
bc.context_id,
c.context_name,
b.balance_name
FROM pay_balance_context_values bc,
ff_contexts c,
pay_balance_types b
WHERE bc.context_id = c.context_id
AND bc.latest_balance_id = b.balance_type_id
AND c.context_name = 'JURISDICTION_CODE';
This query retrieves all balances that are mapped to a specific context, which is essential for debugging formula logic or validating localization setups.
Related Objects
- FF_CONTEXTS: This is the primary related table, as documented by the foreign key relationship. The column PAY_BALANCE_CONTEXT_VALUES.CONTEXT_ID references FF_CONTEXTS. This relationship ties the balance mapping to the master list of available formula contexts.
- PAY_BALANCE_TYPES: While not explicitly listed in the provided foreign key data, the LATEST_BALANCE_ID column logically references the BALANCE_TYPE_ID in the PAY_BALANCE_TYPES table (or a related balance definition table), which defines the payroll balances themselves.
The table's primary key constraint, PAY_BALANCE_CONTEXT_VALUES_PK, ensures data integrity for these critical mappings.
-
Table: 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, product: PAY - Payroll , description: Localization balance contexts. , implementation_dba_data: HR.PAY_BALANCE_CONTEXT_VALUES ,
-
Table: 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, product: PAY - Payroll , description: Localization balance contexts. , implementation_dba_data: HR.PAY_BALANCE_CONTEXT_VALUES ,