Search Results basic_pricing_setup




Overview

QP_UTIL_PUB is the public utility package within the Oracle Advanced Pricing (QP) module of Oracle E-Business Suite. It provides a shared library of low-level pricing services that other pricing, order management, and custom components call to resolve pricing context, validate price lists and currencies, apply rounding, drive the pricing engine, and manage limit balances related to complex pricing agreements. In release 12.1.1 and 12.2.2 the package is owned by APPS and classified as a public (PUB) API, meaning its procedures form a supported interface for external invocation. The package is referenced by 32 other packages, which reflects its role as a foundational dependency across the pricing and order capture stack rather than an end-user facing program.

Although the object title is QP_UTIL_PUB, the package header declares the internal name G_PKG_NAME as 'QP_LIMITS_UTIL_PUB', and the documented body originates from the QPXRTCNS.pls script. The package combines pricing setup queries with limit reversal logic, so it is consulted both during routine price calculation and during return or cancellation processing.

Key Procedures and Functions

The documented interface exposes 25 procedures and functions. Central to basic pricing setup is BASIC_PRICING_SETUP, which initializes the global pricing context that other routines depend upon. That context is held in package globals such as G_MULTI_CURRENCY, G_MULTI_CURRENCY_USAGE, G_ROUNDING_OPTIONS, G_OE_UNIT_PRICE_ROUNDING, G_PRICE_LIST_ID, G_CURRENCY_CODE, G_PRICING_EFF_DATE, and G_ROUNDING_FACTOR.

Tables Accessed

The package reads and writes a defined set of pricing and trading partner tables, accessed through APPS synonyms.

Usage Notes

QP_UTIL_PUB is typically invoked indirectly. Oracle Pricing and Order Management forms, concurrent programs, and the pricing engine call it during price list resolution, price rounding, and limit tracking. Custom extensions should call BASIC_PRICING_SETUP before relying on the package globals, since those globals persist for the duration of a session and are populated by the setup routine. REVERSE_LIMITS is appropriate within return, cancellation, and amendment flows where limit balances must be restored; it requires an initialized pricing context and valid temporary line collections. Because the package is classified PUB and is referenced by 32 other packages, modifications are governed by Oracle's API compatibility standards, and direct updates to the underlying QP_LIMITS and QP_LIMIT_BALANCES tables should be avoided in favour of the documented procedures.