The following lines contain the word 'select', 'insert', 'update' or 'delete':
select NAME into l_BUSINESSAREA
from zpb_business_areas_vl
where BUSINESS_AREA_ID = l_BUSINESSAREAID;
select distinct display_name
into l_NewDispName
from wf_users
where name = l_thisRecipient;
update zpb_analysis_cycle_tasks
set status_code = 'ERROR',
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_DATE = SYSDATE,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where task_id = l_TaskID;
update zpb_ANALYSIS_CYCLES
set status_code = 'ERROR',
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_DATE = SYSDATE,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where ANALYSIS_CYCLE_ID = l_InstanceID;
update zpb_analysis_cycle_instances
set last_update_date = sysdate,
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where instance_ac_id = l_InstanceID;
select NAME into l_BUSINESSAREA
from zpb_business_areas_vl
where BUSINESS_AREA_ID = l_BUSINESSAREAID;
select DISTINCT ACTIVITY_RESULT_CODE, ACTIVITY_RESULT_DISPLAY_NAME
into l_result_code, l_req_resultDisp
from wf_item_activity_statuses_v
where item_type= itemtype
and item_key= itemkey
and ACTIVITY_RESULT_CODE
in ('ERROR', 'CANCELLED', 'TERMINATED', 'WARNING');
SELECT COUNT(r.STATUS_CODE)
INTO l_count
FROM Fnd_Concurrent_Requests r
WHERE r.REQUEST_ID = l_request_id
and r.PROGRAM_APPLICATION_ID = l_appID
and r.REQUESTED_BY = l_ownerID;
SELECT distinct R.STATUS_CODE, R.LOGFILE_NAME, CONCURRENT_PROGRAM_ID
into l_req_status, l_reqlog, l_concprgID
FROM Fnd_Concurrent_Requests r
WHERE r.REQUEST_ID = l_request_id
and r.PROGRAM_APPLICATION_ID = l_appID
and r.REQUESTED_BY = l_ownerID;
select USER_CONCURRENT_PROGRAM_NAME
into l_ConcName
from fnd_concurrent_programs_vl
where APPLICATION_ID = 210
and CONCURRENT_PROGRAM_ID = l_concprgID;
update zpb_analysis_cycle_tasks
set status_code = 'ERROR',
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_DATE = SYSDATE,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where task_id = l_TaskID;
update zpb_ANALYSIS_CYCLES
set status_code = 'ERROR',
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_DATE = SYSDATE,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where ANALYSIS_CYCLE_ID = l_InstanceID;
update zpb_analysis_cycle_instances
set last_update_date = sysdate,
LAST_UPDATED_BY = fnd_global.USER_ID,
LAST_UPDATE_LOGIN = fnd_global.LOGIN_ID
where instance_ac_id = l_InstanceID;