Search Results gml_batch_tmp
Overview
GML_BATCH_TMP is a temporary table owned by the GML schema within Oracle E-Business Suite, serving the Process Manufacturing Logistics (GML) product family. Its documented purpose is to hold transient data used during batch reservation processing. In Oracle Process Manufacturing (OPM) and discrete distribution flows, reservation logic must evaluate large volumes of on-hand batch inventory, allocate quantity against sales order or delivery demand lines, and then reconcile the results back into permanent reservation and delivery structures. GML_BATCH_TMP provides the staging ground for that intermediate working set, keyed by a SESSION_ID so that concurrent users and concurrent processes do not collide within the shared table.
Because the table is populated and consumed within a single logical operation, it is not intended as a system of record. Rows are typically inserted by a reservation or pick-release process, read for validation and allocation decisions, and then either transferred to persistent reservation tables or purged. Administrators and developers should treat this object as implementation detail rather than reporting infrastructure.
From a Data Vault modeling perspective, the ETRM metadata classifies GML_BATCH_TMP heuristically as standalone. This is a modeling suggestion: the table sits largely outside the core hub-and-link network of permanent master and transactional data, with only one documented foreign key relationship. It behaves more like a transient staging satellite than a business hub or link.
Key Information Stored
The documented physical schema contains 20 columns. The most significant include:
- SESSION_ID — the concurrency control key that isolates one reservation run from another; queries against this table almost always filter on it.
- LINE_ID and DOC_ID — identify the demand line and source document (typically a sales order or delivery) being reserved.
- ITEM_ID — the inventory item under consideration for reservation.
- WHSE_CODE — the warehouse in which inventory is being evaluated.
- BATCH_RES_ID — the foreign key to GML_BATCH_SO_RESERVATIONS, linking temporary working rows to the persistent reservation record.
- BATCH_NO, BATCH_ID, BATCH_LINE_ID, BATCH_TYPE, BATCH_STATUS — batch identity and attribute columns used to qualify which lots are eligible.
- START_DATE and PLAN_CMPLT_DATE — batch scheduling dates used in date-driven eligibility logic.
- PLANNED_QTY, PLANNED_QTY2, RESERVED_QTY, RESERVED_QTY2, LINE_RESERVED_QTY, LINE_RESERVED_QTY2 — the paired primary and secondary quantity columns that capture planned versus reserved amounts at both batch and line level.
- DELIVERY_DETAIL_ID — the delivery detail association used when reservations feed shipping execution.
No unique index is documented in the metadata, and the table is explicitly classified as standalone, so no surrogate primary key is asserted. BATCH_RES_ID functions as the principal business reference back to the permanent reservation entity.
Common Use Cases and Queries
Because GML_BATCH_TMP is session-scoped, diagnostics revolve around identifying active sessions and inspecting the allocation they produced. A typical inspection query retrieves all working rows for a session, joined to the persistent reservation for correlation:
- Session audit: SELECT * FROM GML.GML_BATCH_TMP WHERE SESSION_ID = :session_id;
- Reservation correlation: SELECT t.ITEM_ID, t.BATCH_NO, t.RESERVED_QTY, r.* FROM GML.GML_BATCH_TMP t JOIN GML.GML_BATCH_SO_RESERVATIONS r ON r.BATCH_RES_ID = t.BATCH_RES_ID WHERE t.SESSION_ID = :session_id;
- Allocation variance: compare PLANNED_QTY against RESERVED_QTY to detect shortfalls in batch availability during pick or ship confirmation.
- Leak detection: rows that persist after a process completes indicate an unclean termination and can be purged by SESSION_ID.
Reporting use cases are limited to process diagnostics and troubleshooting rather than recurring analytics, given the table's transient nature.
Related Objects
The documented relationship data identifies one foreign key. Significant related objects include:
- GML_BATCH_SO_RESERVATIONS — referenced through GML_BATCH_TMP.BATCH_RES_ID; the persistent sales order batch reservation record.
- Sales order and delivery detail tables referenced by DOC_ID, LINE_ID, and DELIVERY_DETAIL_ID.
- Inventory item and warehouse definitions referenced by ITEM_ID and WHSE_CODE.
- Batch master and batch line tables referenced by BATCH_ID and BATCH_LINE_ID.
Together these objects supply the demand, supply, and batch context consumed by the reservation process that GML_BATCH_TMP temporarily materializes.
-
Table: GML_BATCH_TMP
12.1.1
owner:GML, object_type:TABLE, fnd_design_data:GML.GML_BATCH_TMP, object_name:GML_BATCH_TMP, status:VALID, product: GML - Process Manufacturing Logistics , description: Temporary Table for Batch Reservations , implementation_dba_data: GML.GML_BATCH_TMP ,
-
Table: GML_BATCH_TMP
12.2.2
owner:GML, object_type:TABLE, fnd_design_data:GML.GML_BATCH_TMP, object_name:GML_BATCH_TMP, status:VALID, product: GML - Process Manufacturing Logistics , description: Temporary Table for Batch Reservations , implementation_dba_data: GML.GML_BATCH_TMP ,
-
SYNONYM: APPS.GML_BATCH_TMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GML_BATCH_TMP, status:VALID,
-
VIEW: GML.GML_BATCH_TMP#
12.2.2
owner:GML, object_type:VIEW, object_name:GML_BATCH_TMP#, status:VALID,
-
VIEW: GML.GML_BATCH_TMP#
12.2.2
-
VIEW: APPS.GML_SO_RESERVATIONS_V
12.1.1
-
SYNONYM: APPS.GML_BATCH_TMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GML_BATCH_TMP, status:VALID,
-
VIEW: APPS.GML_SO_RESERVATIONS_V
12.2.2
-
12.1.1 DBA Data
12.1.1
-
TABLE: GML.GML_BATCH_TMP
12.2.2
owner:GML, object_type:TABLE, fnd_design_data:GML.GML_BATCH_TMP, object_name:GML_BATCH_TMP, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
View: GML_SO_RESERVATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_SO_RESERVATIONS_V, object_name:GML_SO_RESERVATIONS_V, status:VALID, product: GML - Process Manufacturing Logistics , description: View for Batch Reservations , implementation_dba_data: APPS.GML_SO_RESERVATIONS_V ,
-
TABLE: GML.GML_BATCH_TMP
12.1.1
owner:GML, object_type:TABLE, fnd_design_data:GML.GML_BATCH_TMP, object_name:GML_BATCH_TMP, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
View: GML_SO_RESERVATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_SO_RESERVATIONS_V, object_name:GML_SO_RESERVATIONS_V, status:VALID, product: GML - Process Manufacturing Logistics , description: View for Batch Reservations , implementation_dba_data: APPS.GML_SO_RESERVATIONS_V ,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPS.GML_SO_RESERVATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_SO_RESERVATIONS_V, object_name:GML_SO_RESERVATIONS_V, status:VALID,
-
VIEW: APPS.GML_SO_RESERVATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_SO_RESERVATIONS_V, object_name:GML_SO_RESERVATIONS_V, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
eTRM - GML Tables and Views
12.2.2
description: Tax reporting classes. ,
-
eTRM - GML Tables and Views
12.1.1
description: Tax reporting classes. ,
-
eTRM - GML Tables and Views
12.2.2
description: Tax reporting classes. ,
-
12.2.2 DBA Data
12.2.2
-
eTRM - GML Tables and Views
12.1.1
description: Tax reporting classes. ,
-
12.1.1 DBA Data
12.1.1