Results for “pay_hk_asg_elements_v”

36 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The PAY_HK_ASG_ELEMENTS_V view is a Payroll (PAY) module database object owned by the APPS schema and defined as a reporting view within Oracle E-Business Suite 12.1.1 and 12.2.2. Its name indicates that it surfaces Hong Kong (HK) payroll element information at the assignment level, aggregating run result values for earnings, deductions, and employer liabilities associated with an assignment action. The view is designed primarily to support Hong Kong statutory and voluntary Mandatory Provident Fund (MPF) reporting, as evidenced by its decode logic over element names such as MPF WITHHELD, MPF LIABILITY, RETRO MPF WITHHELD, VOLUNTARY MPF WITHHELD, VOLUNTARY MPF LIABILITY, and VOLUNTARY MPF LUMP SUMS.

Within Oracle EBS reporting and integration, the view serves as a consolidated data source for payslip generation, MPF scheme reporting, and downstream payroll analytics. Because it resolves reporting names, classifies elements, and sums run result values, it abstracts the complexity of the underlying payroll run model and presents a flattened, business-friendly structure suitable for concurrent program output, BI Publisher reports, and ad hoc SQL.

Underlying Base Objects

The view is defined over several documented base objects, all referenced through APPS synonyms, along with one database package:

Join relationships link assignment actions to payroll actions, run results to run result values, and element types to classifications, allowing the view to aggregate amount values per element per assignment action.

Key Columns

  • ROW_ID — the ROWID of the element type record, used for identification.
  • ASSIGNMENT_ACTION_ID — links the row to the specific assignment action processed.
  • ELEMENT_NAME_SORT — a numeric sort key derived by decode, ordering MPF element categories (1, 2, 3, or 99).
  • ELEMENT_REPORTING_NAME — the display name of the element, with MPF scheme prefixes such as VC: applied for voluntary contributions.
  • CLASSIFICATION_NAME — derived classification indicating EARNINGS, DEDUCTIONS, or EMPLOYER LIABILITIES.
  • PROCESSING_PRIORITY — the element processing priority.
  • AMOUNT — the summed run result value (SUM(NVL(RESULT_VALUE, 0))) for the grouped element.

Common Use Cases and Queries

The view is typically queried to produce MPF contribution summaries, payslip element breakdowns, and employer liability reporting for Hong Kong payroll. A representative query filtering by assignment action is shown below:

  • Retrieve all elements for an assignment action, ordered by the built-in sort key: SELECT assignment_action_id, element_reporting_name, classification_name, amount FROM pay_hk_asg_elements_v WHERE assignment_action_id = :p_action_id ORDER BY element_name_sort, element_reporting_name;
  • Aggregate employer MPF liabilities: SELECT classification_name, SUM(amount) FROM pay_hk_asg_elements_v WHERE classification_name = 'EMPLOYER LIABILITIES' GROUP BY classification_name;
  • Produce payslip line items joining to assignment and person details for a payroll period.

Because the view relies on decode logic and the PAY_HK_PAYSLIP_ARCHIVE package, queries are best scoped to a business group and payroll action to limit overhead. It should be treated as a read-only reporting object; all data originates from the underlying payroll run result tables.