Search Results p_item_from




Overview

INV_MGD_POS_ITEM_MDTR is an item mediator package belonging to the Inventory Position View and Export subsystem in Oracle E-Business Suite. Its declared purpose, per the source header, is to act as the "Item Mediator" for the Inventory Position View, a reporting and inquiry facility that presents on-hand inventory positions across one or more organizations. The package resolves the set of inventory items that should appear in such a view by evaluating an item number range, a category restriction, an organization list, and a master organization identifier supplied by the caller.

The package was originally created on 05-SEP-2000 by Paolo Juvara and has been maintained through a series of defect fixes, notably a performance change on 21-NOV-2002 that restricted debug logging to cases where the relevant profile option is enabled, and further corrections referenced as bugs 4357322 (19-AUG-2005) and 4951736 (09-MAR-2006). It is classified in ETRM as an OTHER API rather than a public business API, which reflects its internal, mediator role within the inventory position reporting stack.

Key Procedures and Functions

The package exposes a single documented program unit, BUILD_ITEM_LIST, declared PUBLIC. Its role is to build the list of items to be displayed by the Inventory Position view or export.

  • BUILD_ITEM_LIST — Accepts an organization list, a master organization identifier, an item number range defined by a "from" and "to" value, a category identifier, and returns a collection of items. The user search term p_item_from corresponds to the lower bound of the item number range parameter documented for this procedure, paired with a matching upper bound. The procedure's stated pre-condition is that the organization list parameter is not empty; its post-condition is that the returned item collection is not empty. Discrepancies in the wording of the condition comments do not alter the documented contract.

No other procedures or functions are documented for this package body. The package also declares a package name constant and a debug flag global variable populated from a profile option lookup, supporting controlled diagnostic output rather than functional behavior.

Tables Accessed

The package operates against four documented base tables, all accessed through APPS synonyms:

  • MTL_SYSTEM_ITEMS_KFV — The key flexfield view over system items, used to resolve item identifiers and descriptive item attributes for the selected organizations and item range.
  • MTL_ITEM_CATEGORIES — The item-to-category assignment table, used to restrict the item list to the category supplied by the caller.
  • MTL_DEFAULT_CATEGORY_SETS — Used to determine the functional default category set applicable to the organizations in scope, ensuring category filtering is applied against the correct category set.
  • DUAL — Used for single-row expressions and control-flow constructs typical of PL/SQL-based list assembly.
  • PLITBLM — The PL/SQL integer table type used to materialize and pass the resulting item identifier list between program units.

Usage Notes

INV_MGD_POS_ITEM_MDTR is invoked indirectly rather than by end users directly. It is referenced by one other package in the ETRM inventory, indicating that it is called from a higher-level inventory position view or export routine that supplies the organization list, master organization, item range, and category criteria, then consumes the returned item table. Typical entry points are the Oracle Inventory position inquiry and export flows, including those surfaced through concurrent program-based extraction of inventory position data.

Because the procedure depends on the organization list being non-empty and returns a populated item table, customizations that call it must supply a valid organization collection and a master organization identifier that is consistent with those organizations. Category filtering depends on the default category set resolved for the organizations in scope; where no default category set exists, category-restricted calls may return no rows. The debug flag honors the AFLOG_ENABLED profile option, so diagnostic output is suppressed unless logging is explicitly enabled in the environment. As an OTHER-classified internal package, it should be used with the understanding that its signature is not part of Oracle's supported public API surface and may change across releases such as 12.1.1 and 12.2.2.