Search Results oe_order_misc_util




Overview

APPS.OE_ORDER_MISC_UTIL is a utility PL/SQL package body in the Oracle E-Business Suite Order Management module. It provides reusable helper logic that other Order Management packages, forms, and concurrent programs invoke to resolve item-related and unit-of-measure information without duplicating that logic across the codebase. The package is classified as a UTIL (utility) API under the APPS schema, meaning it is not an externally versioned public interface but an internal building block used throughout the order capture and order maintenance stack. Its two documented entry points, GET_ITEM_INFO and CONVERT_UOM, address the recurring requirement to translate between the several identifiers that Oracle Order Management maintains for an item — internal identifiers, customer-specific identifiers, and the human-readable concatenated segments — and to normalize quantities expressed in differing units of measure. The package is referenced by fourteen other packages, confirming its role as a shared dependency within the Order Management schema. The source header indicates the file has been under change control since at least release 12.0 (version 120.1, dated 2006) and carries a noship designation, reflecting its intended internal scope.

Key Procedures and Functions

  • GET_ITEM_INFO — Returns the ordered item, its description, and the corresponding inventory item based on an item identifier type supplied by the caller. The procedure accepts an identifier type along with the relevant item and customer context, and returns the resolved item values together with the standard FND API return status, message count, and message data out parameters. Its internal logic branches on the identifier type: when the type resolves to internal ('INT'), the ordered item, inventory item, and description are derived from the concatenated segments and description of the master organization's item record; when the type is customer-oriented ('CUST'), the resolution path consults customer item cross-reference data instead. The procedure supports a default organization context so that callers may operate against a specific operating unit.
  • CONVERT_UOM — Performs unit-of-measure conversion for order quantities, allowing callers to express or compare amounts across differing units of measure. It relies on the standard Oracle UOM conversion facilities so that pricing, shipping, and inventory validation logic operates on consistent quantities.

Tables Accessed

The package reads from four documented tables, accessed through APPS synonyms:

  • MTL_CUSTOMER_ITEMS — Holds customer-specific item definitions, providing the customer item number and associated attributes used when resolving item information for a customer item identifier.
  • MTL_CUSTOMER_ITEM_XREFS — Stores the cross-reference between customer items and the corresponding internal inventory items, enabling GET_ITEM_INFO to translate a customer-facing item into its internal equivalent.
  • MTL_CROSS_REFERENCES — The general cross-reference table mapping items across different reference types, used to resolve alternate identifiers.
  • MTL_CROSS_REFERENCE_TYPES — Defines the valid cross-reference types, qualifying which reference mappings are relevant for a given resolution request.

In addition, the source references MTL_SYSTEM_ITEMS_VL for the internal identifier path, retrieving concatenated segments and description from the master organization. These lookups are read-only; the package does not persist item data.

Usage Notes

OE_ORDER_MISC_UTIL is typically invoked indirectly. Order Management forms, the order import and order maintenance flows, and other Order Management packages call GET_ITEM_INFO when they must present or validate an item in the context of a sales order line, particularly where the customer has supplied their own item number rather than the internal item. CONVERT_UOM is called wherever a quantity must be reconciled between the order's unit of measure and the inventory or pricing unit of measure. Because the package is an internal utility rather than a supported public API, customizations should avoid calling it directly where a supported Order Management API exists; nonetheless, the wide reference count of fourteen dependent packages indicates that it is a stable and frequently reused component of the Order Management code base. Debug tracing is emitted through oe_debug_pub when the debug level is enabled, which supports diagnosis of item resolution failures in order capture. The procedures return status through the standard FND_API return status convention, so callers should always inspect the return status rather than relying solely on exception handling.