今天通过修改Oracle 数据库解决的一个ERP不能打出验收单问题.[1]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

/*
  
采购要打印验收单,但是在PR, PO , 验收单上都没有输入ITEM!
  
过程是从P R 改起, 共改3 ,最终解决问题.
*/

 

select *
from po_headers_all
where segment1=20600172;

 

select *
from po_requisition_headers_all
where creation_date>to_date('2006-01-01','yyyy-mm-dd');

 

select *
from PO_requisition_headers_all
where segment1=10501804 ;
--
先找到和点收单,PO的请购单

 

--查找到请购单的Id

 

select requisition_header_id
from po_requisition_headers_all
 where segment1=10501804

 

--96570

 

--update PR
update po_requisition_lines_all
set item_id=51132
where requisition_header_id=96570;

 

--view update
select  item_id
from po_requisition_lines_all
where requisition_header_id=96570;

 

--commit
commit;

 


--
同上,查找出?P0
select po_header_id
from po_headers_all
where segment1=20600172
--66397

 

select item_id, po_line_id,po_lines_all.*
from po_lines_all
where po_header_id=66397;

本文关键:今天通过修改Oracle 数据库解决的一个ERP不能打出验收单问题.
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top