Sie sind auf Seite 1von 1

SELECT

fcr.request_date "Date Released"


, fcr.argument2 "DSNO_file"
, wdl.delivery_id "Delivery"
, fcr.argument5 "Pickup Stop ID"
, usr.user_name "User ID"
FROM
FND_CONCURRENT_REQUESTS fcr
, wsh_new_deliveries wnd
, wsh_delivery_legs wdl
, fnd_user usr
WHERE
fcr.argument5
= TO_CHAR (wdl.pick_up_stop_id)
AND wdl.delivery_id = wnd.delivery_id
and fcr.argument2 like 'DSNO%'
and fcr.requested_by = usr.user_id
order by 1 desc, 2, 3, 4;
SELECT
fcr.argument2 "DSNO_file"
, fcr.request_date "Date Released"
, wdl.delivery_id "Delivery"
, wdl.pick_up_stop_id "Pickup Stop ID"
, wts.trip_id
, wnd.asn_seq_number
, wnd.confirmed_By "User_ID"
, wnd.organization_id
, mp.organization_code
FROM
FND_CONCURRENT_REQUESTS fcr
, wsh_new_deliveries wnd
, wsh_delivery_legs wdl
, wsh_trip_stops wts
, mtl_parameters mp
WHERE
wnd.delivery_id = wdl.delivery_id
and wdl.pick_up_stop_id = wts.stop_id
and TO_CHAR (wdl.pick_up_stop_id) = fcr.argument5
AND fcr.argument2 LIKE 'DSNO%'
and wnd.organization_id = mp.organization_id;

Das könnte Ihnen auch gefallen