Search Results get_formula_no




Overview

GMDFMVAL_PUB is the public validation package for Oracle Process Manufacturing (OPM) formula definitions in Oracle E-Business Suite 12.1.1 and 12.2.2. It centralizes the server-side validation logic that governs the creation, modification, and querying of formulas and their associated detail lines, substitutions, and recipe relationships. The package belongs to the APPS schema and is classified as a public API, meaning it is intended to be called from Oracle Forms, concurrent programs, workflows, and custom extensions rather than being treated as an internal implementation detail.

A substantial portion of its responsibilities involves the resolution of surrogate keys. The header comment for get_formula_id documents a routine that retrieves a formula's surrogate key from the supplied formula number, version, and type. The same pattern recurs across get_formulaline_id, get_item_id, and get_element, which return primary keys for lines, inventory items, and formula elements respectively. This design allows callers to work with user-visible identifiers while the package performs the underlying key lookups against the OPM base tables.

Key Procedures and Functions

The documented procedures and functions fall into several functional groups:

The documented call signature for GET_FORMULA_ID accepts a formula number, version, and type, returning the surrogate key through an OUT parameter and a status code indicating success, a "formula_id not found" condition, or an RDBMS error.

Tables Accessed

The package reads and writes through APPS synonyms across the OPM and Oracle Inventory schemas. FM_FORM_MST and FM_MATL_DTL hold the formula header and material detail records. GMD_RECIPES, GMD_RECIPES_B, and GMD_RECIPE_VALIDITY_RULES support recipe-to-formula relationships and effectivity. Substitution data resides in GMD_FORMULA_SUBSTITUTION, GMD_FORMULA_SUBSTITUTION_S, GMD_ITEM_SUBSTITUTION_DTL, and GMD_ITEM_SUBSTITUTION_HDR_B. Item attributes and revisions are sourced from MTL_SYSTEM_ITEMS, MTL_SYSTEM_ITEMS_KFV, and MTL_ITEM_REVISIONS, while FM_FORM_CLS supplies formula class values, CM_CMPT_DTL provides compatibility detail, and FND_USER is referenced for user context.

Usage Notes

In typical EBS deployments, GMDFMVAL_PUB is invoked from the OPM Formula and Recipe Forms when a user enters or modifies a formula, and from concurrent programs that validate or migrate formula data in bulk. Because it is documented as a public API referenced by eighteen other packages, it is a common integration point for custom PL/SQL that needs formula validation or surrogate key resolution rather than direct table access. Callers should check the returned status code after every invocation and treat a non-zero value as an authoritative validation failure.