ITPub博客

首页 > 数据库 > Oracle > PO Approve Script

PO Approve Script

原创 Oracle 作者:pan_tian 时间:2014-07-02 12:13:27 0 删除 编辑

EBS PO Approve Script

declare
  x_po_head_id number ;
begin

select po_header_id
into   x_po_head_id
from po_headers_all where
segment1 = \'&ponumber\'
and org_id = &org_id;

update po_headers_all
set authorization_status = \'APPROVED\',
approved_flag = \'Y\',
approved_date = sysdate,
last_update_date= sysdate
where po_header_id = x_po_head_id;

update po_line_locations_all
set approved_flag = \'Y\'
where po_header_id = x_po_head_id ;

commit;

end;



NOTE:You can only use this script at DEV/TEST instance to approve PO, but DO NOT use it for PROD instance.

<!-- Baidu Button BEGIN -->

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26687597/viewspace-1203612/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Journey Start
下一篇: Select for update, nowait, skip locked
请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2012-02-18

最新文章