Search Results get_quota_info
Overview
CN_QUOTA_ASSIGNS_PKG is a PL/SQL package in the APPS schema that supports the quota assignment functionality within Oracle E-Business Suite's Channel Revenue Management (also referred to as Trade Management) module. Quota assignments represent the mechanism by which quota amounts defined for compensation plans are allocated to specific sales representatives, payment groups, or plan participants. The package provides the programmatic interface used by higher-level compensation plan APIs and private packages to validate, retrieve, insert, and delete quota assignment records in the underlying base tables.
The package is classified as an OTHER API within the ETRM repository, meaning it is an internal supporting package rather than a directly callable public API. It is not intended for direct invocation by external integrations; instead, it serves as a dependency for the compensation plan packages that orchestrate quota allocation during plan setup and maintenance. Its documented status is VALID, confirming it is a compiled, active object in the EBS 12.1.1 and 12.2.2 releases.
Key Procedures and Functions
The ETRM metadata documents five procedures and functions within the package:
- BEGIN_RECORD — Initializes a new quota assignment record, typically setting up the working context or default values required before rows are inserted or updated.
- CHECK_EXISTS — Verifies whether a quota assignment record already exists for a given combination of keys, providing a boolean or status result used to control conditional logic in caller packages.
- CHECK_DUPLICATE — Detects duplicate quota assignment entries, preventing redundant allocations from being created for the same plan, quota, or participant combination.
- GET_QUOTA_INFO — Retrieves quota-related information, such as quota amounts, plan references, or assignment details, for use by callers that need to display or process quota data.
- DELETE_RECORD — Removes a quota assignment record from the base table, supporting plan revisions, participant changes, or cleanup operations.
Tables Accessed
The package reads and writes through APPS synonyms to the following tables:
- CN_QUOTA_ASSIGNS and CN_QUOTA_ASSIGNS_S — The primary and secondary (audit/shadow) tables storing quota assignment records manipulated by BEGIN_RECORD and DELETE_RECORD.
- CN_QUOTAS — The quota definitions referenced by GET_QUOTA_INFO to resolve the quota amount and attributes assigned to a participant.
- CN_COMP_PLANS — The compensation plan header data, providing the plan context within which quota assignments are valid.
- CN_SRP_PLAN_ASSIGNS — Sales resource plan assignments, linking plans to sales representatives for whom quota assignments apply.
- CN_SRP_PAY_GROUPS — Payment group definitions used to group sales representatives for quota and compensation processing.
Usage Notes
CN_QUOTA_ASSIGNS_PKG is an internal dependency invoked by higher-level packages, specifically CN_COMP_PLANS_PKG, CN_COMP_PLAN_PUB, CN_QUOTA_ASSIGNS_PKG itself (recursive internal calls), and CN_QUOTA_ASSIGN_PVT. It is not exposed through a dedicated Oracle Forms screen or concurrent program of its own; instead, it executes in the background when users configure or modify compensation plans and quota allocations through the standard Channel Revenue Management responsibility, or when the public compensation plan API (CN_COMP_PLAN_PUB) processes quota assignment logic.
Because this package is classified as OTHER and not as a public API, custom code and integrations should avoid calling it directly. Instead, use the documented public compensation plan APIs, which invoke this package as part of their internal execution flow. Direct calls risk bypassing validation and audit logic maintained in the private and public layers. The presence of CHECK_EXISTS and CHECK_DUPLICATE underscores that duplicate prevention and existence validation are enforced at this level, so any direct modification of CN_QUOTA_ASSIGNS outside this package could produce inconsistent data.