Results for “check_reopen”
10 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
APPS.WSH_DELIVERY_VALIDATIONS is a PL/SQL package in the Oracle E-Business Suite Shipping Execution (WSH) module, declared with AUTHID CURRENT_USER and owned by the APPS schema. Its principal business function is to evaluate the state and completeness of delivery-related entities — deliveries, trips, ship sets, arrival sets, ship models, packing, tendering, and planning — and to return validation flags to callers. It serves as a shared validation layer used across the logistics transaction flows, and its procedures are explicitly intended for use by the Transportation Planning and Execution (TPA) selector, WSH_TPA_SELECTOR_PKG.DELIVERYTP, as indicated by the TPA public name and default TPS annotations attached to individual procedures in the source header. The package file is identified as WSHDEVLS.pls, with header version information indicating maintenance well into the 12.1.x release stream.
Key Procedures and Functions
The package exposes 44 documented procedures and functions. The header excerpt documents the first several in detail, while referenced metadata names additional validation entry points. Documented procedures include:
- CHECK_SHIP_SET — Determines whether a ship set is together, returning a validity flag indicating TRUE when the set is intact and FALSE otherwise.
- CHECK_SMC — Determines whether a ship model is complete, returning TRUE when complete and FALSE when not.
- CHECK_ARRIVAL_SET — Determines whether an arrival set is complete, returning a corresponding validity flag.
- CHECK_DEL_NOT_I_T — Validates that a delivery is not in transit, supporting status gating for subsequent operations.
- CHECK_RELEASED_LINES — Verifies released delivery detail lines, governing whether the delivery may proceed to the next stage.
- CHECK_DEL_UNPACKED — Confirms the delivery is unpacked, typically required before certain modifications.
- CHECK_DEL_OVERFILLED and CHECK_DEL_UNDERFILLED — Evaluate container or delivery filling against expected quantities.
- CHECK_DEL_FINAL_DEST — Validates the final destination assigned to the delivery.
- CHECK_CALENDAR — Assesses calendar availability for scheduling-related determinations.
- CHECK_PLAN and CHECK_UNPLAN — Determine whether planning or unplanning actions are permissible for the delivery.
- CHECK_TENDER_LOAD — Validates tendering and load conditions prior to carrier tender.
- CHECK_ASSIGN_TRIP and CHECK_UNASSIGN_TRIP — Govern trip assignment and removal of deliveries from trips.
- CHECK_PACK — Validates packing conditions for the delivery.
- CHECK_CONFIRM, CHECK_REOPEN, CHECK_INTRANSIT, and CHECK_CLOSE — Enforce the delivery lifecycle state machine, restricting confirmation, reopening, in-transit transitions, and closure based on the current status of the delivery and its associated records.
The user-searched term check_intransit corresponds directly to the CHECK_INTRANSIT business rule, which arbitrates whether a delivery may be placed into or moved out of the in-transit state.
Tables Accessed
The package reads and writes a focused set of WSH, MTL, and OE tables through APPS synonyms. Delivery state and assignment data are drawn from WSH_NEW_DELIVERIES, WSH_DELIVERY_DETAILS, and WSH_DELIVERY_ASSIGNMENTS; trip and carrier context comes from WSH_TRIPS, WSH_CARRIERS, and WSH_CARRIER_SERVICES; organization and item attributes derive from MTL_SYSTEM_ITEMS, MTL_PARAMETERS, MTL_SECONDARY_INVENTORIES, MTL_ITEM_LOCATIONS, MTL_UNITS_OF_MEASURE, MTL_LOT_NUMBERS, and MTL_SERIAL_NUMBERS_TEMP. Order-line references originate from OE_ORDER_LINES_ALL, and operational configuration is read from WSH_SHIPPING_PARAMETERS. These reads supply the fact base for each validation, while writes, where present, typically update delivery or trip state flags.
Usage Notes
WSH_DELIVERY_VALIDATIONS is invoked internally by Shipping Execution forms, concurrent programs, and workflow activities, and is referenced by 28 other packages, making it a foundational dependency in the WSH stack. Its procedures are registered as TPA selectors via the annotations in the source, meaning the Transportation Planning and Execution engine calls them through WSH_TPA_SELECTOR_PKG.DELIVERYTP during trip and delivery processing. Custom code should observe the NOCOPY OUT parameters for validity and return status, and should treat the procedures as validation gates rather than state-changing business APIs. Because the package is AUTHID CURRENT_USER, execution is governed by the privileges of the invoking schema, so custom callers require appropriate grants on the underlying tables and on the package itself.