Search Results validate_ct_wt_for_deliverynum




Overview

WMS_CATCH_WEIGHT_PVT is a private (PVT) PL/SQL package body owned by APPS in Oracle E-Business Suite, associated with the Warehouse Management System (WMS) product family. Its purpose is to encapsulate the catch-weight logic used in warehouse execution and outbound shipping: determining whether an item is tracked by a secondary (catch) weight or quantity, retrieving the secondary default quantity and unit of measure, validating the secondary quantity against tolerances, and propagating secondary quantities to LPNs, deliveries, shipping records, and split lines. The package carries the standard EBS private API header (WMSVCWTB.pls, version 120.4.12010000.1) and exposes 21 documented procedures and functions. It follows EBS API conventions — a compatibility check against fnd_api.compatible_api_call, message stack handling through fnd_msg_pub, and debug tracing through inv_log_util.trace gated by the INV_DEBUG_TRACE profile option. The internal constant g_precision is set to 5, reflecting the rounding precision applied to catch-weight arithmetic. The package is referenced by five other packages, indicating it is a shared utility layer rather than an entry-point API.

Key Procedures and Functions

Tables Accessed

The package reads and writes the core inventory and shipping transaction tables through APPS synonyms. Item and UOM configuration comes from MTL_SYSTEM_ITEMS, MTL_SYSTEM_ITEMS_B, MTL_SYSTEM_ITEMS_KFV, and MTL_UNITS_OF_MEASURE. On-hand and reservation context is drawn from MTL_ONHAND_QUANTITIES_DETAIL and MTL_RESERVATIONS. Location, lot, status, and subinventory data come from MTL_ITEM_LOCATIONS, MTL_LOT_NUMBERS, MTL_MATERIAL_STATUSES, and MTL_SECONDARY_INVENTORIES. Transaction records are read or staged in MTL_MATERIAL_TRANSACTIONS_S, MTL_MATERIAL_TRANSACTIONS_TEMP, and MTL_TRANSACTION_LOTS_TEMP. Organization defaults are taken from MTL_PARAMETERS, and move-order context from MTL_TXN_REQUEST_LINES.

Usage Notes

Because this is a PVT package, it is not intended for direct customer invocation. It is called by the WMS and Shipping Execution (WSH) runtime flows — mobile receiving, packing, LPN management, and delivery/split processing — and by the five dependent packages documented in ETRM. Customizations that need catch-weight validation, particularly tolerance checking via CHECK_SECONDARY_QTY_TOLERANCE, should invoke the corresponding public API rather than this private package, since private APIs carry no compatibility guarantee across releases. Debug output for these routines is controlled by the INV_DEBUG_TRACE profile option.