Search Results cn_process_batches
Overview
APPS.CN_PURGE_PKG is a PL/SQL package body in the Oracle EBS Incentive Compensation (CN) module. Its business function is to permanently remove transactional and setup data from the Incentive Compensation schema once that data is no longer required for active processing, reporting, or audit retention. Because Incentive Compensation accumulates large volumes of transaction, commission, payment, and period data, purging is a routine housekeeping operation used to control table growth and to satisfy data retention policies before or after period rollover.
The package is classified as OTHER rather than as a public API, indicating that it is an internal maintenance utility rather than a supported integration entry point. It manipulates the core Incentive Compensation tables directly and, where appropriate, delegates to the CN APIs and message package. The metadata records a single documented program unit, PURGE, which serves as the entry point for the purge operation.
Key Procedures and Functions
The package exposes one documented program unit:
- PURGE — The single public procedure that performs the purge operation. It coordinates the removal of the targeted Incentive Compensation data set, referencing the CN transaction, commission, payment, and period tables as well as the CN APIs and CN_MESSAGE_PKG. Because the documented metadata does not publish a parameter list, the exact signature is not restated here; callers are expected to drive the procedure through the standard concurrent program interface that wraps it.
The internal dependencies show the package also relies on CN_COMM_LINES_API and CN_PAYMENT_API, suggesting that part of the cleanup is performed through approved API calls (for example, to reverse or otherwise dispose of commission lines and payment records) rather than purely by direct DML. CN_MESSAGE_PKG is referenced for error and status messaging during execution.
Tables Accessed
CN_PURGE_PKG references the following tables via APPS synonyms:
- CN_PROCESS_BATCHES — batch header records for Incentive Compensation processing runs; relevant to the user's search term and a primary unit of purge scope.
- CN_TRX, CN_TRX_LINES, CN_TRX_SALES_LINES, CN_NOT_TRX — transaction, transaction line, sales line, and non-transaction records.
- CN_COMMISSION_HEADERS, CN_COMMISSION_LINES — commission output records.
- CN_PAYRUNS, CN_PAYMENT_WORKSHEETS — pay run and payment worksheet data.
- CN_LEDGER_JOURNAL_ENTRIES — journal entries generated from Incentive Compensation.
- CN_PERIODS, CN_SRP_PERIODS, CN_SRP_PERIOD_QUOTAS, CN_SRP_PER_QUOTA_RC — period and salesrep period/quota records.
- CN_SALESREPS — salesrep reference data.
Together these tables represent the full lifecycle of Incentive Compensation data: input transactions, processed commission and payment results, and the period/quota scaffolding that surrounds them.
Usage Notes
CN_PURGE_PKG is typically invoked indirectly rather than from custom code. In Oracle EBS 12.1.1 and 12.2.2 it is driven by an Incentive Compensation concurrent program (and its associated submission form) that collects selection criteria and calls PURGE to carry out the deletion. Administrators run it to reclaim space and remove obsolete batches, transactions, and commission/payment records according to retention requirements.
Because the package writes directly to core CN tables and calls the CN APIs, it must be treated as a maintenance utility: it should only be run by authorized Incentive Compensation administrators, after confirming that the data set is no longer needed, and preferably during scheduled downtime or a low-activity window. The dependency report shows CN_PURGE_PKG is not referenced by any other database object, confirming that no other packaged code depends on its internals.
-
APPS.CN_PERIODS_API SQL Statements
12.1.1
-
APPS.CN_PERIODS_API SQL Statements
12.2.2
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PURGE_PKG, status:VALID,
-
PACKAGE: APPS.CN_FORMULA_COMMON_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
SYNONYM: APPS.CN_PROCESS_BATCHES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_PROCESS_BATCHES, status:VALID,
-
SYNONYM: APPS.CN_PROCESS_BATCHES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_PROCESS_BATCHES, status:VALID,
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PURGE_PKG, status:VALID,
-
PACKAGE: APPS.CN_FORMULA_COMMON_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
APPS.CN_TRANSACTION_LOAD_PUB SQL Statements
12.1.1
-
APPS.CN_TRANSACTION_LOAD_PUB SQL Statements
12.2.2
-
PACKAGE BODY: APPS.CN_PERIODS_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PERIODS_API, status:VALID,
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_TRANSACTION_LOAD_PUB, status:VALID,
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_TRANSACTION_LOAD_PUB, status:VALID,
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_TRANSACTION_LOAD_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_TRANSACTION_LOAD_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PERIODS_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PERIODS_API, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_COMMON_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_COMMON_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_COMMON_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PAYMENT_WORKSHEET_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PAYMENT_WORKSHEET_PVT, status:VALID,
-
APPS.CN_TRANSACTION_LOAD_PKG SQL Statements
12.2.2
-
APPS.CN_TRANSACTION_LOAD_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.CN_PROC_BATCHES_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PROC_BATCHES_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_PROC_BATCHES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PROC_BATCHES_PKG, status:VALID,
-
VIEW: CN.CN_PROCESS_BATCHES_ALL#
12.2.2
owner:CN, object_type:VIEW, object_name:CN_PROCESS_BATCHES_ALL#, status:VALID,
-
PACKAGE BODY: APPS.CN_PAYMENT_WORKSHEET_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_PAYMENT_WORKSHEET_PVT, status:VALID,
-
TABLE: CN.CN_PROCESS_BATCHES_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_PROCESS_BATCHES_ALL, object_name:CN_PROCESS_BATCHES_ALL, status:VALID,
-
PACKAGE: APPS.CN_TRANSACTION_LOAD_PUB
12.2.2
-
PACKAGE: APPS.CN_TRANSACTION_LOAD_PUB
12.1.1
-
PACKAGE BODY: APPS.CN_PERIODS_API
12.1.1
-
PACKAGE BODY: APPS.CN_PERIODS_API
12.2.2
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PUB
12.1.1
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PUB
12.2.2
-
PACKAGE: APPS.CN_SCA_TRX_PROC_PVT
12.1.1
-
PACKAGE: APPS.CN_SCA_TRX_PROC_PVT
12.2.2
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PKG
12.2.2
-
PACKAGE BODY: APPS.CN_TRANSACTION_LOAD_PKG
12.1.1
-
TABLE: CN.CN_PROCESS_BATCHES_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_PROCESS_BATCHES_ALL, object_name:CN_PROCESS_BATCHES_ALL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.2.2
-
PACKAGE BODY: APPS.CN_PURGE_PKG
12.1.1
-
APPS.CN_PROC_BATCHES_PKG dependencies on CN_PROCESS_BATCHES
12.2.2
-
APPS.CN_PERIODS_API dependencies on CN_PROCESS_BATCHES
12.1.1
-
APPS.CN_FORMULA_COMMON_PKG dependencies on CN_PROCESS_BATCHES
12.1.1
-
APPS.CN_TRANSACTION_LOAD_PKG dependencies on CN_PROCESS_BATCHES
12.1.1
-
APPS.CN_PURGE_PKG dependencies on CN_PROCESS_BATCHES
12.1.1
-
APPS.CN_PURGE_PKG dependencies on CN_PROCESS_BATCHES
12.2.2
-
APPS.CN_TRANSACTION_LOAD_PKG dependencies on CN_PROCESS_BATCHES
12.2.2
-
APPS.CN_FORMULA_COMMON_PKG dependencies on CN_PROCESS_BATCHES
12.2.2
-
APPS.CN_FORMULA_COMMON_PKG dependencies on CN_PROCESS_BATCHES
12.1.1