My Oracle Support Banner

How To Delete Orphaned Delivery Headers (Doc ID 726626.1)

Last updated on DECEMBER 04, 2019

Applies to:

Oracle Shipping Execution - Version 11.5.9 to 11.5.10.2 [Release 11.5 to 11.5.10]
Information in this document applies to any platform.
Checked for relevance on 18-Aug-2010


Goal

Since implementation of 11i  accumulated a number of "orphaned" delivery
headers. The delivery headers are  at status "Open" However there are no delivery detail lines
assigned. Run the following sql query to identify the headers.

select wnd.name delivery,
wnd.status_code,
wnd.creation_date,
wnd.organization_id,
wda.delivery_assignment_id
from wsh.wsh_new_deliveries wnd,
wsh.wsh_delivery_assignments wda
where wnd.delivery_id = wda.delivery_id (+)
and wnd.organization_id = 21
and wnd.status_code = 'OP'
and nvl(wda.delivery_assignment_id, 0) = 0

Once the headers are identified ,then   go into the forms and simply delete them.

However this is timley process. IS there a script that will delete
these without having to delete one at a time through the forms?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.