Search Results cn_sca_process_batches
Overview
CN_SCA_CREDITS_BATCH_PVT is a private PL/SQL package body owned by the APPS schema that supports the Sales Credit Allocations (SCA) feature in Oracle EBS Release 12.1.1 and 12.2.2. Its stated purpose, per the embedded header comment, is to "process the Sales Credit Allocations." The package is classified as PVT (private), meaning it is intended for internal invocation by other EBS components rather than as a public integration API. It orchestrates batch-level rule evaluation and allocation logic, driving the movement of sales credit data through the SCA staging and output tables. The source header indicates an original creation date of 11/10/03 and file version cnvscapb.pls, reflecting the package's long-standing role in Oracle's incentive compensation and order management flows.
Key Procedures and Functions
The package exposes a single documented procedure, PROCESS_BATCH_RULES. Its role is to evaluate the active credit rules for a given physical batch and transaction source across a specified date range, producing the winner records and the corresponding allocation output. The procedure is not a public API; it is a private worker routine invoked by the SCA batch processing framework.
The implementation also contains an internal helper, debugmsg, which emits diagnostic output to the CN_MESSAGE_PKG debug facility when the profile option CN_DEBUG is set to 'Y'. This is a logging convenience only and carries no business logic. Declared exceptions include NO_TRX, CONC_FAIL, and API_CALL_FAILED, which signal no-transaction, concurrent-program failure, and API invocation error conditions respectively. Notably, PROCESS_BATCH_RULES is designed as a concurrent-program entry point, as evidenced by its errbuf and retcode OUT parameters and the use of CN_SCA_PROCESS_BATCHES to derive the start and end identifier range for the run.
Tables Accessed
- CN_SCA_PROCESS_BATCHES — Provides the start_id and end_id boundaries of the transaction records being processed in the current batch.
- CN_SCA_CREDIT_RULES — Supplies the rule definitions applied during batch evaluation.
- CN_SCA_HEADERS_INTERFACE — The inbound interface staging table for SCA header-level data.
- CN_SCA_WINNERS — Stores the winning party or rule outcome determined by rule processing.
- CN_SCA_LINES_OUTPUT — The output table holding the resulting credit allocation lines; this is the table most closely associated with the user's search term "cn_sca_lines_output" and represents the tangible allocation result.
- PLITBLM — The PL/SQL table-to-VARCHAR2 conversion utility used for bulk SQL generation and dynamic statements.
Usage Notes
The package is invoked through the SCA concurrent program framework rather than directly from Oracle Forms, and it is referenced by zero other packages according to the ETRM metadata, confirming that its consumers are the concurrent manager and internal batch drivers only. Because the package is private and performs bulk DML against the interface, winners, and lines output tables, custom code should not call it directly; instead, integrations should target the supported SCA public APIs or the underlying concurrent program. Administrators troubleshooting allocations should first set the CN_DEBUG profile option to 'Y' to capture debugmsg output, then inspect CN_SCA_PROCESS_BATCHES for the run range and CN_SCA_LINES_OUTPUT for the resulting lines. The presence of NO_TRX and CONC_FAIL exceptions indicates that concurrent program completion status and transaction availability are significant failure modes to monitor in the concurrent manager log.
-
SYNONYM: APPS.CN_SCA_PROCESS_BATCHES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CN_SCA_PROCESS_BATCHES, status:VALID,
-
SYNONYM: APPS.CN_SCA_PROCESS_BATCHES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_SCA_PROCESS_BATCHES, status:VALID,
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_CREDITS_BATCH_PVT, status:VALID,
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_CREDITS_BATCH_PVT, status:VALID,
-
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,
-
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_TRX_PROC_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CN_SCA_TRX_PROC_PVT, status:VALID,
-
VIEW: CN.CN_SCA_PROCESS_BATCHES_ALL#
12.2.2
owner:CN, object_type:VIEW, object_name:CN_SCA_PROCESS_BATCHES_ALL#, 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,
-
APPS.CN_SCA_TRX_PROC_PVT SQL Statements
12.2.2
-
TABLE: CN.CN_SCA_PROCESS_BATCHES_ALL
12.1.1
owner:CN, object_type:TABLE, fnd_design_data:CN.CN_SCA_PROCESS_BATCHES_ALL, object_name:CN_SCA_PROCESS_BATCHES_ALL, status:VALID,
-
APPS.CN_SCA_TRX_PROC_PVT SQL Statements
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB SQL Statements
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB SQL Statements
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PVT SQL Statements
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PVT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.CN_SCA_TRX_PROC_PVT
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES
12.1.1
-
PACKAGE BODY: APPS.CN_SCA_TRX_PROC_PVT
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PVT dependencies on CN_SCA_PROCESS_BATCHES
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PVT dependencies on CN_SCA_PROCESS_BATCHES
12.1.1
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES
12.2.2
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES
12.1.1
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PUB
12.1.1
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PUB
12.2.2
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PVT
12.2.2
-
PACKAGE BODY: APPS.CN_SCA_CREDITS_BATCH_PVT
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES_S
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on CN_SCA_PROCESS_BATCHES_S
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on DUAL
12.2.2
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on DUAL
12.2.2
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on DUAL
12.1.1
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on DUAL
12.1.1
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES_S
12.1.1
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on CN_SCA_PROCESS_BATCHES_S
12.2.2
-
APPS.CN_SCA_INTERFACE_MAP_PVT dependencies on FND_GLOBAL
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on FND_REQUEST
12.1.1
-
APPS.CN_SCA_INTERFACE_MAP_PVT dependencies on FND_GLOBAL
12.2.2
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on FND_REQUEST
12.1.1
-
PACKAGE BODY: APPS.CN_SCA_INTERFACE_MAP_PVT
12.2.2
-
PACKAGE BODY: APPS.CN_SCA_INTERFACE_MAP_PVT
12.1.1
-
APPS.CN_SCA_CREDITS_BATCH_PUB dependencies on FND_REQUEST
12.2.2
-
APPS.CN_SCA_TRX_PROC_PVT dependencies on FND_REQUEST
12.2.2
-
APPS.CN_SCA_INTERFACE_MAP_PVT dependencies on CN_SCA_HEADERS_INTERFACE
12.2.2
-
APPS.CN_SCA_INTERFACE_MAP_PVT dependencies on CN_SCA_HEADERS_INTERFACE
12.1.1
-
eTRM - CN Tables and Views
12.1.1
-
APPS.CN_SCA_INTERFACE_MAP_PVT dependencies on CN_UTILS
12.1.1