銷售訂單行booked後
具體操作步驟
### Steps to Reproduce ###
ed
picked
Souliton:
Dwon the script from Metalink
REM $Header: single
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
set ver off
set feed off
set serveroutput on size
Prompt
accept order_line_id number prompt
spool &order_line_id
col dtime format a
select to_char(sysdate
Declare
l_line_id number := &order_line_id;
l_user_id number;
l_resp_id number;
l_resp_appl_id number;
l_wf_exists varchar
Begin
update oe_order_lines_all
set ordered_quantity =
where line_id = l_line_id;
Begin
select number_value
into l_user_id
from wf_item_attribute_values
where item_type =
and item_key = to_char(l_line_id)
and name =
select number_value
into l_resp_id
from wf_item_attribute_values
where item_type =
and item_key = to_char(l_line_id)
and name =
select number_value
into l_resp_appl_id
from wf_item_attribute_values
where item_type =
and item_key = to_char(l_line_id)
and name =
Exception
When No_Data_Found Then
l_wf_exists :=
End;
If l_wf_exists =
fnd_global
wf_engine
);
End If;
update wsh_delivery_assignments
set delivery_id = null
where delivery_detail_id in
(select wdd
from wsh_delivery_details wdd
where wdd
and wdd
and oel
and oel
and oel
and released_status <>
update wsh_delivery_details
set released_status =
where delivery_detail_id in
(select wdd
from wsh_delivery_details wdd
where wdd
and wdd
and oel
and oel
and oel
and released_status <>
Exception
when others then
rollback;
dbms_output
End;
/
Prompt
Prompt ===========================================================
Prompt You must enter COMMIT to Save changes or ROLLBACK to Revert
Prompt ===========================================================
spool off
……………………………………………………………………………………
$ sqlplus apps/apps @single
SQL*Plus: Release
(c) Copyright
Connected to:
Oracle
With the Partitioning option
JServer Release
Enter LINE_ID of the Line to Cancel :
Script run at Date/Time
===========================================================
You must enter COMMIT to Save changes or ROLLBACK to Revert
===========================================================
SQL> commit;
SQL>
<span lang=
From:http://tw.wingwit.com/Article/program/Oracle/201311/18413.html