Search Results ben_cpe_shd




Overview

BEN_CPE_SHD is a shared utility package within the Oracle E-Business Suite Advanced Benefits (BEN) module, owned by the APPS schema. The "CPE" designation refers to the Copy Entity framework — the infrastructure Oracle Benefits uses to replicate configuration and transactional benefit entity data across business groups, plans, programs, and other organizational constructs. BEN_CPE_SHD encapsulates the common, low-level PL/SQL operations that every copy-entity operation requires: DML status tracking, concurrency locking, argument translation, and constraint-error detection. Rather than duplicate this logic in each entity-specific copy handler, the Benefits development team centralized it in BEN_CPE_SHD, which is then consumed by the generated business (BUS), insert (INS), update (UPD), and delete (DEL) handlers for each individual copyable entity. It is classified in ETRM as an OTHER API — it is not an end-user-facing public API, but an internal shared-services layer.

Key Procedures and Functions

  • RETURN_API_DML_STATUS — Returns the DML status of the calling API operation, allowing the generated BUS layer to determine whether a copy step succeeded or failed and to propagate that outcome back to the caller.
  • CONSTRAINT_ERROR — Provides standardized detection and handling of Oracle constraint violations raised during copy operations, enabling graceful error reporting rather than unhandled exceptions.
  • API_UPDATING — Flags or tests whether an API update is currently in progress, supporting the internal state machine that governs copy-entity execution.
  • LCK — Implements the locking primitive used to serialize access to the copy-entity context, preventing concurrent copy operations from corrupting shared state.
  • CONVERT_ARGS — Converts and normalizes arguments passed into the copy-entity routines, bridging the generic shared layer and the entity-specific handlers.

Tables Accessed

The ETRM dependency data documents references to ALL_CONSTRAINTS and BEN_COPY_ENTITY_RESULTS via APPS synonyms. ALL_CONSTRAINTS is accessed to resolve constraint metadata, which underpins the CONSTRAINT_ERROR routine and validates the referential integrity expectations of the copied entity. BEN_COPY_ENTITY_RESULTS is the persistent record of copy-entity execution outcomes; BEN_CPE_SHD interacts with it indirectly through its role in the copy results API layer. The package also depends on the SYS.STANDARD package and the PUBLIC schema, consistent with a low-level utility that relies on core PL/SQL built-ins and applies Oracle's standard exception semantics.

Usage Notes

BEN_CPE_SHD is never invoked directly by end users. It is referenced by five packages — BEN_COPY_ENTITY_RESULTS_API, BEN_CPE_BUS, BEN_CPE_DEL, BEN_CPE_INS, and BEN_CPE_UPD — each of which calls into it multiple times (ETRM records both the package specification and body dependencies for BUS, DEL, INS, and UPD). This dependency pattern confirms its role as the shared substrate beneath the entity-specific copy handlers. In practice it is exercised whenever an administrator performs a Benefits copy-entity action (for example, copying a plan or program configuration), whether triggered from a Benefits form, a concurrent program, or a custom integration that calls the copy-entity APIs. Customizations should not call BEN_CPE_SHD directly; the supported entry points are the higher-level copy-entity APIs. Because the package is a private implementation detail, Oracle does not guarantee its signature across patches, and any direct dependency on it risks breakage during upgrades from 12.1.1 to 12.2.2 or later.