Results for “cn_ram_adjustments_pkg”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

CN_RAM_ADJUSTMENTS_PKG is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite, relevant to releases 12.1.1 and 12.2.2. Its documented purpose is to identify and process RAM (Revenue Accounting Management) adjustments within the Oracle Communications/Telecommunications revenue accounting framework that underpins the ETRM (Enterprise Telecommunications Revenue Management) product family. The package header declares AUTHID CURRENT_USER, meaning that its procedures execute with the privileges of the invoking user rather than the package owner, and that all unqualified object references resolve through the caller's schema and synonym chain.

The package coordinates a two-stage adjustment cycle. First it detects compensation transactions requiring adjustment, and then it reverses or negates those transactions so that corrected figures can subsequently be gathered by the re-collection process. The source header indicates the package has been in production since at least 2005 (version 120.3), reflecting a mature, stable component of the revenue accounting pipeline. Under the documented API classification of OTHER, the package is not exposed as a public integration API but is used internally by the RAM adjustment collection flow.

Key Procedures and Functions

The ETRM metadata documents two procedures within the package specification:

  • IDENTIFY — The entry point for detecting RAM adjustments. Documented comment text states it exists "to identify the RAM adjustments." Its signature accepts a start period and an end period (both typed against cn_periods.period_id), together with standard debugging parameters (a debug pipe name and a debug level) and an operating unit identifier (x_org_id). This scope-by-period and scope-by-org design allows the caller to constrain adjustment detection to a specific accounting window and organization.
  • NEGATE — Documented as serving "to negate OIC compensation transactions in API/Header tables which have been identified in the 'identify process' of RAM adjustment collection." The comment further explains that "the new adjusted compensation transactions will be re-collected in the 're-collect process' later." NEGATE accepts debugging parameters and an operating unit identifier. It therefore represents the corrective stage of the cycle: previously identified compensation transactions are reversed so that corrected values can be reprocessed.

No functions are documented in the package specification, and it is referenced by zero other packages, indicating a top-level driver invoked by external control flow rather than a shared utility library.

Tables Accessed

The documented table references, resolved through APPS synonyms, span the revenue accounting and communications transaction model:

  • CN_COMM_LINES_API — the communications line API/interface table, where compensation transactions subject to negation are held prior to processing.
  • CN_TRX and CN_TRX_LINES — the core communications transaction and transaction line tables, forming the primary source inspected during identification.
  • CN_NOT_TRX — supports identification of non-transactional records relevant to RAM adjustment detection.
  • CN_REPOSITORIES — configuration and repository data used to qualify which records are subject to adjustment.
  • AR_REVENUE_ADJUSTMENTS — the Oracle Receivables revenue adjustment table, linking the communications adjustments to the receivables revenue recognition model.
  • RA_CUSTOMER_TRX_LINES — the Receivables transaction line table, providing the invoicing context for adjusted compensation.
  • MTL_ITEM_CATEGORIES — the inventory item category assignment table, used to classify items involved in the adjustment logic.

Usage Notes

CN_RAM_ADJUSTMENTS_PKG is not a formal public API; it is invoked as part of the RAM adjustment collection process. In a typical deployment it is called from concurrent programs, from within the revenue accounting concurrent manager request flow, or from controlled custom code that performs the two-step sequence: execute IDENTIFY for a given period range and organization, then execute NEGATE for the same organization, after which the standard re-collect process gathers the corrected compensation transactions. Because the package is AUTHID CURRENT_USER, callers must ensure that required synonyms and privileges are visible in their own schema.

Practically, the code is exercised on a scheduled basis during period close or at any time revenue adjustments must be reapplied within the communications revenue pipeline. Any custom invocation should pass a valid x_org_id and a bounded period range, and should use the debug pipe and debug level parameters when diagnosing adjustment failures. Because no other packages reference it, changes to the package do not propagate to dependent PL/SQL units, though the downstream re-collection process depends on NEGATE completing successfully before corrected transactions can be gathered.