Results for “pay_ca_soe_earn_balances_v”
30 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PAY_CA_SOE_EARN_BALANCES_V is an APPS-owned database view in the Oracle E-Business Suite Payroll (PAY) product, delivered and valid in both EBS 12.1.1 and 12.2.2. The name indicates its purpose: it exposes Statement of Earnings (SOE) related earnings and balance information for Canadian payroll, sourced from assignment actions, payroll actions, element types, and balance types. It is a reporting and integration object rather than a transactional table, and it is populated entirely at query time by joining payroll setup and run-time entities and by invoking PL/SQL balance functions.
The view is significant because it surfaces run-time balance values that are not persisted in a single base table. The projected balance column is computed by calling PAY_CA_BALANCE_PKG.CALL_CA_BALANCE_GET_VALUE, with the retrieval mode selected by the payroll action type: 'R' (regular run) and 'Q' (quick pay) request the 'RUN' value, while 'P' (process) and 'U' request the 'CURRENT' value. Each call passes the balance name, the assignment action and assignment identifiers, the tax unit, and the business group.
Crucially for the search term "report_level", the view reads a session variable through PAY_CA_BALANCE_VIEW_PKG.GET_SESSION_VAR('REPORT_LEVEL') and passes it as the balance retrieval level on every call. It similarly reads 'JURISDICTION_CODE'. These session variables, not columns, govern the aggregation granularity and jurisdiction context of the returned balance, which is why report_level effectively controls what the view returns.
Underlying Base Objects
The documented referenced objects are HR_BALANCES (package), PAY_ASSIGNMENT_ACTIONS, PAY_BALANCE_TYPES, PAY_CA_BALANCE_PKG, PAY_CA_BALANCE_VIEW_PKG, PAY_ELEMENT_CLASSIFICATIONS, PAY_ELEMENT_TYPES_F, PAY_ELEMENT_TYPES_F_TL, PAY_PAYROLL_ACTIONS, and PAY_RUN_RESULTS.
- PAY_ASSIGNMENT_ACTIONS and PAY_PAYROLL_ACTIONS supply the assignment action and payroll action context, including ACTION_TYPE which drives the balance retrieval mode.
- PAY_ELEMENT_TYPES_F, PAY_ELEMENT_TYPES_F_TL, and PAY_ELEMENT_CLASSIFICATIONS provide element identity, translation, reporting name, and classification data.
- PAY_BALANCE_TYPES (aliased twice, PBT and PBT1) supplies balance type identity and names.
- HR_BALANCES supplies the DECODE_BALANCE function used to resolve balance type display values.
- PAY_CA_BALANCE_PKG and PAY_CA_BALANCE_VIEW_PKG supply the balance value and session variable logic.
- PAY_RUN_RESULTS appears among referenced objects, consistent with run-time payroll values underlying the balance calls.
The view text carries a hint block forcing ORDERED with nested-loop joins and named indexes, reflecting its design for targeted per-assignment retrieval.
Key Columns
- ASSIGNMENT_ACTION_ID, ASSIGNMENT_ID, TAX_UNIT_ID — the run-time context keys.
- ELEMENT_TYPE_ID, CLASSIFICATION_ID, CLASSIFICATION_NAME — element and classification identity.
- REPORTING_NAME and BASE_REPORTING_NAME — the translated reporting name and its base-language counterpart; ELEMENT_NAME likewise.
- PROCESSING_PRIORITY — element processing order.
- BALANCE_TYPE_ID and the DECODE_BALANCE(BALANCE_TYPE_ID) display value — balance identity and label.
- ELEMENT_INFORMATION10 and ELEMENT_INFORMATION12 — descriptive element attributes often used in statutory reporting.
- BUSINESS_GROUP_ID — the legislative/operating context.
- The computed balance column — the value returned by CALL_CA_BALANCE_GET_VALUE, whose level is set by the REPORT_LEVEL session variable and jurisdiction by JURISDICTION_CODE.
Common Use Cases and Queries
Typical uses include Canadian Statement of Earnings reporting, earnings and deduction reconciliation, and feeds that require run-time balance values per assignment action. Because REPORT_LEVEL is a session variable, callers must set it before querying.
- Set the session context, then query by assignment action:
SELECT assignment_action_id, assignment_id, element_name, reporting_name, balance_type_id FROM apps.pay_ca_soe_earn_balances_v WHERE assignment_action_id = :p_action_id;
- Retrieve by element classification:
SELECT assignment_id, classification_name, reporting_name FROM apps.pay_ca_soe_earn_balances_v WHERE classification_name = :p_classification;
- Join to PAY_ASSIGNMENT_ACTIONS to filter by payroll action and action type.
Report level should be initialized via the appropriate PAY_CA_BALANCE_VIEW_PKG session-setting routine before execution to obtain the intended aggregation.
-
APPS.PAY_CA_SOE_EARN_BALANCES_V·↳ HR_BALANCES·↳ PAY_ASSIGNMENT_ACTIONS·↳ PAY_BALANCE_TYPES·Explore PAY module →
-
APPS.PAY_CA_SOE_EARN_BALANCES_V·↳ HR_BALANCES·↳ PAY_ASSIGNMENT_ACTIONS·↳ PAY_BALANCE_TYPES·Explore PAY module →
-
12.1.1 DBA Data 12.1.1
-
12.1.1 FND Design Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.2.2 FND Design Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
eTRM - PAY Tables and Views 12.1.1
Temporary table used to hold invalid location addresses.
-
eTRM - PAY Tables and Views 12.2.2
Temporary table used to hold invalid location addresses.
-
eTRM - PAY Tables and Views 12.1.1
Temporary table used to hold invalid location addresses.
-
eTRM - PAY Tables and Views 12.2.2
Temporary table used to hold invalid location addresses.