po误“最终关闭”,现在需要开票,如何处理

标准功能限定最终关闭后不允许再有后续的业务处理。以下提供非ORACLE标准的更新处理,请知悉:

1、更新可能会带来未知的影响;

2、需要在测试环境先进行测试后,符合业务要求后再在正式环境实施。

1) Find po_header_id:
--gml_po_line_locations_all_t1
select po_header_id 
from po_headers_all 
where segment1 ='300118'
and org_id='7927'--'<the PO number in question>'; 

2) Update closed_code from FINALLY CLOSED to CLOSED:

a)
update po_headers_all 
set closed_code = 'CLOSED' 
where po_header_id ='350194'-- <the po header id from step 1>
and closed_code = 'FINALLY CLOSED' ;

commit;

b) 
update po_lines_all 
set closed_code = 'CLOSED' 
where po_header_id ='350194'-- <the po header id from step 1>
and closed_code = 'FINALLY CLOSED';

commit;

c) 
update po_line_locations_all 
set closed_code = 'CLOSED' 
where po_header_id ='350194'-- <the po header id from step 1>
and closed_code = 'FINALLY CLOSED';

commit;

d)
delete from po_action_history 
where object_id = '350194'-- <the po header id from step 1> 
and action_code = 'FINALLY CLOSE'

commit;

3) Go to Purchasing Order Entry form. Query the PO. Navigate to 
Special -> Control. Open the PO.

以上请参考。谢谢!

猜你喜欢

转载自www.cnblogs.com/fjzsl/p/9159238.html