Search Results pay_template_ff_usages_pk
Overview
The PAY_TEMPLATE_FF_USAGES table is a core technical object within the Oracle E-Business Suite Payroll module (PAY). It functions as a junction table that establishes a many-to-many relationship between element templates and shadow formulas. Its primary role is to enable the association of multiple fast formulas with a single shadow object, which is a critical design pattern for implementing complex payroll calculations. By linking templates, formulas, and optional exclusion rules, this table provides the underlying data structure that allows the payroll engine to determine which specific calculation logic (formula) should be executed for a given element entry under defined conditions.
Key Information Stored
The table stores the linkage identifiers that connect related payroll entities. The primary key, TEMPLATE_FF_USAGE_ID, uniquely identifies each association record. The core foreign key columns define the relationships: TEMPLATE_ID references a specific element template in PAY_ELEMENT_TEMPLATES, FORMULA_ID points to the associated calculation logic in PAY_SHADOW_FORMULAS, and EXCLUSION_RULE_ID can optionally reference a rule in PAY_TEMPLATE_EXCLUSION_RULES to define scenarios where this particular formula association should not be applied. This structure allows a single element template to be linked to multiple formulas, with the system typically selecting the appropriate one based on context or exclusion logic.
Common Use Cases and Queries
This table is central to troubleshooting payroll calculation issues and auditing formula assignments. A common use case involves identifying all formulas linked to a specific element template to understand the calculation flow. Developers and functional consultants may query this table to verify configurations during implementation or support. A typical diagnostic query joins to related tables to provide meaningful names:
SELECT petf.template_name, psf.formula_name, ptfu.* FROM pay_template_ff_usages ptfu, pay_element_templates_f petf, pay_shadow_formulas psf WHERE ptfu.template_id = petf.element_template_id AND ptfu.formula_id = psf.formula_id AND petf.template_name = '&TEMPLATE_NAME';
Another critical scenario is during payroll runs, where the engine queries this table to resolve which formula to execute for an element entry based on the associated template and applicable exclusion rules.
Related Objects
PAY_TEMPLATE_FF_USAGES is a junction table with defined foreign key relationships to three key payroll objects, as documented in the ETRM metadata:
- PAY_ELEMENT_TEMPLATES: Linked via
PAY_TEMPLATE_FF_USAGES.TEMPLATE_ID. This is the master table for element templates, which define the characteristics of earnings and deductions. - PAY_SHADOW_FORMULAS: Linked via
PAY_TEMPLATE_FF_USAGES.FORMULA_ID. This table stores the metadata for fast formulas used in payroll calculations. - PAY_TEMPLATE_EXCLUSION_RULES: Linked via
PAY_TEMPLATE_FF_USAGES.EXCLUSION_RULE_ID. This table holds rules that can prevent a specific template-formula association from being used.
The table's primary key constraint is PAY_TEMPLATE_FF_USAGES_PK on the TEMPLATE_FF_USAGE_ID column.
-
APPS.PAY_TFU_SHD dependencies on PAY_TEMPLATE_FF_USAGES
12.2.2
-
APPS.PAY_TFU_SHD dependencies on FND_MESSAGE
12.1.1
-
INDEX: HR.PAY_TEMPLATE_FF_USAGES_PK
12.2.2
owner:HR, object_type:INDEX, object_name:PAY_TEMPLATE_FF_USAGES_PK, status:VALID,
-
APPS.PAY_TFU_SHD dependencies on PAY_TEMPLATE_FF_USAGES
12.1.1
-
APPS.PAY_TFU_SHD dependencies on FND_MESSAGE
12.2.2
-
Table: PAY_TEMPLATE_FF_USAGES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TEMPLATE_FF_USAGES, object_name:PAY_TEMPLATE_FF_USAGES, status:VALID, product: PAY - Payroll , description: Allows multiple formulas to be associated with a shadow object. , implementation_dba_data: HR.PAY_TEMPLATE_FF_USAGES ,
-
INDEX: HR.PAY_TEMPLATE_FF_USAGES_PK
12.1.1
owner:HR, object_type:INDEX, object_name:PAY_TEMPLATE_FF_USAGES_PK, status:VALID,
-
TABLE: HR.PAY_TEMPLATE_FF_USAGES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TEMPLATE_FF_USAGES, object_name:PAY_TEMPLATE_FF_USAGES, status:VALID,
-
Table: PAY_TEMPLATE_FF_USAGES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TEMPLATE_FF_USAGES, object_name:PAY_TEMPLATE_FF_USAGES, status:VALID, product: PAY - Payroll , description: Allows multiple formulas to be associated with a shadow object. , implementation_dba_data: HR.PAY_TEMPLATE_FF_USAGES ,
-
TABLE: HR.PAY_TEMPLATE_FF_USAGES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_TEMPLATE_FF_USAGES, object_name:PAY_TEMPLATE_FF_USAGES, status:VALID,
-
PACKAGE BODY: APPS.PAY_TFU_SHD
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.PAY_TFU_SHD
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
eTRM - PAY Tables and Views
12.1.1
description: Temporary table used to hold invalid location addresses. ,
-
eTRM - PAY Tables and Views
12.2.2
description: Temporary table used to hold invalid location addresses. ,
-
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. ,