SQL Scripts
SQL Scripts
Update aporeqheader
set status = '&Desired_Status'
where order_id = '&requisition_number';
Update aporeqdetail
set status = '&Desired_Status'
where order_id = '&requisition_number';
Commit;
Update apoheader
set status = '&Desired_Status'
where order_id like '&po_number';
Update apodetail
set status = '&Desired_Status'
where order_id = '&po_number';
Commit;
select distinct(col1_value)
FROM awftask WHERE wf_status='ACT' AND col1_Descr = 'TransNo' AND
col2_descr = 'SuppID'
and col1_value not in (select cast(voucher_no as char) from asuvicrtrans) and
element_type = 'IIN' order by 1
Begin transaction GT
UPDATE awftask SET wf_status='FIN' WHERE wf_status='ACT' AND col1_Descr =
'TransNo' AND col2_descr = 'SuppID'
AND col1_value NOT IN (SELECT cast(voucher_no as char) FROM asuvicrtrans)
and element_type ='IIN';
commit;