Search Results insert_lot_trx




Overview

APPS.INV_TRX_MGR is the PL/SQL package that provides the programmatic entry point to the Oracle Inventory Transaction Manager. Its central role is to process batches of pending inventory transactions that have been staged in the MTL_MATERIAL_TRANSACTIONS_TEMP table, applying the same validation and processing logic historically executed by the older inltpu.ppc routine. In the Oracle EBS 12.1.1 and 12.2.2 environments, this package is the component that converts staged, unposted transaction records into fully validated material transactions that can subsequently be costed and posted to the general ledger. The package header carries a CVS identifier dating to 2005 (INVJTRXS.pls 120.1), reflecting that the interface has been stable across many releases of the E-Business Suite. Its classification in ETRM is OTHER, indicating it is neither a pure public API nor a purely internal utility, but operational processing code invoked during transaction resolution.

Key Procedures and Functions

  • PROCESS_TRX_BATCH — The primary entry point and the procedure that implements the batch-processing logic. It accepts a header identifier (the TRANSACTION_HEADER_ID grouping the records to be processed), commit and atomicity flags, and a business flow code used to determine which label is printed. It returns a processing message and a status flag indicating success or error. When invoked in atomic mode, a single failing record rolls back the entire batch; in non-atomic mode, only the failing row's changes are rolled back.
  • GENERATE_SERIALS — A supporting routine associated with serial-controlled processing, used within the inventory transaction flow to produce serial number records required by transactions that reference serial-tracked items.
  • VALIDATE_SERIALS — A companion routine that validates serial numbers before or during batch processing, ensuring that serial-controlled transactions satisfy Inventory's serial integrity rules.

These procedures work together: serial and lot data are inserted into the temporary transaction tables by the INV_TRX_UTIL_PUB insertion routines, and PROCESS_TRX_BATCH then consumes and validates that staged data.

Tables Accessed

The documented, central table is MTL_MATERIAL_TRANSACTIONS_TEMP, which holds unprocessed transaction records grouped by TRANSACTION_HEADER_ID. INV_TRX_MGR reads this staging table, validates the records, and moves them toward the permanent MTL_MATERIAL_TRANSACTIONS structure. The ETRM metadata does not enumerate additional referenced tables via APPS synonyms, though in practice serial and lot validation touches the corresponding serial and lot control tables. The referenced-by relationship (one other package) confirms the package is consumed by higher-level transaction processing callers rather than standing alone.

Usage Notes

INV_TRX_MGR is typically invoked from custom or extension code rather than directly by an end user. The documented example shows a Java client making three sequential calls: INSERT_LINE_TRX and INSERT_LOT_TRX (both in INV_TRX_UTIL_PUB) to stage the line and lot records and to retrieve the generated temporary transaction ID, followed by INV_TRX_MGR.PROCESS_TRX_BATCH to process the batch. This places it firmly in the custom-integration and interface space, where external systems push inventory transactions into EBS. Callers must manage commit behavior and choose atomic versus per-row processing based on their error-handling requirements. Because the package carries the legacy label-printing business flow code, it remains tied to Inventory's standard transaction resolution and reporting behavior in both 12.1.1 and 12.2.2. Custom code should always stage records first and let this package perform the authoritative processing rather than inserting directly into the permanent transaction tables.