Search Results g_msg_medium




Overview

AR_ADJVALIDATE_PUB is a public PL/SQL package in the Oracle E-Business Suite Receivables module (APPS schema) that centralizes the validation logic applied to manual adjustments before they are created or applied against a transaction. The package exposes a public API (PUB classification), meaning its procedures are intended to be callable from external code such as forms, concurrent programs, and custom integrations, rather than being restricted to internal package use.

Its primary business role is to enforce the business rules that govern whether an adjustment is permissible: checking the adjustment type and reason code, verifying that the operator has approval authority for the requested amount, confirming that the associated payment schedule and receipt are valid, validating accounting date ranges against open GL periods, and validating the accounting flexfield (code combination) as well as the USSGL transaction code. In effect, it is the gatekeeper that prevents invalid adjustments from being posted and provides consistent, reusable validation across all entry points.

The package header version identifier (115.9, dated 2003) reflects the long-standing lineage of this code, which has been carried forward largely unchanged into the 12.1.1 and 12.2.2 releases. Because the logic is packaged rather than embedded in individual forms, the same rules apply whether an adjustment is entered interactively or through an interface.

Key Procedures and Functions

The documented API comprises fifteen procedures and functions, each addressing a discrete validation or setup concern:

Tables Accessed

The package touches a broad set of reference and transactional tables:

Usage Notes

AR_ADJVALIDATE_PUB is invoked whenever a manual adjustment must be validated. The most common caller is the Receivables Adjustments form, which calls the validation procedures interactively as the user completes the adjustment. The package is also referenced by one other package, indicating it is embedded within the standard adjustment processing flow. Custom code and interfaces should call INIT_CONTEXT_REC first to populate the profile-driven context, then the individual VALIDATE_* procedures, and finally AAPI_MESSAGE to retrieve any errors. Because the package caches lookup and period data internally, it is best used within a single logical validation session rather than across long-running batch processes without re-initialization. The G_MSG_HIGH constant observed in the source maps to FND_MSG_PUB.G_MSG_LVL_DEBUG_HIGH, confirming that the package emits high-severity debug messages through the standard FND message stack.