Search Results config_totals




Overview

The APPS.OE_OE_TOTALS_SUMMARY package is a core Order Management calculation engine in Oracle E-Business Suite, responsible for deriving and exposing monetary and quantity totals for sales orders. It aggregates extended prices, price adjustments, charges, taxes, order subtotals, recurring charges, and order totals across the header, line, and service levels of an order. The package is classified by ETRM as an "OTHER" API object, meaning it is an internal implementation package rather than a formally published public API, although its functions are widely depended upon throughout the Order Management schema.

The package maintains a set of global (session-scoped) PL/SQL variables — including G_TAX_VALUE and G_TOTAL_EXTENDED_PRICE, along with recurring counterparts such as G_REC_TAX_VALUE and G_REC_TOTAL_EXTENDED_PRICE — that cache intermediate totals during a calculation pass. It also declares a PL/SQL record type, rec_charges_rec_type, with fields for charge periodicity code, description, meaning, recurring subtotal, recurring tax, recurring charges, and recurring total, and a corresponding associative array type rec_charges_tbl_type. These structures support recurring-charge rollups such as subscription or service billing periods.

Key Procedures and Functions

ETRM documents 33 procedures and functions. The principal documented members include:

Tables Accessed

The package reads from several Order Management and inventory tables through APPS synonyms: OE_ORDER_LINES_ALL (line-level pricing data), OE_PRICE_ADJUSTMENTS (adjustment definitions and applied amounts), OE_PAYMENTS (payment and deposit information), MTL_SYSTEM_ITEMS (item attributes affecting pricing), and PLITBLM (a PL/SQL index-by table used internally for bulk computation). These accesses allow the package to reconstruct order totals from persisted transactional data at query time rather than relying solely on stored summary columns.

Usage Notes

OE_OE_TOTALS_SUMMARY is referenced by 24 other packages and is typically invoked from Order Management forms (such as the Sales Orders window) to display live totals, from order-entry and order-import business flows, and from custom code that requires authoritative order, line, or service totals. Because it is classified as an internal package, Oracle does not guarantee its signature across releases; implementers extending or calling it directly should validate behavior in both 12.1.1 and 12.2.2, where the source header shows a long-stable revision. Customizations should prefer wrapping the documented functions rather than modifying the package body.