Search Results check_assignment




Overview

APPS.HR_CN_API is a public PL/SQL package in the Oracle E-Business Suite Human Resources (HR) module, classified as an API in the ETRM repository and owned by the APPS schema. Its header identifies it with AUTHID CURRENT_USER and a package header revision dating to the 12.0 code line ($Header: hrcnapi.pkh 120.1.12000000.1), which carries forward unchanged into Oracle EBS 12.1.1 and 12.2.2. The package provides a library of validation and utility routines used by Oracle HR localization and person/assignment processing logic, particularly where Chinese (CN) legislative and payroll-related attributes must be validated before records are committed. In the 12.2.2 documented metadata the package exposes 23 procedures and functions and is referenced by 18 other packages, indicating it serves as a shared validation utility layer rather than a standalone user-facing process.

Key Procedures and Functions

The documented interface includes location, lookup, validation, and message-retrieval routines:

Tables Accessed

The package reads and writes primarily HR and flexfield metadata through APPS synonyms:

Usage Notes

HR_CN_API is a server-side package and is not exposed as a form or concurrent program in its own right. It is invoked from PL/SQL in Oracle HR localization code, from other APIs, and from custom extensions requiring the same validation semantics. Its 18 referencing packages confirm that it is consumed throughout HR and payroll processing rather than called directly by end users. Because it operates under AUTHID CURRENT_USER, callers must ensure the invoking schema has the necessary privileges on the underlying APPS synonyms, and custom code should call the documented routines rather than depend on internal behavior. The presence of SET_LOCATION and trace-conditional overloads means diagnostic output can be directed by the caller, which is useful when troubleshooting payroll or person validation failures in 12.1.1 and 12.2.2 environments.