Search Results ams_formula_pvt




Overview

APPS.AMS_FORMULA_PVT is a private PL/SQL package body in the Oracle E-Business Suite Applications schema, classified under the ETRM API taxonomy as a "PVT" (private) package. Its business purpose is to manage the definition, maintenance, validation, and execution of activity metric formulas used by Oracle Marketing (AMS) and related Oracle Advanced Planning or activity-based costing functionality. Formulas stored in the AMS_ACT_METRIC_FORMULAS tables allow an administrator to express a calculated performance metric as a combination of operands and entries, which the package then evaluates at runtime through its EXECUTE_FORMULA routine.

The object is documented as VALID in both Oracle EBS 12.1.1 and 12.2.2 environments and is not referenced by any other database object, confirming its status as an internal implementation library consumed only through its public wrapper, AMS_FORMULA_PVT is the public specification that exposes these routines to forms, concurrent programs, and other PL/SQL callers.

Key Procedures and Functions

The package body exposes seventeen documented procedures and functions covering the complete lifecycle of a formula header and its associated formula entries:

Tables Accessed

The package reads and writes the following tables, all accessed via APPS synonyms:

  • AMS_ACT_METRIC_FORMULAS — the master table holding formula header definitions.
  • AMS_ACT_METRIC_FORMULAS_S — the shadow (TL) table supporting the formula header.
  • AMS_ACT_METRIC_FORM_ENT — the base table storing individual formula entries (operands/components).
  • AMS_ACT_METRIC_FORMULA_ENT_S — the shadow table for formula entries.
  • DUAL — used for PL/SQL level scalar evaluations and simple lookups.
  • PLITBLM — the PL/SQL index-by table of VARCHAR2 used for passing collections of arguments into EXECUTE_FORMULA.

Usage Notes

AMS_FORMULA_PVT is invoked indirectly through its public counterpart AMS_FORMULA_PVT and is typically called from the Oracle Marketing administrative forms when users define or maintain activity metric formulas, and from concurrent programs or custom PL/SQL that must evaluate a formula at runtime. The package relies on FND_API, FND_GLOBAL, FND_MESSAGE, FND_MSG_PUB, JTF_PLSQL_API, AMS_UTILITY_PVT, and STANDARD for error handling, API infrastructure, and message resolution. Because it is a PVT package, direct calls from custom code should be avoided; integrators should use the supported public API instead.