The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT 'X'
INTO l_status
FROM ar_cmgt_credit_requests
WHERE credit_request_id = p_credit_request_id
AND status NOT IN ('WITHDRAW', 'PROCESSED');
SELECT 'X'
INTO l_ctr
FROM ar_lookups
WHERE lookup_type = 'AR_CMGT_APP_WITHDRAW_REASONS'
AND lookup_code = p_withdrawl_reason_code;
-- Now update the status of credit request and case folder
UPDATE ar_cmgt_credit_requests
SET status = 'WITHDRAW'
WHERE credit_request_id = p_credit_request_id;
UPDATE ar_cmgt_case_folders
SET status = 'WITHDRAW'
WHERE credit_request_id = p_credit_request_id;