Results for “bulk_insert_details”

10 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

WSH_BULK_PROCESS_PVT is a private PL/SQL package body in the APPS schema that provides the core processing engine for bulk operations within the Oracle E-Business Suite shipping execution module (WSH). It is classified as a PVT (private) API, meaning its procedures are not intended as a public integration interface but rather as internal implementation logic invoked by other WSH packages and concurrent programs. The package is primarily responsible for the mass creation and validation of delivery details and delivery assignments, supporting high-volume shipping workflows such as bulk pick release, bulk shipment confirmation, and bulk delivery population. By centralizing array-based (bulk) DML and validation, the package avoids row-by-row processing overhead and enforces consistent business rules across all bulk entry points in the shipping module.

Key Procedures and Functions

The documented package exposes eight procedures and functions, each supporting a distinct phase of bulk delivery processing:

  • CREATE_DELIVERY_DETAILS — Creates delivery detail records in bulk from incoming array data, forming the primary row-generation step for bulk delivery population.
  • BULK_INSERT_DETAILS — Performs the array-based insert of delivery detail rows using bulk DML constructs (FORALL), persisting validated data to the delivery details table.
  • VALIDATE_LINES — Validates each incoming detail line against business rules before persistence, identifying rejected rows and returning errors.
  • VALIDATE_MANDATORY_INFO — Verifies that all mandatory attributes required for a delivery detail are populated, supporting the validation routine above.
  • EXTEND_TABLES — Extends internal PL/SQL collection structures (tables) to accommodate the incoming data volume, preparing in-memory arrays for processing.
  • SET_MESSAGE — Manages error and informational message handling, using FND_MESSAGE and FND_MSG_PUB to surface validation failures to the calling process.
  • GET_OPM_QUANTITY — Retrieves process manufacturing (OPM) quantity values, supporting integration with Oracle Process Manufacturing for quantity determination.
  • CALC_SERVICE_MODE — Calculates service mode attributes, likely deriving service-level shipping behavior for the delivery detail rows.

Tables Accessed

The package reads and writes the following documented tables through APPS synonyms:

  • WSH_DELIVERY_DETAILS — The primary table holding delivery detail lines; the package inserts and validates rows here.
  • WSH_DELIVERY_DETAILS_S — The sequence used to generate unique delivery detail identifiers during bulk insert.
  • WSH_DELIVERY_ASSIGNMENTS_S — The sequence supporting delivery assignment record creation, referenced by callers searching for this object.
  • PLITBLM — A standard Oracle EBS PL/SQL table used for internal array/message handling within the package logic.

Additional supporting packages referenced include WSH_DELIVERY_DETAILS_SPLITTER, WSH_DELIVERY_ASSIGNMENTS_V, WSH_UTIL_CORE, WSH_UTIL_VALIDATE, WSH_DEBUG_SV, and the WSH group packages (WSH_BULK_TYPES_GRP, WSH_CARRIERS_GRP, OE_WSH_BULK_GRP), which provide lookups and validation services.

Usage Notes

WSH_BULK_PROCESS_PVT is not referenced by any database object at the schema level, confirming its private nature; it is called from six other WSH packages and from concurrent programs that drive bulk shipping operations. Typical invocation scenarios include bulk delivery creation concurrent requests, pick-release batch processing, and shipping confirmations where large volumes of delivery detail rows must be validated and inserted efficiently. Because it is a private API, custom code should avoid direct invocation; instead, developers should use the public WSH APIs (such as WSH_DELIVERY_PUB or the delivery assignment public interfaces) which internally delegate to this package. DBAs and developers troubleshooting bulk shipping failures can trace errors to the validation and message routines here, particularly SET_MESSAGE, VALIDATE_LINES, and VALIDATE_MANDATORY_INFO. The package is valid in both 12.1.1 and 12.2.2, though 12.2.x deployments should confirm no online-patching overrides alter the private logic.