Search Results cn_source_all
Overview
The CN_SOURCE_ALL table is a core technical repository within the Oracle E-Business Suite Incentive Compensation (CN) module. It functions as a system-managed storage location for dynamically generated PL/SQL code. This code is produced by the module's internal Classification and Collection code generators, which are central to processing compensation plans. The table's role is to house the executable logic that calculates earnings, applies business rules, and determines payouts based on transactional data, enabling the flexible and performance-oriented operation of complex incentive schemes.
Key Information Stored
The table's primary purpose is to store generated PL/SQL source code and its associated metadata. While the full column list is not detailed in the provided excerpt, the documented relationships and primary key reveal critical fields. The SOURCE_ID column serves as the unique identifier for each code segment or package body. The OBJECT_ID is a foreign key linking the generated code to a specific compensation plan object (like a formula or rule) defined in the CN_OBJECTS_ALL table. The ORG_ID column supports the multi-org architecture, partitioning data by operating unit. The table likely contains columns for the actual source code (e.g., SOURCE_TEXT), a version or timestamp, and status indicators to manage code generation and execution lifecycles.
Common Use Cases and Queries
Direct interaction with this table is typically limited to diagnostic, audit, or support scenarios, as the code is managed by the application engine. Common use cases include verifying that code generation completed successfully for a plan, extracting the generated logic for debugging calculation errors, or auditing changes between plan versions. A sample query to retrieve the generated code for a specific compensation object would join on CN_OBJECTS_ALL.
SELECT cs.source_text, co.name
FROM cn_source_all cs,
cn_objects_all co
WHERE cs.object_id = co.object_id
AND co.name = 'SALES_COMMISSION_FORMULA_2024';
Administrators may also query to identify the most recently generated or largest code objects within the system for performance analysis.
Related Objects
The CN_SOURCE_ALL table has a direct and critical dependency on the CN_OBJECTS_ALL table, which is the master repository for all incentive compensation plan components. The documented foreign key relationship is:
- CN_OBJECTS_ALL: The CN_SOURCE_ALL.OBJECT_ID column references CN_OBJECTS_ALL. This join is essential for associating dynamically generated code with its parent business object, such as a classification rule, formula, or collection plan.
While not listed in the excerpt, this table is intrinsically related to the runtime execution engine of the Incentive Compensation module. The generated code in CN_SOURCE_ALL is called by various CN package APIs during the compensation calculation process (often referred to as the "CN Process").
-
Table: CN_SOURCE_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_SOURCE_ALL, object_name:CN_SOURCE_ALL, status:VALID, product: CN - Incentive Compensation , description: Stores the dynamically generated code from the Classification and Collection code generators. , implementation_dba_data: CN.CN_SOURCE_ALL ,
-
Table: CN_SOURCE_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_SOURCE_ALL, object_name:CN_SOURCE_ALL, status:VALID, product: CN - Incentive Compensation , description: Stores the dynamically generated code from the Classification and Collection code generators. , implementation_dba_data: CN.CN_SOURCE_ALL ,
-
APPS.CN_UTILS dependencies on CN_SOURCE_ALL
12.1.1
-
APPS.CN_FORMULA_GEN_PKG dependencies on CN_SOURCE_ALL
12.2.2
-
APPS.CN_UTILS dependencies on CN_SOURCE_ALL
12.2.2
-
APPS.CN_FORMULA_GEN_PKG dependencies on CN_SOURCE_ALL
12.1.1
-
APPS.CN_UTILS dependencies on CN_SOURCE
12.2.2
-
APPS.CN_UTILS dependencies on CN_SOURCE
12.1.1
-
VIEW: CN.CN_SOURCE_ALL#
12.2.2
-
VIEW: CN.CN_SOURCE_ALL#
12.2.2
owner:CN, object_type:VIEW, object_name:CN_SOURCE_ALL#, status:VALID,
-
SYNONYM: APPS.CN_SOURCE_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SOURCE_ALL, status:VALID,
-
SYNONYM: APPS.CN_SOURCE_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SOURCE_ALL, status:VALID,
-
APPS.CN_UTILS SQL Statements
12.2.2
-
APPS.CN_UTILS dependencies on CN_SOURCE_S
12.2.2
-
APPS.CN_UTILS dependencies on CN_SOURCE_S
12.1.1
-
APPS.CN_UTILS SQL Statements
12.1.1
-
TABLE: CN.CN_SOURCE_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_SOURCE_ALL, object_name:CN_SOURCE_ALL, status:VALID,
-
TABLE: CN.CN_SOURCE_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_SOURCE_ALL, object_name:CN_SOURCE_ALL, status:VALID,
-
SYNONYM: APPS.CN_SOURCE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SOURCE, status:VALID,
-
SYNONYM: APPS.CN_SOURCE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SOURCE, status:VALID,
-
PACKAGE BODY: APPS.CN_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CN_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_GEN_PKG, status:VALID,
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_FORMULA_GEN_PKG, status:VALID,
-
Table: CN_OBJECTS_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_OBJECTS_ALL, object_name:CN_OBJECTS_ALL, status:VALID, product: CN - Incentive Compensation , description: Collection of objects used by Sales Compensation. Tables, columns, sequences, packages, etc. , implementation_dba_data: CN.CN_OBJECTS_ALL ,
-
12.1.1 FND Design Data
12.1.1
-
Table: CN_OBJECTS_ALL
12.2.2
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_OBJECTS_ALL, object_name:CN_OBJECTS_ALL, status:VALID, product: CN - Incentive Compensation , description: Collection of objects used by Sales Compensation. Tables, columns, sequences, packages, etc. , implementation_dba_data: CN.CN_OBJECTS_ALL ,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
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_UTILS dependencies on CN_OBJECTS
12.1.1
-
APPS.CN_UTILS dependencies on CN_OBJECTS
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.CN_UTILS
12.1.1
-
PACKAGE BODY: APPS.CN_UTILS
12.2.2
-
APPS.CN_FORMULA_GEN_PKG SQL Statements
12.2.2
-
APPS.CN_FORMULA_GEN_PKG SQL Statements
12.1.1
-
eTRM - CN Tables and Views
12.1.1
-
eTRM - CN Tables and Views
12.2.2
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.2.2
-
PACKAGE BODY: APPS.AD_MORG
12.1.1
-
PACKAGE BODY: APPS.AD_MORG
12.2.2
-
PACKAGE BODY: APPS.CN_FORMULA_GEN_PKG
12.1.1
-
12.2.2 DBA Data
12.2.2
-
eTRM - CN Tables and Views
12.1.1