Search Results gme_complete_batch_pvt
Overview
APPS.GME_COMPLETE_BATCH_PVT is a private PL/SQL package in Oracle EBS Process Manufacturing (OPM/Process Manufacturing) that implements the batch completion logic for the GME (Process Execution) module. The package declares AUTHID CURRENT_USER, meaning it executes with the privileges of the calling schema rather than the defining schema, and it carries the "PVT" suffix, indicating it is an internal, non-public API intended to be invoked by other OPM packages rather than by external customers directly.
Its central business function is to finalize a production batch: validating that a batch is eligible for completion, processing consumed and yielded materials, generating inventory transactions that reflect actual consumption and production, and returning an updated batch header record with any material exceptions. In effect, this package drives the transactional close of a work-in-process batch in OPM, converting planned material activity into recorded inventory movements.
Key Procedures and Functions
The ETRM metadata documents six procedures:
- COMPLETE_BATCH — The top-level driver procedure. It accepts a batch header record, an exception material table (in/out), and returns an updated batch header record plus a return status. It orchestrates the completion of an entire batch.
- PROCESS_MATERIAL — Handles an individual material detail record, taking a yield indicator, transaction date, and inventory update indicator, and returning material exceptions and status. It is the per-line processing routine invoked during batch completion.
- YIELD_MATERIAL — Processes yielded (produced) material for a material detail record, applying the yield quantity, transaction date, item record, and an unconsumed-forcing flag, returning the actual quantity and status.
- BUILD_AND_CREATE_TRANSACTION — Constructs and creates the inventory transaction for a given material detail and pending product lot, using subinventory, locator, transaction date, yield quantity, revision, and secondary UOM, returning actual quantity and status.
- CONSTR_MMTI — Builds the MTL_TRANSACTIONS_INTERFACE record and associated transaction lot interface rows for a material detail, returning the interface record, lot table, secondary and detail quantities, and status.
- VALIDATE_BATCH_FOR_COMPLETE — Performs pre-completion validation on a batch to confirm it is eligible for completion before transactional processing proceeds.
Tables Accessed
The package reads and writes the following documented tables via APPS synonyms:
- GME_BATCH_HEADER — The batch master record; read for validation and updated on completion.
- GME_MATERIAL_DETAILS — Material consumption and yield lines processed during completion.
- GME_PENDING_PRODUCT_LOTS — Pending product lots used when constructing yield transactions.
- GME_BATCH_STEPS / GME_BATCH_STEP_ITEMS — Batch step and step-item context used in validation.
- MTL_SYSTEM_ITEMS_B / MTL_SYSTEM_ITEMS_KFV — Item definitions and descriptive flexfield view for material processing.
- MTL_ITEM_REVISIONS_B — Revision control for transacted items.
- GMD_RECIPE_VALIDITY_RULES / GMD_STATUS — Recipe validity and status checks supporting validation.
- MTL_TRANSACTIONS_INTERFACE / MTL_TRANSACTION_LOTS_INTERFACE — The inventory open interface tables populated with constructed transaction rows.
- PLITBLM — A PL/SQL index-by table type used internally for bulk material processing.
Usage Notes
Because this package is classified as PVT, it is not intended for direct customer invocation. The metadata notes it is referenced by five other packages, which comprise its supported call stack — typically the public OPM batch completion APIs and concurrent programs. In practice, batch completion is triggered from the OPM Batch form (such as the Complete Batch action) or from concurrent programs that process batch close and inventory transaction feeds.
Custom code should not call GME_COMPLETE_BATCH_PVT directly, since Oracle reserves the right to change private signatures without notice. Developers requiring programmatic batch completion should invoke the supported public API that wraps this package. When the package constructs transaction records, it populates MTL_TRANSACTIONS_INTERFACE, meaning a subsequent transaction manager concurrent program is required to finalize the inventory movements. The use of AUTHID CURRENT_USER also means that the effective privileges governing table access derive from the calling session, reinforcing the need to invoke this package only through Oracle's supported calling chain. The header comment (120.4, dated 2005) indicates the implementation has remained stable across the 12.1.1 and 12.2.2 releases.
-
PACKAGE: APPS.GME_COMPLETE_BATCH_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_COMPLETE_BATCH_PVT, status:VALID,
-
PACKAGE: APPS.GME_COMPLETE_BATCH_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_COMPLETE_BATCH_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_COMPLETE_BATCH_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_COMPLETE_BATCH_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_COMPLETE_BATCH_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_COMPLETE_BATCH_PVT, status:VALID,
-
SYNONYM: APPS.GME_PENDING_PRODUCT_LOTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GME_PENDING_PRODUCT_LOTS, status:VALID,
-
SYNONYM: APPS.GME_PENDING_PRODUCT_LOTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GME_PENDING_PRODUCT_LOTS, status:VALID,
-
PACKAGE: APPS.GME_COMPLETE_BATCH_PVT
12.2.2
-
PACKAGE: APPS.GME_COMPLETE_BATCH_PVT
12.1.1
-
PACKAGE: APPS.GME_COMPLETE_BATCH_STEP_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_COMPLETE_BATCH_STEP_PVT, status:VALID,
-
PACKAGE: APPS.GME_COMPLETE_BATCH_STEP_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_COMPLETE_BATCH_STEP_PVT, status:VALID,
-
PACKAGE: APPS.GME_PENDING_PRODUCT_LOTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_PENDING_PRODUCT_LOTS_PVT, status:VALID,
-
PACKAGE: APPS.GME_PENDING_PRODUCT_LOTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_PENDING_PRODUCT_LOTS_PVT, status:VALID,
-
PACKAGE: APPS.GME_MATERIAL_DETAIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_MATERIAL_DETAIL_PVT, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.GME_MATERIAL_DETAIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_MATERIAL_DETAIL_PVT, status:VALID,
-
PACKAGE: APPS.GME_RELEASE_BATCH_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_RELEASE_BATCH_PVT, status:VALID,
-
PACKAGE: APPS.GME_RELEASE_BATCH_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_RELEASE_BATCH_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.GME_COMPLETE_BATCH_STEP_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_COMPLETE_BATCH_STEP_PVT, status:VALID,
-
PACKAGE: APPS.GME_TRANSACTIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_TRANSACTIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_COMPLETE_BATCH_STEP_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_COMPLETE_BATCH_STEP_PVT, status:VALID,
-
PACKAGE: APPS.GME_TRANSACTIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_TRANSACTIONS_PVT, status:VALID,
-
PACKAGE: APPS.GME_MATERIAL_DETAILS_DBL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_MATERIAL_DETAILS_DBL, status:VALID,
-
PACKAGE: APPS.GME_MATERIAL_DETAILS_DBL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_MATERIAL_DETAILS_DBL, status:VALID,
-
PACKAGE BODY: APPS.GME_INCREMENTAL_BACKFLUSH_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_INCREMENTAL_BACKFLUSH_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_INCREMENTAL_BACKFLUSH_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_INCREMENTAL_BACKFLUSH_PVT, status:VALID,
-
SYNONYM: APPS.GMD_STATUS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GMD_STATUS, status:VALID,
-
PACKAGE: APPS.GME_COMMON_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_COMMON_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_RELEASE_BATCH_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_RELEASE_BATCH_PVT, status:VALID,
-
PACKAGE BODY: APPS.GME_RELEASE_BATCH_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_RELEASE_BATCH_PVT, status:VALID,
-
SYNONYM: APPS.MTL_TRANSACTIONS_INTERFACE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_TRANSACTIONS_INTERFACE, status:VALID,
-
SYNONYM: APPS.GMD_STATUS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GMD_STATUS, status:VALID,
-
SYNONYM: APPS.MTL_TRANSACTIONS_INTERFACE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_TRANSACTIONS_INTERFACE, status:VALID,
-
SYNONYM: APPS.GME_MATERIAL_DETAILS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GME_MATERIAL_DETAILS, status:VALID,
-
SYNONYM: APPS.GME_MATERIAL_DETAILS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GME_MATERIAL_DETAILS, status:VALID,
-
PACKAGE: APPS.GME_COMMON_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_COMMON_PVT, status:VALID,
-
SYNONYM: APPS.GME_BATCH_STEP_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GME_BATCH_STEP_ITEMS, status:VALID,
-
PACKAGE BODY: APPS.GME_API_MAIN
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_API_MAIN, status:VALID,
-
PACKAGE: APPS.GME_BATCH_HEADER_DBL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GME_BATCH_HEADER_DBL, status:VALID,
-
PACKAGE: APPS.GME_BATCH_HEADER_DBL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GME_BATCH_HEADER_DBL, status:VALID,
-
PACKAGE BODY: APPS.GME_API_MAIN
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_API_MAIN, status:VALID,
-
SYNONYM: APPS.GME_BATCH_STEP_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GME_BATCH_STEP_ITEMS, status:VALID,
-
PACKAGE BODY: APPS.GME_API_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GME_API_PUB, status:VALID,
-
SYNONYM: APPS.GME_BATCH_HEADER
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GME_BATCH_HEADER, status:VALID,
-
PACKAGE BODY: APPS.GME_API_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GME_API_PUB, status:VALID,
-
SYNONYM: APPS.GME_BATCH_HEADER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GME_BATCH_HEADER, status:VALID,
-
SYNONYM: APPS.MTL_TRANSACTION_LOTS_INTERFACE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_TRANSACTION_LOTS_INTERFACE, status:VALID,
-
SYNONYM: APPS.MTL_ITEM_REVISIONS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_ITEM_REVISIONS_B, status:VALID,