Search Results get_inv_spec_or_vr_id




Overview

GMD_SPEC_MATCH_GRP is the group-layer PL/SQL package within the Oracle E-Business Suite Process Manufacturing (OPM) quality module that implements specification matching logic. Its declared header, first shipped in file GMDGSPMS.pls and last revised at version 120.7 in March 2006, defines the package as AUTHID CURRENT_USER, meaning all unqualified object references resolve through the calling schema rather than the package owner. The package exists to determine which specification version applies to a given inventory, customer, supplier, WIP, resource, or location context, and to return associated test and specification identifiers.

The package's role is central to OPM quality workflows: whenever a sample is taken, a result is recorded, or an approval decision is required, the quality engine must know which specification, version, and test govern the material. GMD_SPEC_MATCH_GRP encapsulates that resolution logic so that forms, concurrent programs, and dependent packages do not embed duplicated matching rules.

Key Procedures and Functions

The ETRM metadata documents eleven callable units. They fall into three functional groupings.

The package header defines two record types, INVENTORY_SPEC_REC_TYPE and CUSTOMER_SPEC_REC_TYPE, which carry matching context. Both include inventory_item_id, revision, organization_id, and subinventory. The inventory record additionally carries grade_code, parent_lot_number, lot_number, locator_id, date_effective, exact_match, and test_id. The header comments explicitly mark item_id, lot_id, orgn_code, whse_code, and location as obsolete yet retained for migration compatibility, and note that test_id is supplied only by the production team.

Tables Accessed

The package reads and writes through APPS synonyms across the OPM quality and manufacturing schema.

Usage Notes

The package is a group-layer API, not an end-user form. It is invoked by OPM quality forms that require specification resolution, by concurrent programs performing batch sample and result evaluation, and by nine other packages in the APPS schema. A notable historical consumer is GMDQCMJB.pls, which relies on the obsolete fields restored to the record types in the 2005 revision. Customizations calling GET_INV_SPEC_OR_VR_ID should populate the INVENTORY_SPEC_REC_TYPE through the documented attributes only and treat item_id, lot_id, orgn_code, whse_code, and location as migration-only parameters, since their replacement by inventory_item_id, organization_id, and locator_id is the supported path in release 12.1.1 and 12.2.2.