Search Results get_sqlerrm




Overview

The APPS.HR_JP_DATA_MIGRATION_PKG package body is a Japanese localization utility that supports the migration of payroll element data during the April 2007 statutory change to the Standard Monthly Remuneration (SMR) and related social insurance thresholds. The header comment (hrjpdtmg.pkb 120.0.12000000.6) and the migration date constant c_mig_smr_sd set to 2007/04/01 confirm the package was written to transition existing employee assignment data from legacy values to the newly legislated SMR ranges defined by c_new_smr_min_high and c_new_smr_max_low.

Operationally the package performs two parallel migration streams: one for the health insurance Standard Monthly Remuneration (HI_SMR) and one for the dependents information. Both streams copy or replace element entry values, validate eligibility based on assignment criteria, and record the outcome into FND messages and session-tracking rows. The package is internally organized into qualify, migrate, validate, and run procedures, allowing a caller to preview qualifying assignments before committing data.

Key Procedures and Functions

The package also declares private helper records and tables (t_ass_hi_smr_rec, t_ass_hi_smr_tbl) and message text variables used to report already-updated and future-date conditions.

Tables Accessed

Reads and writes span the core payroll datamodel plus localization and diagnostic tables:

Usage Notes

The package is invoked as part of a one-time Japanese payroll localization migration, typically through a concurrent program or a controlled SQL*Plus session executed by a payroll administrator during a cutoff window. Because it performs DML against live element entries and run results with commits batched at c_commit_num (1000) rows, it should be run only after backups and in coordination with the April 2007 effective date. The qualification and validation procedures (QUALIFY_*, VAL_MIG_*) are intended to be run first in a dry-run or review mode so administrators can inspect the FND message output before the migrate and run procedures commit changes. This is a reference case for the get_sqlerrm search pattern: the package reports failures through SQLERRM captured into its message variables and FND_NEW_MESSAGES, which is the standard mechanism custom migration packages use to surface Oracle error text.