Results for “create_or_update_rating_scale”

10 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.HR_RATING_SCALES_API is a public PL/SQL application programming interface within Oracle E-Business Suite that provides programmatic control over rating scales in Oracle HRMS. Rating scales define the graded values used across performance management, competency assessment, and other appraisal-driven business processes. Each rating scale consists of a header record plus one or more rating levels that represent the individual grades on the scale. This package encapsulates the business logic required to create, modify, and remove rating scales and their associated rating levels without requiring direct DML against the underlying base tables.

The package is classified as an API within the ETRM repository and owns the APPS schema. It depends on the HR_API package for standard HR API infrastructure, error handling, and object versioning, and on the SYS.STANDARD package. The API is a foundational component of the HRMS rating infrastructure: it is referenced by the concurrent-program support packages HRDPP_CREATE_RATING_SCALE and HRDPP_UPDATE_RATING_SCALE, by the business logic package PER_RSC_BUS, and recursively by itself. Its documented status is VALID in releases 12.1.1 and 12.2.2.

Key Procedures and Functions

The package exposes four documented procedures, each following the standard HRMS API naming convention:

  • CREATE_RATING_SCALE — Creates a new rating scale header together with its associated rating levels in a single transactional call. This is the entry point for introducing a new scale into the system.
  • UPDATE_RATING_SCALE — Modifies the attributes of an existing rating scale, including the definition of its rating levels, applying the date-tracked and version-aware update semantics expected of HRMS APIs.
  • DELETE_RATING_SCALE — Removes an existing rating scale, typically implemented as an end-dating or logical deletion to preserve referential integrity with historical appraisal data.
  • CREATE_OR_UPDATE_RATING_SCALE — A combined convenience procedure that determines whether the supplied scale already exists and dispatches to the appropriate create or update logic, simplifying integration code and bulk loads.

Parameter lists are intentionally not reproduced here; callers should obtain the exact signatures from the ETRM object browser or by describing the package in SQL*Plus.

Tables Accessed

The package performs its work against the following tables through APPS synonyms:

  • PER_RATING_SCALES — The base table holding rating scale header records, including identifying and date-tracked attributes. The API inserts, updates, and end-dates rows here.
  • PER_RATING_SCALES_TL — The translation table for rating scale names and descriptions, maintained for each installed language.
  • PER_RATING_LEVELS — Stores the individual levels (grades) belonging to each rating scale; created, updated, and removed in step with their parent scale.
  • FND_LOOKUP_VALUES — Read to validate lookup-coded values, such as scale type or status, against the application's lookup definitions.

Usage Notes

HR_RATING_SCALES_API is invoked whenever rating scales must be maintained programmatically. It is the integration point of choice for concurrent programs and data-conversion scripts, as evidenced by its use in HRDPP_CREATE_RATING_SCALE and HRDPP_UPDATE_RATING_SCALE, which wrap the API for batch execution. The PER_RSC_BUS business logic package also calls the API, meaning changes made through the Rating Scales window in the HRMS forms ultimately flow through this interface. Custom code should follow the same practice rather than writing directly to PER_RATING_SCALES, PER_RATING_SCALES_TL, or PER_RATING_LEVELS.

Standard HRMS API conventions apply: callers are expected to set the effective date context, invoke the API, inspect the returned error table, and commit or roll back explicitly. Because the package participates in the HR_API framework, validation errors and warnings are surfaced through the usual HR_API output structures rather than through exceptions alone. In both 12.1.1 and 12.2.2 the object is VALID, and no Online Patching incompatibility is documented; the API remains a supported interface across the 12.x release family.