Search Results populate_results




Overview

The APPS.GMD_MASS_RESULTS_GRP package body is a Group-layer API belonging to the Oracle E-Business Suite Process Manufacturing (OPM) Quality module. Released under file GMDGMRSB.pls with a header revision of 120.2 (last modified 19-Jan-2006), the package provides the programmatic layer through which mass quality results are assembled, displayed, and consumed by OPM Quality forms and processes. Its stated purpose is to act as the group-layer API for the Mass Results entity — that is, a collection of quality results across multiple samples that share a common sampling sequence identifier (SEQ_ID).

Functionally, the package abstracts the complex retrieval logic required to gather result records, associated specifications, tests, and sample context, and materialize them into a Global Temporary Table for downstream display. This design is typical of OPM Quality group APIs, which separate data population from UI rendering so that forms and concurrent programs can work against a consistent, query-optimized staging set.

Key Procedures and Functions

  • POPULATE_RESULTS — The principal procedure, and the object most commonly associated with the search term "populate_results." It accepts a SEQ_ID as input, extracts all results and related data for the sample_ids associated with that sequence, and populates the GMD_MASS_RESULTS_GT Global Temporary Table. On successful completion the OUT parameter x_return_status is set to 'S'; otherwise an appropriate error message is placed on the error stack and an error status is returned. Documented history shows the logic was refined to exclude archive and reserve samples (08-Jan-2004), to add parent_lot_number and rename test_uom to test_qty_uom (22-Sep-2005), and to split a single INSERT into two INSERT statements to reduce shared-pool pressure (17-Jan-2006, Bug #4913637).
  • DUMP_DATA_POINTS — A diagnostic/debugging procedure used to output the contents of the populated data points, supporting developer troubleshooting of the mass results population logic. It is not part of the primary business flow.

Tables Accessed

The package reads from the core OPM Quality specification and results tables and writes to the temporary staging table:

Usage Notes

This group package is invoked internally by OPM Quality forms and by concurrent programs that render or process mass results for a given sampling sequence. The typical pattern is that a caller supplies the SEQ_ID, calls POPULATE_RESULTS, checks x_return_status, and then queries GMD_MASS_RESULTS_GT for presentation. Because the table is a Global Temporary Table, its contents are session-scoped and must be re-populated per session or per sequence. Custom code should not bypass the API by directly inserting into the GT table. The package is classified as a Group (GRP) API and is not referenced by other packages, so it is intended as an entry point rather than a shared utility layer. Debug output is gated by the AFLOG_ENABLED profile option, which the package reads into its l_debug flag.