Search Results wsh_document_instances
Overview
WSH_DOCUMENT_INSTANCES is a Shipping Execution (WSH) table that stores document instances generated for shipping transactions. In Oracle E-Business Suite 12.1.1 and 12.2.2, the object serves as the central repository for the printable and legally significant transport documents produced during the outbound logistics cycle — bills of lading, packing slips, commercial invoices, and manifests. Each row represents a single instance of a document tied to a specific entity (such as a delivery, trip, or container) and records its lifecycle attributes: the sequence assigned, the print status, the final print date, and the point-of-delivery confirmation state.
Because the table carries a large number of optional, denormalized document-body attributes (67 columns in ETRM 12.2.2, including shipper and carrier signature blocks, export references, and hazardous-material declarations), it functions as a document master record rather than a transactional line. The metadata characterizes it heuristically as a standalone type from a Data Vault perspective; in practice, this suggests modeling as a hub on the natural document instance identifier, with descriptive attributes treated as satellite content. Only one foreign key is documented — DOC_SEQUENCE_CATEGORY_ID to WSH_DOC_SEQUENCE_CATEGORIES — so referential integration with shipping lines is largely driven at the application layer rather than by database constraints.
Key Information Stored
The surrogate primary key is DOCUMENT_INSTANCE_ID, uniquely enforced by both WSH_DOCUMENT_INSTANCES_PK and the unique index WSH_DOCUMENT_INSTANCES_U1. This column is the sole documented business-key candidate; no other column is guaranteed unique by index. The most significant descriptive columns are:
- ENTITY_NAME / ENTITY_ID — polymorphic reference identifying the shipping entity the document describes (e.g., delivery or trip).
- DOCUMENT_TYPE — the class of document (bill of lading, packing slip, and so on).
- DOC_SEQUENCE_CATEGORY_ID — the sole documented foreign key, linking to WSH_DOC_SEQUENCE_CATEGORIES for numbering rules.
- SEQUENCE_NUMBER — the generated document number within the assigned category.
- STATUS and FINAL_PRINT_DATE — lifecycle state and the timestamp of the final (legal) print.
- POD_FLAG, POD_BY, POD_DATE, EXPECTED_POD_DATE — point-of-delivery confirmation status and expected/actual dates.
- CARRIED_BY, PORT_OF_LOADING, PORT_OF_DISCHARGE, BOOKING_NUMBER, SERVICE_CONTRACT — transport and booking details.
- SHIPPER_SIGNED_BY, SHIPPER_DATE, CARRIER_SIGNED_BY, CARRIER_DATE, BOL_DATE_ISSUED — signature and issuance audit fields.
- REASON_OF_TRANSPORT, DESCRIPTION, COD_AMOUNT, COD_CURRENCY_CODE, COD_REMIT_TO — freight terms and cash-on-delivery instructions.
- SHIPPER_HM_BY, CARRIER_HM_BY and their dates — hazardous-material acknowledgements.
The standard WHO columns (CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN) plus the program context columns (PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE, REQUEST_ID) provide audit and concurrent-request traceability. Fifteen ATTRIBUTE columns and ATTRIBUTE_CATEGORY are available for extensibility.
Common Use Cases and Queries
Typical reporting includes retrieving printed documents for a given delivery, auditing point-of-delivery confirmations, and reconciling document sequences against their categories. A representative query joins the document instance to its numbering category and filters by entity:
- List all documents for a delivery:
SELECT document_instance_id, document_type, sequence_number, status FROM wsh_document_instances WHERE entity_name = 'DELIVERY' AND entity_id = :delivery_id; - Identify documents not yet finally printed:
... WHERE final_print_date IS NULL AND status <> 'CANCELLED'; - POD audit:
SELECT pod_flag, pod_by, pod_date, expected_pod_date FROM wsh_document_instances WHERE document_type = 'BOL'; - Sequence reconciliation: join DOC_SEQUENCE_CATEGORY_ID to WSH_DOC_SEQUENCE_CATEGORIES to compare generated numbers with assigned ranges.
Related Objects
The following objects are most significant for integration and reporting:
- WSH_DOC_SEQUENCE_CATEGORIES — the only documented FK target (via DOC_SEQUENCE_CATEGORY_ID), defining numbering rules.
- WSH_DELIVERIES — parent delivery referenced through ENTITY_NAME/ENTITY_ID for most bill-of-lading records.
- WSH_TRIPS and WSH_TRIP_STOPS — trip-level manifests that reference document instances.
- WSH_DELIVERY_ASSIGNMENTS — links deliveries to trips and is commonly traversed when resolving documents.
- WSH_NEW_DELIVERIES and the Shipping Execution document-generation concurrent programs — populate this table.
- WSH_DOCUMENT_ATTRIBUTES / document template tables — supply the printing metadata consumed alongside each instance.
Because foreign keys beyond DOC_SEQUENCE_CATEGORY_ID are not enforced at the database level, joins on ENTITY_ID must apply ENTITY_NAME as a discriminator to avoid cross-entity collisions.
-
Table: WSH_DOCUMENT_INSTANCES
12.1.1
owner:WSH, object_type:TABLE, fnd_design_data:WSH.WSH_DOCUMENT_INSTANCES, object_name:WSH_DOCUMENT_INSTANCES, status:VALID, product: WSH - Shipping Execution , description: Document Instances , implementation_dba_data: WSH.WSH_DOCUMENT_INSTANCES ,
-
Table: WSH_DOCUMENT_INSTANCES
12.2.2
owner:WSH, object_type:TABLE, fnd_design_data:WSH.WSH_DOCUMENT_INSTANCES, object_name:WSH_DOCUMENT_INSTANCES, status:VALID, product: WSH - Shipping Execution , description: Document Instances , implementation_dba_data: WSH.WSH_DOCUMENT_INSTANCES ,
-
APPS.WSH_DOCUMENT_PVT SQL Statements
12.1.1
-
APPS.WSH_MBOLS_PVT SQL Statements
12.2.2
-
APPS.WSH_DOCUMENT_PVT SQL Statements
12.2.2
-
VIEW: APPS.WSH_PACK_SLIP_V
12.1.1
-
VIEW: APPS.WSH_DOCUMENT_INSTANCES_DFV
12.2.2
-
VIEW: APPS.WSH_DOCUMENT_INSTANCES_DFV
12.1.1
-
APPS.WSH_MBOLS_PVT SQL Statements
12.1.1
-
VIEW: APPS.WSH_PACK_SLIP_V
12.2.2
-
VIEW: APPS.WSH_PACKING_SLIPS_DB_V
12.1.1
-
SYNONYM: APPS.WSH_DOCUMENT_INSTANCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSH_DOCUMENT_INSTANCES, status:VALID,
-
SYNONYM: APPS.WSH_DOCUMENT_INSTANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSH_DOCUMENT_INSTANCES, status:VALID,
-
VIEW: APPS.OKE_DELIVERABLE_SHIPPING_V
12.1.1
-
VIEW: WSH.WSH_DOCUMENT_INSTANCES#
12.2.2
owner:WSH, object_type:VIEW, object_name:WSH_DOCUMENT_INSTANCES#, status:VALID,
-
VIEW: APPS.WSHFV_DOCUMENT_BOL
12.1.1
-
VIEW: APPS.WSH_PACKING_SLIPS_DB_V
12.2.2
-
VIEW: APPS.WSHBV_DOCUMENT_PACKSLIP
12.2.2
-
VIEW: APPS.WSHBV_DOCUMENT_PACKSLIP
12.1.1
-
VIEW: APPS.WSHFV_DOCUMENT_PACKSLIP
12.1.1
-
VIEW: APPS.WSHFV_DOCUMENT_BOL
12.2.2
-
VIEW: APPS.OKE_DELIVERABLE_SHIPPING_V
12.2.2
-
VIEW: APPS.WSHFV_DOCUMENT_PACKSLIP
12.2.2
-
VIEW: APPS.WSHBV_DOCUMENT_BOL
12.2.2
-
VIEW: APPS.WSHBV_DOCUMENT_BOL
12.1.1
-
VIEW: APPS.WSH_PURGE_SET_V
12.2.2
-
APPS.WSH_SHIPPING_INFO SQL Statements
12.2.2
-
VIEW: APPS.CLN_XML_DELIVERIES_V
12.1.1
-
VIEW: APPS.CLN_XML_DELIVERIES2_V
12.2.2
-
VIEW: APPS.CLN_XML_DELIVERIES_V
12.2.2
-
View: WSH_PACK_SLIP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_PACK_SLIP_V, object_name:WSH_PACK_SLIP_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_PACK_SLIP_V ,
-
TABLE: WSH.WSH_DOCUMENT_INSTANCES
12.1.1
owner:WSH, object_type:TABLE, fnd_design_data:WSH.WSH_DOCUMENT_INSTANCES, object_name:WSH_DOCUMENT_INSTANCES, status:VALID,
-
APPS.WSH_PURGE SQL Statements
12.1.1
-
APPS.WSH_SHIPPING_INFO SQL Statements
12.1.1
-
VIEW: APPS.OKE_DTS_SHIPPING_V
12.1.1
-
VIEW: APPS.FTE_FPA_BOLS_V
12.2.2
owner:APPS, object_type:VIEW, object_name:FTE_FPA_BOLS_V, status:VALID,
-
VIEW: APPS.FTE_FPA_BOLS_V
12.1.1
owner:APPS, object_type:VIEW, object_name:FTE_FPA_BOLS_V, status:VALID,
-
VIEW: WSH.WSH_DOCUMENT_INSTANCES#
12.2.2
-
TABLE: WSH.WSH_DOCUMENT_INSTANCES
12.2.2
owner:WSH, object_type:TABLE, fnd_design_data:WSH.WSH_DOCUMENT_INSTANCES, object_name:WSH_DOCUMENT_INSTANCES, status:VALID,
-
APPS.WSH_PURGE SQL Statements
12.2.2
-
VIEW: APPS.CLN_XML_DELIVERIES2_V
12.1.1
-
PACKAGE BODY: APPS.WSH_DOCUMENT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WSH_DOCUMENT_PUB, status:VALID,
-
VIEW: APPS.WSH_DOCUMENT_INSTANCES_DFV
12.1.1
owner:APPS, object_type:VIEW, object_name:WSH_DOCUMENT_INSTANCES_DFV, status:VALID,
-
PACKAGE BODY: APPS.WSH_DOCUMENT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WSH_DOCUMENT_PUB, status:VALID,
-
APPS.WSH_DOCUMENT_PUB SQL Statements
12.1.1
-
APPS.WSH_DOCUMENT_PUB SQL Statements
12.2.2
-
VIEW: APPS.WSH_POD_CARGO_V
12.2.2
-
PACKAGE: APPS.WSH_DOCUMENT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WSH_DOCUMENT_PUB, status:VALID,
-
PACKAGE: APPS.WSH_DOCUMENT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WSH_DOCUMENT_PUB, status:VALID,
-
View: WSH_PACKING_SLIPS_DB_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_PACKING_SLIPS_DB_V, object_name:WSH_PACKING_SLIPS_DB_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_PACKING_SLIPS_DB_V ,