Search Results convert_special_char




Overview

APPS.PAY_CA_RL2_MAG is a Canadian payroll legislative reporting package that produces the RL-2 (Relevé 2) tax slip data required by Revenu Québec. It belongs to the payroll family of Canadian mag

netic-media and XML reporting objects and is classified under the API classification OTHER within the ETRM repository. The package is responsible for assembling employee, employer, and transmitter information into a structured report, converting each record into an XML fragment, and exposing the accumulated XML to the calling report program. The header of the package body (pycarl2mg.pkb, version 120.55.12010000.3) indicates that it has been maintained through the 12.1.1 code line and continues to be shipped in the 12.2.2 environment.

The object was located by a search for convert_special_char, an internal utility frequently used within Canadian payroll report packages to replace reserved XML characters such as ampersands, angle brackets, and quotation marks with their escaped equivalents before the data is written into an XML stream. Its function within PAY_CA_RL2_MAG is to sanitize names, addresses and free-form text fields so that the generated RL-2 file remains well-formed.

Key Procedures and Functions

Tables Accessed

The package reads payroll action and assignment data from PAY_PAYROLL_ACTIONS, PAY_ASSIGNMENT_ACTIONS and PAY_ASSIGNMENT_ACTIONS_S, and supplementary report values from PAY_ACTION_INFORMATION, PAY_ACTION_INTERLOCKS and PAY_REPORT_FORMAT_MAPPINGS_F. Person and assignment details come from PER_ALL_PEOPLE_F, PER_ALL_ASSIGNMENTS_F and PER_ADDRESSES. Organization, location and organization classification data come from HR_ALL_ORGANIZATION_UNITS, HR_LOCATIONS_ALL and HR_ORGANIZATION_INFORMATION. Writes are directed against PAY_ACTION_INFORMATION and the assignment action tables, with DUAL used for single-row lookups, DBMS_LOB for the XML large object and PLITBLM for PL/SQL table handling.

Usage Notes

PAY_CA_RL2_MAG is invoked by the Canadian RL-2 submission and XML generation concurrent programs rather than directly from a form. The report is submitted through the standard concurrent manager, and the package reads the resulting payroll action identifier to reconstruct the reporting context. It is also referenced by two other packages in the ETRM repository, indicating it is consumed as a subordinate component of the broader Canadian RL-2 processing flow.