【OracleEBS】 訂單暫掛問題sql解決

Iven_lin發表於2024-04-07

---查詢請購單的狀態

select *
from po_requisition_headers_all por
where por.requisition_header_id = 63578;

---修改請購單狀態為未提交審批

update po_requisition_headers_all porh
set porh.authorization_status = 'INCOMPLETE'
where porh.requisition_header_id = 63578;

---查詢採購單狀態

select *
from po_headers_all aa
where aa.po_header_id in (20430, 20431, 20306);

---修改採購單狀態為未審批

update po_headers_all aa
set aa.wf_item_type = null,
aa.wf_item_key = null,
aa.approved_flag = null,
aa.authorization_status = null
where aa.po_header_id in (20430, 20431);

相關文章