The following lines contain the word 'select', 'insert', 'update' or 'delete':
select ALLOW_RELEASE_FLAG, instance_code
from MRP_AP_APPS_INSTANCES_ALL
where instance_id = p_instance_id
and nvl(A2M_DBLINK, '-1') = p_dblink;
' select old_need_by_date,'||
' new_need_by_date,'||
' po_header_id,'||
' po_line_id,'||
' po_number,'||
' action'||
' from msc_purchase_order_interface'||p_dblink||
' where sr_instance_id = '||p_instance_id||
' and batch_id ='||p_batch_id ||
' order by action, po_number ';
x_need_by_dates_old.delete;
X_need_by_dates.delete;
X_po_line_ids.delete;
X_shipment_nums.delete;
x_estimated_pickup_dates.delete;
x_ship_methods.delete;
sql_stmt:= ' delete from msc_purchase_order_interface'||p_dblink||
' where sr_instance_id = :p_instance_id '||
' and batch_id = :p_batch_id ';
select nvl(poll.promised_date,poll.need_by_date),1
from po_line_locations_all poll
where poll.po_line_id = v_line_id
and poll.po_header_id = v_header_id
and poll.shipment_num = nvl(v_ship_num,poll.shipment_num);
SELECT org_id
FROM po_headers_all
WHERE po_header_id = p_po_header_id;
select line_num
from po_lines_all
where po_line_id = p_line_id;
v_promised_date.delete;
v_rec.delete;