The following lines contain the word 'select', 'insert', 'update' or 'delete':
select nvl(Information1,Information3)
into lv_startDate
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select nvl(Information2,Information4)
into lv_EndDate
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select Information5
into lv_AbsenceTypeId
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select name
into lv_AbsenceType
from PER_ABS_ATTENDANCE_TYPES_TL
where ABSENCE_ATTENDANCE_TYPE_ID=lv_AbsenceTypeId
and language = userenv('LANG');
select Information6
into lv_AbsenceCategory
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select Information7
into lv_AbsenceHoursDuration
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select Information8
into lv_AbsenceDaysDuration
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
select hr_general.decode_lookup('PQH_SS_TRANSACTION_STATUS',
decode(status,'RI','C',
'RIS','S',
'RO','Y',
'ROS','Y',
'YS','Y',
status))
into lv_approvalStatus
from hr_api_transactions
where transaction_id=p_transaction_id;
select decode(status,'RI','C',
'RIS','S',
'RO','Y',
'ROS','Y',
'YS','Y',
status)
into lv_approvalStatusCode
from hr_api_transactions
where transaction_id=p_transaction_id;
select (SELECT meaning
from fnd_lookup_values
where lookup_type ='ABSENCE_STATUS'
and fnd_lookup_values.lookup_code=Information9
and language = userenv('LANG')
)
into lv_AbsenceStatus
from hr_api_transaction_steps
where transaction_id=p_transaction_id;
function isUpdateAllowed(p_transaction_id in number,
p_absence_attendance_id in number,
p_transaction_status in varchar2) return varchar2
IS
c_proc constant varchar2(30) := 'isUpdateAllowed';
lv_UpdateAllowed varchar2(30);
decode (hat.status,'W', 'HrUpdateEnabled',
'S','HrUpdateEnabled',
'RI','HrUpdateEnabled',
'HrUpdateDisabled')
*/
-- need to revisit with the common code for handling update
-- based on the current transaction owner
-- for now this will only allow for transaction owner to update
if(p_transaction_id is not null) then
if(hr_transaction_swi.istxnowner(p_transaction_id,fnd_global.employee_id)
and p_transaction_status in ('W','S','RI','RIS')) then
lv_UpdateAllowed := 'HrUpdateEnabled';
lv_UpdateAllowed := 'HrUpdateDisabled';
return lv_UpdateAllowed;
end isUpdateAllowed;
SELECT 'Y'
INTO l_exists
from fnd_attached_documents
where entity_name=lv_entity_name
and pk1_value=lv_pkey1
AND ROWNUM = 1;
select status,item_type,item_key
into lv_status,lv_item_type,lv_item_key
from hr_api_transactions
where transaction_id=p_transaction_id;
select item_type, item_key
into lv_item_type,lv_item_key
from wf_items
where user_key=p_transaction_id
and rownum<2;
select notification_id
into ln_notification_id
FROM WF_ITEM_ACTIVITY_STATUSES IAS
WHERE ias.item_type = lv_item_type
and ias.item_key = lv_item_key
and ias.activity_status = 'NOTIFIED'
and ias.notification_id is not null
and rownum<=1;
select (SELECT meaning
from fnd_lookup_values
where lookup_type ='ABSENCE_STATUS'
and fnd_lookup_values.lookup_code=Information9
and language = userenv('LANG')
)
into lv_AbsenceStatus
from hr_api_transaction_steps
where transaction_id=p_transaction_id;