ITPub博客

首页 > Linux操作系统 > Linux操作系统 > PO Approve Script .

PO Approve Script .

原创 Linux操作系统 作者:ceo_lxy 时间:2013-05-14 09:48:41 0 删除 编辑
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;

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

请登录后发表评论 登录
全部评论

注册时间:2008-06-02

  • 博文量
    526
  • 访问量
    535850