Search Results cn_pay_element_inputs_s
Overview
The APPS.CN_PAY_ELEMENT_INPUTS_PKG package body is a table handler (row-level API) for the CN_PAY_ELEMENT_INPUTS table within the Oracle EBS Incentive Compensation (CN) module. Its function is to provide a controlled, centralized set of DML operations for maintaining the mapping between pay elements and the input values that drive them. In Incentive Compensation, pay elements represent the components of a compensation plan (such as commission rates, quotas, or credit rules), and each pay element consumes one or more element inputs. The CN_PAY_ELEMENT_INPUTS table records the association between a given pay element and the specific inputs, element types, and tabular or column objects that supply values to it.
The package encapsulates the insert, update, lock, and delete logic for these records, ensuring that sequence-based primary keys are generated consistently and that row-level concurrency is handled properly. The header comment identifies it explicitly as the "Table Handler for CN_PAY_ELEMENT_INPUTS," dating originally to 2001, with subsequent parameter additions. The package is classified as an OTHER API in the ETRM 12.2.2 metadata and is referenced by one other package, indicating it is a supporting utility rather than a top-level business API.
Key Procedures and Functions
Four documented procedures constitute the public interface of the package:
- INSERT_ROW — The main insert procedure. It creates a new row in
CN_PAY_ELEMENT_INPUTS, accepting the pay element input identifier along with the quota pay element, element input, element type, tabular object, column object, line number, and effective start date attributes. It typically obtains the next primary key value from the sequence before inserting. - LOCK_ROW — Acquires a row-level lock on the specified
CN_PAY_ELEMENT_INPUTSrecord, using aSELECT ... FOR UPDATEpattern, so that concurrent updates or deletes cannot interleave. This supports optimistic concurrency control within the calling form or program. - UPDATE_ROW — Applies modifications to an existing pay element input record, updating the mutable attributes of the mapping while preserving the primary key.
- DELETE_ROW — Removes a pay element input record from the table, typically after the caller has validated that the record is no longer required by an active plan configuration.
A private Get_UID routine, documented in the source excerpt, retrieves the next value from CN_PAY_ELEMENT_INPUTS_S to populate the primary key during inserts. The package also declares a private variable g_program_type used to track the invoking program context within the session.
Tables Accessed
- CN_PAY_ELEMENT_INPUTS — The primary table managed by this handler. All four documented procedures read from or write to this table.
- CN_PAY_ELEMENT_INPUTS_S — The sequence supplying unique
PAY_ELEMENT_INPUT_IDvalues, accessed throughGet_UIDduringINSERT_ROW. - DUAL — Used as the source for the sequence selection.
Access to these objects occurs through APPS synonyms, consistent with standard EBS schema conventions.
Usage Notes
The package is normally invoked programmatically rather than directly by end users. Typical callers are the Incentive Compensation setup and administration forms, concurrent programs that populate or migrate plan configurations, and other CN packages that need to create or maintain pay element input mappings. Custom code extending Incentive Compensation setup should call INSERT_ROW, UPDATE_ROW, and DELETE_ROW rather than issuing direct DML against CN_PAY_ELEMENT_INPUTS, so that sequence generation and concurrency handling remain consistent. Callers should invoke LOCK_ROW before an update or delete when the record is being edited interactively. Because the API is classified as OTHER, it carries no formal public API guarantee, and modifications should be validated against the specific EBS release in use.
-
SEQUENCE: CN.CN_PAY_ELEMENT_INPUTS_S
12.1.1
owner:CN, object_type:SEQUENCE, object_name:CN_PAY_ELEMENT_INPUTS_S, status:VALID,
-
SYNONYM: APPS.CN_PAY_ELEMENT_INPUTS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PAY_ELEMENT_INPUTS_S, status:VALID,
-
SYNONYM: APPS.CN_PAY_ELEMENT_INPUTS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PAY_ELEMENT_INPUTS_S, status:VALID,
-
SEQUENCE: CN.CN_PAY_ELEMENT_INPUTS_S
12.2.2
owner:CN, object_type:SEQUENCE, object_name:CN_PAY_ELEMENT_INPUTS_S, status:VALID,
-
PACKAGE BODY: APPS.CN_PAY_ELEMENT_INPUTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PAY_ELEMENT_INPUTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PAY_ELEMENT_INPUTS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PAY_ELEMENT_INPUTS_PKG, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.CN_PAY_ELEMENT_INPUTS_PKG dependencies on CN_PAY_ELEMENT_INPUTS_S
12.1.1
-
APPS.CN_PAY_ELEMENT_INPUTS_PKG dependencies on CN_PAY_ELEMENT_INPUTS_S
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1