Search Results cs_inventory_txns




Overview

CS_INVENTORY_TXNS is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite, declared with AUTHID CURRENT_USER. Its header carries an original revision marker of 115.3, indicating an early-generation component of the Service (CS) module family. Functionally, the package sits at the boundary between Oracle Service's estimate and repair-order processing and Oracle Inventory's transaction interface. It is responsible for determining default inventory values for a service-driven material movement and for staging that movement as a record in the MTL_TRANSACTIONS_INTERFACE table, from which the standard Inventory transaction manager later processes the issue or receipt against the material transaction tables.

In practice the package allows Service users to consume or return items, including serialized and lot-controlled items, without directly invoking the Inventory open interface. It centralizes organization, subinventory, item, revision, unit of measure, and transaction-type resolution so that callers pass only business-level identifiers such as estimate, detail, and item identifiers.

Key Procedures and Functions

  • GET_DEFAULT_VALUES — Returns default values used to populate an inventory transaction. Its output parameters supply the manufacturing organization identifier, an error flag, an error message sourced from a profile option, the applicable transaction type, and a service item flexfield code. It also accepts the subinventory code and source identifier as IN OUT parameters, allowing the procedure to validate or override caller-supplied values and return the resolved values in place.
  • INSERT_MTL_INTERFACE_RECORDS — The procedure that performs the core staging work. Given a detail transaction identifier, estimate identifier, estimate detail identifier, organization identifier, inventory item identifier, unit of measure, quantity, revision, serial number, lot number, subinventory code, locator identifier, and transaction type identifier, it constructs and inserts the corresponding interface rows. It is the entry point users reach when searching for "insert_mtl_interface_records."

Tables Accessed

  • MTL_TRANSACTIONS_INTERFACE — The primary write target; staged transaction rows are inserted here for later processing.
  • MTL_TRANSACTION_LOTS_INTERFACE — Populated for lot-controlled items referenced by the lot number parameter.
  • MTL_SERIAL_NUMBERS_INTERFACE — Populated for serialized items referenced by the serial number parameter.
  • MTL_SYSTEM_ITEMS — Read to validate item attributes and resolve defaults.
  • MTL_TRANSACTION_TYPES — Read to validate or default the transaction type.
  • CS_EST_DETAILS_MTL_TXNS — The Service-side table linking estimate details to material transactions, used to correlate the interface insert with its originating estimate line.
  • MTL_MATERIAL_TRANSACTIONS_S — The sequence used to obtain transaction identifiers.
  • DUAL — Used for single-row lookups and sequence selection.

Usage Notes

CS_INVENTORY_TXNS is an internal service-layer package rather than a public Inventory API. It is most commonly invoked indirectly, either from Oracle Service forms that manage estimate details and material requirements, or from custom PL/SQL that needs to push a service-related material movement into Inventory through the standard interface. No other documented packages reference it, so callers are expected to invoke the procedures directly with valid Service and Inventory identifiers.

Because the package only stages data, a commit is required, followed by the standard Inventory transaction manager concurrent program to actually process the interface rows. Integrators should expect that failures surface through the p_Error_Flag and p_error_profile outputs of GET_DEFAULT_VALUES rather than through exceptions, and should verify item, lot, serial, and locator values against the referenced master tables before calling INSERT_MTL_INTERFACE_RECORDS.