Search Results fetch_rl1_xml




Overview

APPS.PAY_CA_RL1_MAG is a Canadian payroll legislative reporting package body that generates the RL-1 annual tax slip (Relevé 1) required by Revenu Québec. In Oracle EBS 12.1.1 and 12.2.2, the package is invoked as part of the Canadian Payroll year-end processing cycle and is responsible for extracting assignment, employer, and employee level data for the reporting period and rendering it into the XML format mandated by the provincial tax authority.

The package body combines report parameter resolution, cursor-driven data retrieval from the payroll action and assignment tables, XML document assembly, and LOB manipulation utilities. Two utility functions, append_to_lob and clob_to_blob, support the construction of large XML payloads by converting and appending character data into BLOB containers suitable for file transmission. The header version string (pycarlmg.pkb 120.119.12020000.10, dated 2013) confirms the module was maintained through the 12.2.x release line.

Key Procedures and Functions

The package exposes twenty-two documented procedures and functions. The principal entry points and their purposes are:

Tables Accessed

The package reads and writes several payroll and HR tables through APPS synonyms. PAY_PAYROLL_ACTIONS, PAY_ACTION_INTERLOCKS, PAY_ACTION_INFORMATION, PAY_ASSIGNMENT_ACTIONS, and PAY_ASSIGNMENT_ACTIONS_S provide the action context, action parameters, and assignment-level results for the period. PER_ALL_ASSIGNMENTS_F, PER_ALL_PEOPLE_F, and PER_ADDRESSES supply employee and address details. HR_ALL_ORGANIZATION_UNITS, HR_LOCATIONS_ALL, and HR_ORGANIZATION_INFORMATION supply employer and establishment information. PAY_CA_LEGISLATION_INFO holds Canadian legislative configuration. FF_ARCHIVE_ITEMS and FF_DATABASE_ITEMS back the archived and database item retrieval routines, while DUAL supports simple scalar queries.

Usage Notes

PAY_CA_RL1_MAG is normally invoked by the Canadian Payroll year-end concurrent programs, which populate PAY_PAYROLL_ACTIONS and pass the resulting payroll_action_id into the package. It is referenced by two other packages, indicating reuse in the broader RL-1 and year-end reporting flow. Customizations should invoke the public routines through the standard concurrent program interface rather than calling the XML generation routines directly, since the LOB assembly and slip sequencing rely on state established earlier in the run.