Shipping exceptions in Oracle Shipping Execution (for example a quantity change, an item not available, or a hold on a delivery) are logged in WSH_EXCEPTIONS and can stop a line from shipping or interfacing to Inventory. The query below takes an order line ID and returns each of its delivery details with the item, the inventory interface flag and a Y/N flag that says whether an open (not CLOSED) exception exists for it.
SQL: delivery details with shipping exception flag
select
organization_id,
INV_INTERFACED_FLAG,
SOURCE_HEADER_NUMBER,
SOURCE_LINE_NUMBER,
TRANSACTION_ID,
(
select
segment1
from
mtl_system_items_b msib
where
msib.organization_id = wdd.organization_id
and msib.inventory_item_id = wdd.inventory_item_id
) item,
decode (
nvl(
(
select
count(1)
from
apps.wsh_exceptions
where
STATUS != 'CLOSED'
and delivery_detail_id = wdd.delivery_detail_id
),
0
),
0,
'N',
'Y'
) shipping_exception,
wdd.*
from
apps.wsh_delivery_details wdd
where
source_line_id = 12440256;
Notes
- Replace
source_line_id = 12440256withOE_ORDER_LINES_ALL.LINE_ID. INV_INTERFACED_FLAG: Y interfaced to Inventory, N not interfaced, P pending. Lines stuck at N or P after ship confirm need the Interface Trip Stop program.- To read the exceptions themselves, query
WSH_EXCEPTIONSbyDELIVERY_DETAIL_IDand look atEXCEPTION_NAME,STATUSandMESSAGE. - Exceptions can be viewed and closed from the Shipping Exceptions window in the Shipping Transactions form.
Which table stores shipping exceptions in Oracle EBS?
WSH_EXCEPTIONS, linked to delivery details, deliveries or trip stops.
What does INV_INTERFACED_FLAG mean on WSH_DELIVERY_DETAILS?
It shows whether the shipped line has been interfaced to Inventory: Y yes, N no, P partially or pending.
Related queries
- Oracle R12 Shipping Status and Delivery Status Query
- Sales Order Line Status Query in Oracle Apps (as Shown in the Form)
- Query to Get Sales Order Header and Line Details in Oracle Apps R12
- Query to Find Sales Orders That Are Shipped but Not Invoiced
- TCA Query: Customer Party Site and Address by Location in Oracle R12
- Query to Check Shipping Exceptions on a Sales Order Line
- Sales Order Line Status Query in Oracle Apps (as Shown in the Form)
- Query to Get Price List Details in Oracle EBS (QP Tables)
- Query to Find All Public APIs of Oracle Apps Modules
- Oracle R12 Shipping Status and Delivery Status Query
- Query to Get Customer Tax Registration Details in Oracle R12
- Query to Get Sales Order Header and Line Details in Oracle Apps R12
- Query to Find Serial Number Material Transaction Details in Oracle Inventory
- Query to Find Period Status for Inventory, GL, Purchasing, Payables, Receivables and Fixed Assets
- Query to Find Sales Orders That Are Shipped but Not Invoiced
- Query to Get Customer Bank Account Details in Oracle R12 (Oracle Payments)
- AutoInvoice Grouping Columns in RA_INTERFACE_LINES_ALL (OM to AR)
- Query to Find Ship Sets and Fulfillment Sets in Oracle Order Management
