Search Results mtl_material_transactions_s




Overview

CS_INVENTORY_TXNS is a PL/SQL package body owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It belongs to the Oracle Service (CS) module and is classified as an OTHER API, meaning it is not a formally published public interface but is relied upon internally for service-related inventory movements. The package's central purpose is to translate service estimate or service order demand into material transaction records that Oracle Inventory can process. In effect, it is the bridge between service-facing business data and the Inventory transaction interface, allowing service transactions to be staged and then validated, costed, and posted through standard inventory processing rather than being written directly to inventory transaction tables.

The package is named for inventory transactions because its output consists of rows prepared for MTL_TRANSACTIONS_INTERFACE, the staging table that feeds the inventory transaction manager. Its dependency on CS_EST_DETAILS_MTL_TXNS indicates that the originating demand is typically tied to service estimate details, which the package converts into properly attributed inventory interface records.

Key Procedures and Functions

Two procedures are documented for this package body:

  • GET_DEFAULT_VALUES — Retrieves defaulting and context information required before an interface record can be created. This typically includes deriving values from profile options (via FND_PROFILE and FND_GLOBAL session context), such as the operating unit, organization, user, and login context, along with defaults that are not explicitly supplied by the caller. It supplies the baseline attributes that subsequent processing relies upon.
  • INSERT_MTL_INTERFACE_RECORDS — Constructs and inserts rows into the material transactions interface based on service estimate detail data. This procedure assembles the transaction attributes, resolves item and serial/lot information, applies the transaction type, and writes the staged interface records that Inventory will later process.

Tables Accessed

The package reads and writes a set of Inventory and Service tables, all through APPS synonyms:

  • CS_EST_DETAILS_MTL_TXNS — the service-side source of material transaction detail used to build interface rows.
  • MTL_MATERIAL_TRANSACTIONS_S — referenced for transaction sequencing and related transaction identity handling; this is the sequence source used when material transaction numbers are allocated.
  • MTL_TRANSACTIONS_INTERFACE — the primary staging table into which the package inserts records for subsequent inventory processing.
  • MTL_TRANSACTION_LOTS_INTERFACE and MTL_SERIAL_NUMBERS_INTERFACE — staging tables for lot and serial controlled items, populated so that lot/serial detail accompanies the main interface row.
  • MTL_SYSTEM_ITEMS — used to validate and resolve item attributes such as item master organization and control flags.
  • MTL_TRANSACTION_TYPES — supplies valid transaction type identifiers that determine the nature of the movement (for example, issue or receipt).
  • DUAL — used for single-row scalar lookups.

Usage Notes

CS_INVENTORY_TXNS is not referenced by any other database object, which indicates it is invoked directly by application-layer code — most commonly service-related forms, workflows, or concurrent programs that process service estimate or service order material lines — rather than being called by other PL/SQL packages. Because the package only stages records in the interface tables, it must be followed by the standard Inventory transaction manager concurrent program, which validates and posts the staged rows to MTL_MATERIAL_TRANSACTIONS. Customizations that call this package should therefore respect the same sequencing, observe the GET_DEFAULT_VALUES prerequisite before INSERT_MTL_INTERFACE_RECORDS, and rely on profile option context being correctly initialized. Since the API classification is OTHER, support and upgrade impact should be assessed carefully before extending its use.