Search Results ar_num_ran_pkg




Overview

AR_NUM_RAN_PKG is a utility package in the Oracle E-Business Suite Receivables (AR) module, owned by the APPS schema. Its status is VALID, and it is classified within the ETRM repository as an OTHER API, meaning it is not a formally published public interface but rather an internal helper invoked by other Receivables components. The package provides numeric randomisation logic used during Receivables data processing, most notably in the context of distribution upgrade and migration routines.

The dependency metadata confirms that AR_NUM_RAN_PKG references the SYS.STANDARD package and, through APPS synonyms, DBMS_RANDOM and AR_DISTRIBUTIONS_ALL. The reliance on DBMS_RANDOM is the defining characteristic of the package: its sole documented program unit, NUM_RANDOM, generates pseudo-random numeric values. Its consumers are other Receivables database objects — specifically the views AR_ADJ_DIST_UPG_V and AR_APP_DIST_UPG_V, both upgrade-related distribution views — which reference the package during data conversion and upgrade processing. The object therefore plays a supporting role in the upgrade path for Receivables distributions rather than in day-to-day transactional processing.

Key Procedures and Functions

The package exposes a single documented program unit:

  • NUM_RANDOM — Returns a pseudo-random numeric value. Based on the package's dependency on DBMS_RANDOM, this routine is used to produce randomised numbers for the distribution upgrade views. It is the only documented entry point in the package, and no parameter lists are published in the ETRM metadata; descriptions should therefore be limited to its purpose as a random-number generator for Receivables upgrade logic.

Tables Accessed

The ETRM metadata records AR_DISTRIBUTIONS_ALL as the table referenced by the package through APPS synonyms, alongside the DBMS_RANDOM PL/SQL package. AR_DISTRIBUTIONS_ALL stores accounting distribution lines for Receivables transactions, adjustments, receipts, and other AR documents. The package's association with this table, combined with its consumption by the AR_ADJ_DIST_UPG_V and AR_APP_DIST_UPG_V upgrade views, indicates that NUM_RANDOM is used to generate random or surrogate numeric values while distribution records are being transformed or migrated. DBMS_RANDOM supplies the underlying random value generation; it is not a table but is listed in the metadata as a referenced dependency.

Usage Notes

AR_NUM_RAN_PKG is not typically invoked directly by end users or through standard Receivables forms. Documentation of its callers shows that it is referenced by the upgrade views AR_ADJ_DIST_UPG_V and AR_APP_DIST_UPG_V, which are used during Receivables upgrade and conversion activities. Custom code that queries or mimics those views may transitively execute the package; however, direct invocation from custom concurrent programs or forms is not a documented pattern. Because the package is classified as OTHER rather than a supported public API, Oracle does not guarantee its signature or behaviour across releases, and customers should not build dependent logic on NUM_RANDOM. Administrators reviewing upgrade dependencies or diagnosing invalid database objects in the APPS schema may encounter this package; its VALID status indicates it compiled successfully and all referenced dependencies, including DBMS_RANDOM and the AR distribution views, resolved at compile time.