Search Results cn_commission_lines




Overview

The CN_TRX_BATCHES_ALL table is a core data object within the Oracle E-Business Suite (EBS) Incentive Compensation (CN) module. Its primary function, as documented in the ETRM, is to act as a grouping mechanism for commission lines. In operational terms, it serves as a batch header table that logically aggregates and manages the processing of individual commission transactions stored in the CN_COMMISSION_LINES table. This batching structure is essential for controlling and auditing high-volume commission calculations, adjustments, and processing runs within the application, ensuring data integrity and providing a clear audit trail for transactional groups.

Key Information Stored

The table's structure centers on a unique batch identifier and key processing metadata. The primary key column is TRX_BATCH_ID, which uniquely identifies each batch of commission lines. A critical foreign key relationship is maintained via the PROCESS_AUDIT_ID column, which links to the CN_PROCESS_AUDITS_ALL table. This link is vital for associating each transaction batch with a specific instance of a compensation process run, thereby enabling comprehensive process auditing. While the provided metadata does not list all columns, typical columns in such a batch table would include creation dates, status flags (e.g., 'PROCESSED', 'PENDING'), the batch source, and identifiers for the concurrent request or user that initiated the batch creation.

Common Use Cases and Queries

The primary use case for CN_TRX_BATCHES_ALL is to trace and report on groups of commission transactions processed together. Administrators and analysts query this table to understand batch-level status, investigate processing errors, and perform reconciliations. A common reporting pattern involves joining to the CN_COMMISSION_LINES table to summarize commission amounts by batch. For example, to identify all commission lines within a specific process run, one might use a query such as:

SELECT cl.* FROM cn_commission_lines cl, cn_trx_batches_all tb WHERE cl.trx_batch_id = tb.trx_batch_id AND tb.process_audit_id = <audit_id>;

Another typical query is to review batches created within a date range and their associated line counts and total values, which is crucial for period-end processing audits and performance analysis.

Related Objects

As indicated by the ETRM metadata, CN_TRX_BATCHES_ALL has direct and fundamental relationships with several key Incentive Compensation objects. Its most significant relationship is with the CN_COMMISSION_LINES table, for which it provides the batch grouping. It is also formally linked via foreign key to the CN_PROCESS_AUDITS_ALL table, which tracks the execution details of compensation processes. Consequently, this table is central to the commission transaction lifecycle and is frequently referenced in custom reports, data fixes, and audit queries that need to analyze commission data at a batch or process level rather than at the individual line level.