Search Results wsh_document_instances_u1




Overview

WSH.WSH_DOCUMENT_INSTANCES is a transactional table in the Oracle E-Business Suite Shipping (WSH) schema that stores instances of shipping documents such as Bills of Lading, Packing Slips, and Commercial Invoices. Each row represents a single generated document tied to an underlying business entity — most commonly a delivery leg — and captures the header-level legal, logistics, and carrier information required to print and reprint that document. The table is a core component of the Oracle Shipping Execution document generation and Bill of Lading features, and is used extensively by shipping confirmation, delivery, and transportation reporting flows.

Under the heuristic Data Vault classification provided in the ETRM metadata, this object is modeled as standalone rather than a hub, link, or satellite. This suggests it functions as an independent transactional record whose foreign key footprint is minimal — it references only WSH_DOC_SEQUENCE_CATEGORIES via DOC_SEQUENCE_CATEGORY_ID — and it is not centrally joined through a business-key relationship to other entities in the shipping model.

Key Information Stored

The table comprises 67 documented columns. The most significant are:

Common Use Cases and Queries

Typical use cases include reprint control for delivery documents, proof-of-delivery reporting, Bill of Lading reconciliation, and carrier/customs auditing. A frequent query pattern retrieves all documents for a given delivery leg:

  • SELECT DOCUMENT_INSTANCE_ID, DOCUMENT_TYPE, SEQUENCE_NUMBER, STATUS FROM WSH.WSH_DOCUMENT_INSTANCES WHERE ENTITY_NAME = 'WSH_DELIVERY_LEGS' AND ENTITY_ID = :delivery_leg_id;
  • SELECT * FROM WSH.WSH_DOCUMENT_INSTANCES WHERE DOCUMENT_TYPE = 'BOL' AND TRUNC(FINAL_PRINT_DATE) = TRUNC(SYSDATE);
  • SELECT ai.*, sc.SEQUENCE_CATEGORY_NAME FROM WSH.WSH_DOCUMENT_INSTANCES ai JOIN WSH.WSH_DOC_SEQUENCE_CATEGORIES sc ON ai.DOC_SEQUENCE_CATEGORY_ID = sc.DOC_SEQUENCE_CATEGORY_ID;

The nonunique indexes WSH_DOCUMENT_INSTANCES_N1 (ENTITY_NAME, ENTITY_ID, DOCUMENT_TYPE, STATUS), N2 (POD_FLAG), and N3 (SEQUENCE_NUMBER) support the most common lookup and reporting predicates, and should be leveraged in custom queries to avoid full scans.

Related Objects

  • WSH.WSH_DOC_SEQUENCE_CATEGORIES — Referenced via DOC_SEQUENCE_CATEGORY_ID; defines document numbering categories.
  • WSH_DELIVERY_LEGS — Primary source entity, referenced polymorphically via ENTITY_NAME / ENTITY_ID.
  • WSH_DELIVERIES — Parent delivery records associated with document instances through the delivery leg linkage.
  • FND_LOOKUPS — Source of DOCUMENT_TYPE lookup codes.
  • FND_DOCUMENTS / FND_ATTACHED_DOCUMENTS — Attachment context for generated document outputs.
  • WSH_DOCUMENT_PRINT_PVT / WSH_DOCUMENT_PRINT_PKG — Shipping Execution APIs used to generate and reprint document instances.
  • WSH_DELIVERY_DETAILS — Provides line-level detail reported on packing slips and BOLs.