Search Results pay_legislation_rules
Overview
PAY_LEGISLATION_RULES is a configuration table in the Oracle E-Business Suite Payroll (PAY) module, owned by the HR schema. It stores legislation-specific rules and structure identifiers that govern how payroll processing behaves for a given country or regulatory jurisdiction. Each row associates a legislation code with a rule type and the mode in which that rule operates, effectively acting as a control table consulted by the payroll engine during calculations, validations, and reporting.
Within the context of Oracle EBS 12.1.1 and 12.2.2, the table is documented as VALID and contains four physical columns. The heuristic Data Vault classification mined from the foreign key structure is standalone, meaning the table does not participate as a link between major business entities. From a modeling perspective, this classification suggests treating the object as a reference or lookup structure rather than a transactional hub; its rows are largely static configuration data maintained by legislation administrators rather than high-volume transaction records.
Key Information Stored
The documented physical schema exposes a compact set of four columns, with the primary key composed of two business-identifying attributes:
- LEGISLATION_CODE — The country or regulatory jurisdiction code (for example, US, GB, CA) that the rule applies to. This is the leading component of the primary key and the primary partitioning dimension for the data.
- RULE_TYPE — The category or kind of legislation rule being defined. Combined with LEGISLATION_CODE, it forms the compound business key PAY_LEGISLATION_RULES_PK.
- RULE_MODE — Indicates the operational mode or behavior of the rule, controlling how the payroll engine interprets or enforces the rule for the given legislation and type.
- ZD_EDITION_NAME — A editioning column associated with Oracle Edition-Based Redefinition (EBR), used in 12.2.x to manage edition-aware access. It appears in the unique index PAY_LEGISLATION_RULES_PK, which is documented as LEGISLATION_CODE, RULE_TYPE, ZD_EDITION_NAME.
The surrogate primary key is represented by the PAY_LEGISLATION_RULES_PK constraint. There is no separate single-column surrogate such as a system-generated ID; instead, the business key (LEGISLATION_CODE plus RULE_TYPE, extended by ZD_EDITION_NAME in the documented index) serves as the unique identifier. This reinforces the table's role as a static reference object.
Common Use Cases and Queries
Typical use cases center on determining which rules are active for a jurisdiction and how they are evaluated during payroll runs. Report developers and payroll administrators query the table to audit legislation configuration, validate that required rule types exist for a country, and diagnose payroll processing behavior.
A representative query to list all rules for a given legislation is:
SELECT legislation_code, rule_type, rule_mode FROM pay_legislation_rules WHERE legislation_code = :p_legislation ORDER BY rule_type;SELECT rule_mode, COUNT(*) FROM pay_legislation_rules WHERE legislation_code = 'US' GROUP BY rule_mode;
Common reporting scenarios include verifying configuration completeness during implementations, comparing rule modes across legislations when globalizing payroll, and diagnosing unexpected payroll results by confirming the governing rule mode. Because the table is edition-aware in 12.2.x, edition-qualified queries should account for ZD_EDITION_NAME when run in environments using EBR.
Related Objects
The documented relationship data classifies this object as standalone, indicating no outgoing foreign keys to other business entities. Dependencies are therefore mostly inbound (other logic or views referencing legislation rules) rather than strict FK-driven. Significant related objects include:
- PAY_LEGISLATION_RULES_PK — the primary key constraint that enforces uniqueness on LEGISLATION_CODE and RULE_TYPE.
- PAY_LEGISLATION_RULES_PK (unique index) — documented as LEGISLATION_CODE, RULE_TYPE, ZD_EDITION_NAME, supporting edition-aware lookups.
- Other PAY legislation-level configuration tables that reference LEGISLATION_CODE as a shared jurisdiction key, allowing joins across regulatory setup objects.
- Payroll processing and calculation logic that consults RULE_TYPE and RULE_MODE at runtime, rather than through a declared foreign key.
- Legislation setup and administrative forms within the Payroll module where this configuration is maintained.
Given the limited documented FK footprint, joins to related legislation tables should be constructed explicitly on LEGISLATION_CODE rather than assumed through declared constraints.
-
Table: PAY_LEGISLATION_RULES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_LEGISLATION_RULES, object_name:PAY_LEGISLATION_RULES, status:VALID, product: PAY - Payroll , description: Legislation specific rules and structure identifiers. , implementation_dba_data: HR.PAY_LEGISLATION_RULES ,
-
Table: PAY_LEGISLATION_RULES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_LEGISLATION_RULES, object_name:PAY_LEGISLATION_RULES, status:VALID, product: PAY - Payroll , description: Legislation specific rules and structure identifiers. , implementation_dba_data: HR.PAY_LEGISLATION_RULES ,
-
VIEW: HR.PAY_LEGISLATION_RULES#
12.2.2
owner:HR, object_type:VIEW, object_name:PAY_LEGISLATION_RULES#, status:VALID,
-
APPS.PAY_CA_RETRO_OVERLAP SQL Statements
12.2.2
-
TABLE: HR.PAY_LEGISLATION_RULES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_LEGISLATION_RULES, object_name:PAY_LEGISLATION_RULES, status:VALID,
-
APPS.PAY_US_RETRO_OVERLAP SQL Statements
12.1.1
-
APPS.PAY_GB_RETRO_OVERLAP SQL Statements
12.1.1
-
APPS.PAY_US_RETRO_OVERLAP SQL Statements
12.2.2
-
APPS.PAY_GB_RETRO_OVERLAP SQL Statements
12.2.2
-
SYNONYM: PUBLIC.PAY_LEGISLATION_RULES
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:PAY_LEGISLATION_RULES, status:VALID,
-
VIEW: HR.PAY_LEGISLATION_RULES#
12.2.2
-
TRIGGER: APPS.PAY_LEGISLATION_RULES+
12.2.2
owner:APPS, object_type:TRIGGER, object_name:PAY_LEGISLATION_RULES+, status:VALID,
-
TABLE: HR.PAY_LEGISLATION_RULES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PAY.PAY_LEGISLATION_RULES, object_name:PAY_LEGISLATION_RULES, status:VALID,
-
TRIGGER: APPS.PAY_LEGISLATION_RULES+
12.2.2
-
APPS.PER_PERUSADA_XMLP_PKG SQL Statements
12.1.1
-
APPS.PER_PERUSADA_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PAY_IN_SCL_DETAILS_V
12.2.2
-
VIEW: APPS.PAY_IN_SCL_DETAILS_V
12.1.1
-
APPS.PAY_EXA_SHD SQL Statements
12.1.1
-
APPS.PAY_EXA_SHD SQL Statements
12.2.2
-
APPS.FF_DBI_UTILS_PKG SQL Statements
12.1.1
-
FUNCTION: APPS.PAY_LEGISLATION_RULES=
12.2.2
-
APPS.PAY_ADVANCE_PAY_ELE_PKG SQL Statements
12.2.2
-
APPS.FF_DBI_UTILS_PKG SQL Statements
12.2.2
-
APPS.PAY_ADVANCE_PAY_ELE_PKG SQL Statements
12.1.1
-
VIEW: APPS.PAY_INDICATOR_ENTRIES_V
12.1.1
-
VIEW: APPS.PAY_INDICATOR_ENTRIES_V
12.2.2
-
APPS.PER_PERRPFP3_XMLP_PKG SQL Statements
12.1.1
-
APPS.HR_LEG_RULE SQL Statements
12.1.1
-
APPS.HR_LEG_RULE SQL Statements
12.2.2
-
APPS.PER_PERRPFP3_XMLP_PKG SQL Statements
12.2.2
-
FUNCTION: APPS.PAY_LEGISLATION_RULES=
12.2.2
owner:APPS, object_type:FUNCTION, object_name:PAY_LEGISLATION_RULES=, status:VALID,
-
PACKAGE BODY: APPS.PAY_ADVANCE_PAY_ELE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_ADVANCE_PAY_ELE_PKG, status:VALID,
-
PACKAGE BODY: APPS.HR_LEG_RULE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LEG_RULE, status:VALID,
-
PACKAGE BODY: APPS.PAY_ADVANCE_PAY_ELE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_ADVANCE_PAY_ELE_PKG, status:VALID,
-
VIEW: APPS.PAY_IE_P45_EMPLOYEE_DETAILS
12.1.1
-
TRIGGER: APPS.PAY_LEGISLATION_RULES_INSERT
12.1.1
-
PACKAGE: APPS.PAY_FI_TAX_CARD_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PAY_FI_TAX_CARD_PKG, status:VALID,
-
PACKAGE BODY: APPS.HR_LEG_RULE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LEG_RULE, status:VALID,
-
TRIGGER: APPS.PAY_LEGISLATION_RULES_INSERT
12.2.2
-
PACKAGE BODY: APPS.PAY_US_RETRO_OVERLAP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_US_RETRO_OVERLAP, status:VALID,
-
VIEW: APPS.PAY_IE_P45_EMPLOYEE_DETAILS
12.2.2
-
PACKAGE BODY: APPS.PYZAEXC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PYZAEXC, status:VALID,
-
PACKAGE BODY: APPS.PER_PERRPFP1_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PER_PERRPFP1_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.PAY_IP_ROUTE_SUPPORT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_IP_ROUTE_SUPPORT, status:VALID,
-
PACKAGE: APPS.PAY_FI_TAX_CARD_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PAY_FI_TAX_CARD_PKG, status:VALID,
-
APPS.PAY_IP_ROUTE_SUPPORT SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PYZAEXC
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PYZAEXC, status:VALID,
-
PACKAGE BODY: APPS.PAY_GB_RETRO_OVERLAP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_GB_RETRO_OVERLAP, status:VALID,
-
PACKAGE BODY: APPS.PER_PERRPFP1_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PER_PERRPFP1_XMLP_PKG, status:VALID,