Search Results split_segments




Overview

HR_REPORTS is a long-standing PL/SQL package owned by the APPS schema in Oracle E-Business Suite, shipped in both 12.1.1 and 12.2.2. As its name implies, its purpose is to supply data-retrieval functions consumed by Oracle HRMS reports — historically the SRW2 (Oracle Reports) report definitions built against the PER and PAY schemas. Rather than embedding complex SQL directly in report templates, the report developer calls these packaged functions to obtain decoded, report-ready values such as organization names, job and position details, grade descriptions, lookup meanings, and flexfield segment attributes. The package header (peperrep.pkh) dates to 1993 and carries a copyright notice from Oracle Corporation UK Ltd., reflecting its origin in the early Oracle HR product line. The documented API classification is OTHER, meaning it is not a public, supported business API in the sense of an open interface or a signature-controlled extension point; it is an internal utility layer for report generation.

Key Procedures and Functions

The ETRM documentation lists 38 callable units. The most commonly referenced include:

No parameter lists are published in the ETRM metadata; signature details should be confirmed by querying ALL_ARGUMENTS or the package specification in the target instance.

Tables Accessed

The package reads from a defined set of APPS synonyms covering FND, HR, PER, PAY, and HZ:

The package is read-only in nature: all documented activity is lookup and retrieval, consistent with its role supplying values to a report engine.

Usage Notes

HR_REPORTS is referenced by 112 other packages, indicating broad internal dependency across HRMS reporting. It is normally invoked in two contexts: (a) directly from Oracle Reports/SRW2 report templates via PL/SQL or formula columns, and (b) from other packaged report helpers that delegate name resolution to it. Because it is classified OTHER and is not a public API, custom code should not rely on its signatures remaining stable across patches; Oracle supports the HRMS views and public APIs instead. When "split_attributes" appears in a search, it usually signals an attempt to parse a descriptive flexfield attribute string into component segments for display. In 12.1.1 and 12.2.2, flexfield handling was gradually migrated toward the FND_FLEX_* and fnd_flex_keyval APIs, so customizations should prefer those where possible. For diagnostic purposes, source can be extracted from the database (ALL_SOURCE / DBA_SOURCE for the APPS schema) or from the $PER_TOP patch files (peperrep.pkh and peperrep.pkb); DBMS_METADATA.GET_DDL on the package spec and body provides an instance-specific copy. The package requires the HRMS security context to be established by the calling report, since the underlying HR tables are protected by business group and security profile logic.