WSH Commercial Invoice – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Shipping Execution · all Shipping Execution reports
Overview
Shipping commercial invoice report showing delivery details including shipped items, quantities, unit costs, extended costs, ship-from/ship-to addresses, freight information, and bill of lading details. Blitz version of the Oracle standard Commercial Invoice (XML) concurrent program WSHRDINV_XML. DB package: WSH_WSHRDINV_XMLP_PKG
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
Trip Stop, Stop Planned Depart Date (Low), Stop Planned Depart Date (High), Freight Carrier, Warehouse, Delivery Name, Currency Code, Item Display, DFF Display, Print Customer Item
Oracle EBS Tables Used
wsh_carrier_services, wsh_delivery_assignments_v, wsh_delivery_details, wsh_bols_rd_v, hz_party_site_uses, hz_party_sites, hz_parties, hz_cust_site_uses_all, hz_cust_acct_sites_all, hz_cust_account_roles, hz_relationships, mtl_system_items_vl, mtl_categories_kfv, mtl_item_categories, mtl_category_sets_vl, oe_order_lines_all, oke_k_deliverables_b, wsh_freight_costs, wsh_freight_cost_types, wsh_new_deliveries, wsh_locations, mtl_categories, mtl_default_category_sets, fnd_territories_tl, org_organization_definitions, bom_inventory_components, dual
Report Categories
Related Reports
ONT Orders and Lines 11i, WSH Shipping/Delivery Transactions, ONT Orders and Lines, PPF_WP3_OM_DETAILS
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | WSH Commercial Invoice 28-Mar-2026 011331.xlsx |
| Blitz Report™ XML Import | WSH_Commercial_Invoice.xml |
| SQL Source | WSH Commercial Invoice.sql |
| Full Report on Enginatics | www.enginatics.com/reports/wsh-commercial-invoice/ |
Case Study & Technical Analysis: WSH Commercial Invoice
Executive Summary
The WSH Commercial Invoice report is a shipping commercial invoice for Oracle Shipping Execution deliveries. It lists the delivery details of each delivery, with shipped items, quantities, unit costs, extended costs, ship-from and ship-to addresses, freight and bill of lading details. It is the Blitz version of the Oracle standard Commercial Invoice (XML) concurrent program WSHRDINVXML, and its database logic is held in the WSHWSHRDINVXMLPPKG package. Export and logistics teams use it to prepare the commercial invoice that accompanies an international shipment, with the commodity classes that customs requires. It runs in Excel through Blitz Report.
Business Challenge
- International shipping documents: A cross-border shipment needs a commercial invoice that shows the goods, their values and their origin for customs clearance.
- Value per item: The unit and extended cost of each shipped item must be shown in the invoice currency and in the unit of measure of the shipment.
- Commodity codes: Customs classification depends on the commodity class of each item, which must appear on the invoice.
- Consignee and carrier details: The invoice carries the ship-from and ship-to addresses, the contact, the carrier, the bill of lading and the freight cost of the delivery.
The Solution
- Lists each delivery with its ship date, currency, shipping method, gross weight, number of boxes, ports of loading and discharge, waybill and bill of lading numbers.
- Shows the ship-from and ship-to addresses with their countries, the ship-to customer or consignee and the ship-to contact.
- Shows, for each item, its description, commodity class, shipped quantity, unit of measure, secondary quantity, unit cost and extended cost.
- Shows the total freight cost of the delivery and the warehouse from the organization definition of the delivery line.
Technical Architecture (High Level)
Primary Tables
WSH_NEW_DELIVERIES: the delivery header, with ship method, weights, ports, waybill and currency.WSH_DELIVERY_DETAILS: the delivery lines, with items, quantities, source codes, locations and unit prices.WSH_DELIVERY_ASSIGNMENTS_V: the assignment of each detail to its delivery.WSH_LOCATIONS: the ship-from and ship-to locations, with their addresses and countries.WSH_CARRIER_SERVICES,WSH_BOLS_RD_VandWSH_FREIGHT_COSTS: the ship method, bill of lading and freight costs.OE_ORDER_LINES_ALL: the order line that is the source of a delivery line, with its selling price and component sequence.HZ_CUST_SITE_USES_ALL,HZ_CUST_ACCT_SITES_ALL,HZ_PARTY_SITES,HZ_PARTIESandHZ_CUST_ACCOUNT_ROLES: the ship-to customer and contact.MTL_SYSTEM_ITEMS_VL,MTL_ITEM_CATEGORIES,MTL_CATEGORIES_KFV,MTL_CATEGORY_SETS_VLandMTL_DEFAULT_CATEGORY_SETS: the item description and commodity class category.FND_TERRITORIES_TL,ORG_ORGANIZATION_DEFINITIONSandBOM_INVENTORY_COMPONENTS: country names, the warehouse and the components flagged for shipping documents.
Logical Relationships
WSH_NEW_DELIVERIESis joined toWSH_DELIVERY_ASSIGNMENTS_Vand then toWSH_DELIVERY_DETAILSon the delivery detail id.- Ship-from and ship-to locations are joined to
WSH_LOCATIONS, and their countries toFND_TERRITORIES_TLin the user’s language. - The commodity class lists the categories of the item in the WSH_COMMODITY_CODE category set, from
MTL_ITEM_CATEGORIESandMTL_CATEGORIES_KFV. - The unit cost comes from the order line selling price for OE lines, the agreement deliverable price for OKE lines, or another delivery line of the same source for other sources.
- A component is included when it is flagged for shipping documents on the bill of material.
Parameters & Filtering
- Trip Stop, Stop Planned Depart Date (Low) and (High): select deliveries by trip stop and planned departure date.
- Freight Carrier and Warehouse: select deliveries by carrier and shipping organization.
- Delivery Name and Currency Code: select one delivery, or the deliveries in one currency.
- Item Display and Print Customer Item: control how the item and the customer’s item number are shown.
Performance & Optimization
- The delivery is the driving table, so the trip stop, carrier and warehouse parameters narrow the population before the item and address lookups run.
- Unit cost and extended cost use scalar lookups on the order line and the agreement deliverable, evaluated per detail line rather than per delivery.
- The total freight cost is a correlated subquery on the freight cost table for each delivery, which excludes detail-level costs.
- Filtering by Delivery Name or Trip Stop keeps the grouped output small, since the report groups every item line by delivery and category.
FAQ
Q: Which costs appear on the commercial invoice? A: Each item shows its unit cost and extended cost, derived from the order line selling price or the agreement price. The total freight cost is shown for the delivery.
Q: How are commodity classes determined? A: They are the categories assigned to the item in the WSH_COMMODITY_CODE category set. Items without one show a blank commodity class.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH