Results for “po_shipments”

50+ results




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

Overview

PO_SHIPMENTS_SV4 is a server-side PL/SQL package owned by the APPS schema in Oracle E-Business Suite Purchasing. The "SV" naming convention identifies it as a supplementary view or set-based validation package that supports the shipment (line location) entity within the purchasing document model. Rather than exposing a public API to external callers, PO_SHIPMENTS_SV4 provides internal validation and deletion logic consumed by the core purchasing transaction packages, most notably PO_DOCUMENT_UPDATE_PVT, PO_HEADERS_SV1, PO_LINES_SV, and PO_RELEASES_SV.

Its principal business role is to protect the integrity of shipment records on purchase orders, releases, and RFQs when lines or shipments are deleted or modified. Because a shipment row in PO_LINE_LOCATIONS is the anchor point for downstream distributions, pricing adjustments, and receipt activity, removal of a shipment must be gated by validation checks. PO_SHIPMENTS_SV4 centralizes those checks so that every deletion path applies the same rules.

Key Procedures and Functions

The documented interface exposes procedures and functions including NAME, VALIDATE_DELETE_LINE_LOC, and PROCESS_DELETE_LINE_LOC. Only purpose is described here; parameter lists are not published in the metadata.

  • VALIDATE_DELETE_LINE_LOC — Performs the pre-deletion validation for a line location (shipment) record. It determines whether the shipment is eligible for deletion given its associated distributions, pricing differentials, and parent line or header state. Callers use the outcome to either proceed with deletion or raise a business-rule exception.
  • PROCESS_DELETE_LINE_LOC — Executes the deletion of the line location and its dependent child rows once validation has succeeded. This is the mutating counterpart to VALIDATE_DELETE_LINE_LOC and is responsible for cascading removal of dependent shipment-level data.
  • NAME — Serves an auxiliary or identifying role within the package, consistent with the "SV" (supplementary view) pattern used elsewhere in the purchasing schema.

Package-level code blocks (the package specification and body) contain additional private logic and SQL statements supporting these entry points.

Tables Accessed

The package operates against the core purchasing tables through APPS synonyms:

  • PO_LINE_LOCATIONS / PO_LINE_LOCATIONS_ALL — The shipment (line location) records that are the primary subject of validation and deletion.
  • PO_LINES_ALL — Parent line rows used to confirm the line's status and document context.
  • PO_HEADERS_ALL — Header-level state, including document type and approval status, which conditions whether shipment deletion is permitted.
  • PO_DISTRIBUTIONS — Accounting distributions that must be inspected and removed in step with a deleted shipment.
  • PO_PRICE_DIFFERENTIALS — Price adjustment records tied to the shipment that affect whether it can be safely deleted.
  • PLITBLM — A purchasing line-location temporary/reference table used during processing.

Usage Notes

PO_SHIPMENTS_SV4 is an internal helper package rather than a formally published open interface. It is invoked indirectly whenever a purchasing document is updated through the standard user interface or through the public document update APIs. In Oracle EBS 12.1.1 and 12.2.2 the Purchasing forms (for purchase orders and releases) rely on this call chain when a user removes a shipment line, ensuring that validation fires before any physical delete occurs.

Custom extensions that programmatically delete shipments should not call PO_SHIPMENTS_SV4 directly where a supported public API exists; instead, deletion should be routed through the documented document-update packages (for example PO_DOCUMENT_UPDATE_PVT) so that the validation and cascade logic in this package is applied consistently. Direct dependency on this package should be limited to diagnostics and dependency analysis, since its interface is internal and subject to change across releases.