Search Results cn_sca_process_batches_s
Overview
CN_SCA_TRX_PROC_PVT is a private PL/SQL package body in the APPS schema that supports the Oracle E-Business Suite Trade Management (formerly Incentive Compensation / Channel Management) transaction processing engine. Its role is to drive the assignment, creation, negation, and adjustment handling of commission transactions associated with Sales Compensation (SCA) batches. The package operates on transactional interfaces and output staging tables that sit between collected sales data and the final commission calculation engine.
The _PVT suffix indicates that this is an internal, private package body, not intended to be called directly by external consumers. It is not referenced by any database object, meaning it is invoked from within the SCA processing framework itself, most likely through the public batch runner entry point. The user search term "cn_sca_process_batches_s" resolves to the underlying sequence used to generate primary keys for the CN_SCA_PROCESS_BATCHES table, which this package depends upon.
Key Procedures and Functions
The metadata documents thirteen procedures and functions:
- DEBUGMSG — Writes diagnostic messages to the concurrent request log via FND_FILE for troubleshooting batch processing.
- CONC_SUBMIT — Submits a concurrent program request using FND_REQUEST for downstream or parallel processing.
- CONC_DISPATCH — Dispatches or polls concurrent requests and evaluates their completion status.
- ASSIGN — Performs salesrep assignment logic against commission headers and lines.
- CREATE_TRX — Creates commission transactions from interface data using CN_COMM_LINES_API.
- NEGATE_TRX — Reverses or negates previously created transactions (adjustment/credit handling).
- CHECK_ADJUSTED — Determines whether a transaction has already been adjusted to prevent double processing.
- CHECK_API_ADJUSTED — API-level variant of the adjustment check, calling CN_COMM_LINES_API.
- POPULATE_RESULTS — Populates output/result staging tables after processing.
- POPULATE_DATA — Loads working data into interface tables for batch processing.
- CALL_POPULATE_DATA — Wrapper that invokes POPULATE_DATA, likely handling error management.
- CALL_POPULATE_RESULTS — Wrapper that invokes POPULATE_RESULTS.
- SCA_BATCH_RUNNER — The primary driver procedure that orchestrates the full batch cycle.
Tables Accessed
The package reads and writes the core SCA transaction processing tables:
- CN_SCA_PROCESS_BATCHES / _S — The batch control table and its sequence; tracks batch execution state. This is the object associated with the user search term.
- CN_SCA_HEADERS_INTERFACE / CN_SCA_LINES_INTERFACE — Inbound staging for header and line data awaiting transaction creation.
- CN_SCA_LINES_OUTPUT — Destination for processed line results.
- CN_SCA_LOGICAL_BATCHES_S — Sequence for logical batch identifiers.
- CN_COMMISSION_HEADERS / CN_COMM_LINES_API — Commission transaction storage and the public API used to create/negate transactions.
- CN_SALESREPS / CN_REPOSITORIES — Salesrep and repository reference data for assignment.
- FND_USER, FND_GLOBAL, FND_PROFILE, FND_DATE, FND_MESSAGE, FND_MSG_PUB, FND_REQUEST, FND_CONCURRENT, FND_FILE — Standard EBS infrastructure utilities for user context, messaging, profiles, and concurrent processing.
- DBMS_LOCK, DBMS_SQL, PLITBLM, DUAL — Locking, dynamic SQL, and utility support.
Usage Notes
CN_SCA_TRX_PROC_PVT is invoked indirectly through the SCA batch processing framework, typically triggered by a concurrent program that calls the public wrapper. It relies on MO_GLOBAL for multi-org context, confirming it operates within the operating unit security model. Because it is a private package, customizations should not call it directly; instead, extend or wrap the public API. During upgrades between 12.1.1 and 12.2.2, the package remains valid, and its dependencies on FND and CN foundation APIs must be preserved. The associated sequence cn_sca_process_batches_s supplies batch primary keys, and any data purge or reconciliation of batch records should account for rows generated through this package's SCA_BATCH_RUNNER execution path.
-
SEQUENCE: CN.CN_SCA_PROCESS_BATCHES_S
12.1.1
owner:CN, object_type:SEQUENCE, object_name:CN_SCA_PROCESS_BATCHES_S, status:VALID,
-
SEQUENCE: CN.CN_SCA_PROCESS_BATCHES_S
12.2.2
owner:CN, object_type:SEQUENCE, object_name:CN_SCA_PROCESS_BATCHES_S, status:VALID,
-
SYNONYM: APPS.CN_SCA_PROCESS_BATCHES_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SCA_PROCESS_BATCHES_S, status:VALID,
-
SYNONYM: APPS.CN_SCA_PROCESS_BATCHES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SCA_PROCESS_BATCHES_S, status:VALID,
-
PACKAGE BODY: APPS.CN_SCA_TRX_PROC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_TRX_PROC_PVT, status:VALID,
-
PACKAGE BODY: APPS.CN_SCA_TRX_PROC_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_TRX_PROC_PVT, status:VALID,
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_CREDITS_BATCH_PUB, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_CREDITS_BATCH_PUB, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
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_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES_S
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES_S
12.2.2
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES_S
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES_S
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1