Search Results validate_um
Overview
GMA_VALID_GRP is a validation package in the Oracle E-Business Suite Process Manufacturing (OPM) schema, owned by APPS and classified as a GRP (group) API. Its documented purpose is to consolidate a set of generic, reusable validation functions used throughout the GMA family of applications. Rather than duplicating range checks, unit-of-measure lookups, and code validations in each calling program, GMA_VALID_GRP centralizes them in a single body so that forms, concurrent programs, and other PL/SQL packages can invoke consistent, standardized validation logic.
The package body header dates from 1998–1999 (GMAGVALB.pls, version 115.1), reflecting the package's long-standing role as a foundational utility in the OPM data model. It is referenced by seven other packages, confirming its position as a shared validation service rather than an application-specific routine.
Key Procedures and Functions
The package exposes eight documented functions, each addressing a distinct validation concern:
- NUMRANGECHECK — Confirms that a supplied numeric value falls within a specified minimum and maximum range. This is a generic arithmetic guard used by other routines in the package and by external callers.
- VALIDATE_UM — Validates a unit-of-measure code, presumably confirming it exists in the units-of-measure master.
- VALIDATE_REASON_CODE — The function targeted by the user's search. It validates a reason code against the reason-code definitions, ensuring only defined codes are accepted by transactional processes.
- VALIDATE_ORGN_CODE — Validates an organization code, confirming the organization exists and is valid for use.
- VALIDATE_CO_CODE — Validates a company code against the company master.
- VALIDATE_ORGN_FOR_COMPANY — Confirms that a given organization is legitimately associated with a specified company, enforcing the organization/company relationship.
- VALIDATE_DOC_NO — Validates a document number. The package history notes that an additional parameter, p_orgn_code, was added to this function under Bug 1042739 (28-OCT-1999), indicating document numbers are organization-dependent.
- VALIDATE_TYPE — Validates a type code, providing a generic type-value check for callers.
Parameter lists are not reproduced here; the documented metadata does not fully enumerate each signature, and inventing them would be inaccurate. Callers should obtain signatures from the package specification in the database.
Tables Accessed
The package reads from four tables through APPS synonyms:
- SY_REAS_CDS — The reason-code definitions table, queried by VALIDATE_REASON_CODE.
- SY_UOMS_MST — The units-of-measure master, queried by VALIDATE_UM.
- SY_ORGN_MST — The organization master, supporting VALIDATE_ORGN_CODE, VALIDATE_ORGN_FOR_COMPANY, and the organization parameter of VALIDATE_DOC_NO.
- SY_DOCS_SEQ — The document sequence table, supporting VALIDATE_DOC_NO and VALIDATE_TYPE.
These accesses are almost certainly read-only lookups; validation functions return a boolean rather than mutating data.
Usage Notes
GMA_VALID_GRP is typically invoked from OPM forms during field-level validation (for example, when a user enters a reason code or organization on a transaction form), from concurrent programs performing bulk data validation, and from other PL/SQL packages that need a consistent code check. Because VALIDATE_REASON_CODE is a documented public function, custom extensions and interfaces loading reason-coded transactions should call it rather than querying SY_REAS_CDS directly, ensuring consistency with standard OPM validation rules. Developers should confirm each function's actual signature in the package specification before invoking it, since this body-level metadata does not include complete parameter declarations.
-
PACKAGE BODY: APPS.GMA_VALID_GRP
12.2.2
-
PACKAGE BODY: APPS.GMA_VALID_GRP
12.1.1
-
PACKAGE: APPS.GMA_VALID_GRP
12.1.1
-
PACKAGE: APPS.GMA_VALID_GRP
12.2.2
-
PACKAGE: APPS.GMD_API_GRP
12.1.1
-
PACKAGE: APPS.GMD_API_GRP
12.2.2
-
PACKAGE: APPS.GMD_COMMON_VAL
12.1.1
-
PACKAGE: APPS.GMD_COMMON_VAL
12.2.2
-
APPS.GMA_VALID_GRP dependencies on SY_UOMS_MST
12.1.1
-
APPS.GMA_VALID_GRP dependencies on SY_UOMS_MST
12.2.2
-
APPS.GMD_API_GRP dependencies on MTL_UNITS_OF_MEASURE
12.1.1
-
APPS.GMD_API_GRP dependencies on MTL_UNITS_OF_MEASURE
12.2.2
-
PACKAGE BODY: APPS.GMD_API_GRP
12.2.2
-
PACKAGE BODY: APPS.GMD_API_GRP
12.1.1
-
APPS.GMA_VALID_GRP dependencies on SY_UOMS_MST
12.2.2
-
APPS.GMA_VALID_GRP dependencies on SY_UOMS_MST
12.1.1
-
APPS.GMD_API_GRP dependencies on DUAL
12.1.1
-
APPS.GMD_API_GRP dependencies on DUAL
12.2.2
-
PACKAGE BODY: APPS.GMD_COMMON_VAL
12.1.1
-
PACKAGE BODY: APPS.GMD_COMMON_VAL
12.2.2