The following lines contain the word 'select', 'insert', 'update' or 'delete':
select t.item_type
into c_item_type
from hr_api_transactions t
where transaction_id=get_item_type.p_transaction_id;
select ts.item_type
into get_item_type.c_item_type
from hr_api_transaction_steps ts
where ts.transaction_id=get_item_type.p_transaction_id
and ts.item_type is not null and rownum <=1;
select t.item_key
into get_item_key.c_item_key
from hr_api_transactions t
where transaction_id=get_item_key.p_transaction_id;
select ts.item_key
into get_item_key.c_item_key
from hr_api_transaction_steps ts
where ts.transaction_id=get_item_key.p_transaction_id
and ts.item_type is not null and rownum <=1;
select t.process_name
into get_process_name.c_process_name
from hr_api_transactions t
where transaction_id=get_process_name.p_transaction_id;
select decode(hats.api_name,
'BEN_PROCESS_COMPENSATION_W.PROCESS_API','BENEFITS',
'HR_APPLY_FOR_JOB_APP_WEB.PROCESS_API','BENEFITS',
'HR_ASSIGNMENT_COMMON_SAVE_WEB.PROCESS_API',l_category_undefined,
'HR_BASIC_DETAILS_WEB.PROCESS_API',l_category_undefined,
'HR_CAED_SS.PROCESS_API',l_category_undefined,
'HR_CCMGR_SS.PROCESS_API',l_category_undefined,
'HR_COMP_PROFILE_SS.PROCESS_API',l_category_undefined,
'HR_COMP_REVIEW_WEB_SS.PROCESS_API',l_category_undefined,
'HR_EMP_ADDRESS_WEB.PROCESS_API',l_category_undefined,
'HR_EMP_CONTACT_WEB.PROCESS_API',l_category_undefined,
'HR_EMP_MARITAL_WEB.PROCESS_API',l_category_undefined,
'HR_LOA_SS.PROCESS_API',l_category_undefined,
'HR_PAY_RATE_SS.PROCESS_API','SALARY',
'HR_PAY_RATE_SS.PROCESS_API_JAVA','SALARY',
'PER_SSHR_CHANGE_PAY.PROCESS_API','SALARY',
'PER_SSHR_CHANGE_PAY.PROCESS_API_JAVA','SALARY',
'HR_PERCMPTNCE_REVIEW_WEB.PROCESS_API',l_category_undefined,
'HR_PROCESS_ADDRESS_SS.PROCESS_API',l_category_undefined,
'HR_PROCESS_ASSIGNMENT_SS.PROCESS_API','ASSIGNMENT',
'HR_PROCESS_CONTACT_SS.PROCESS_API',l_category_undefined,
'HR_PROCESS_CONTACT_SS.PROCESS_CREATE_CONTACT_API',l_category_undefined,
'HR_PROCESS_EIT_SS.PROCESS_API',l_category_undefined,
'HR_PROCESS_PERSON_SS.PROCESS_API',l_category_undefined,
'HR_PROCESS_PHONE_NUMBERS_SS.PROCESS_API',l_category_undefined,
'HR_PROCESS_SIT_SS.PROCESS_API',l_category_undefined,
'HR_PROF_UTIL_WEB.PROCESS_API',l_category_undefined,
'HR_QUA_AWARDS_UTIL_SS.PROCESS_API',l_category_undefined,
'HR_SALARY_WEB.PROCESS_API','SALARY',
'HR_SALARY_WEB.process_API','SALARY',
'HR_SIT_WEB.PROCESS_API',l_category_undefined,
'HR_SUPERVISOR_SS.PROCESS_API','TRANSFER',
'HR_SUPERVISOR_WEB.PROCESS_API','TRANSFER',
'HR_SUPERVISOR_WEB.process_API','TRANSFER',
'HR_TERMINATION_SS.PROCESS_API','TERMINATION',
'HR_TERMINATION_SS.PROCESS_SAVE','TERMINATION',
'HR_TERMINATION_WEB.PROCESS_API','TERMINATION',
'PAY_PPMV4_SS.PROCESS_API','PAYROLL',
'PAY_US_OTF_UTIL_WEB.UPDATE_W4_INFO','PAYROLL',
'PAY_US_WEB_W4.UPDATE_W4_INFO','PAYROLL',
'PQH_PROCESS_ACADEMIC_RANK.PROCESS_API',l_category_undefined,
'PQH_PROCESS_EMP_REVIEW.PROCESS_API',l_category_undefined,
'PQH_PROCESS_TENURE_STATUS.PROCESS_API',l_category_undefined,
l_category_undefined)
into l_transaction_category
from hr_api_transaction_steps hats
where hats.transaction_step_id = p_transaction_step_id;
SELECT NVL(text_value,'N') into p_hrhd_val
FROM wf_item_attribute_values
where item_type= p_item_type and item_key = p_item_key
and NAME = 'IS_HR_HELPDESK_AGENT';
select selected_person_id
into ln_requestor_person_id
from hr_api_transactions
where transaction_id=p_transaction_id;
select creator_person_id
into ln_requestor_person_id
from hr_api_transactions
where transaction_id=p_transaction_id;
select transaction_ref_table,transaction_ref_id
into lv_transaction_ref_table,lv_transaction_ref_id
from hr_api_transactions
where transaction_id=p_transaction_id;
select main_appraiser_id
into ln_requestor_person_id
from per_appraisals
where appraisal_id=lv_transaction_ref_id;
select assignment_id into c_assignment_id from hr_api_transactions
where transaction_id = p_transaction_id;
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
-- and hr_api_transaction_steps.api_name='HR_PAY_RATE_SS.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_PROCESS_ASSIGNMENT_SS.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_SUPERVISOR_SS.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_PERSON_ABSENCE_SWI.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_TERMINATION_SS.PROCESS_API';
select sum(change_percentage)
into p_sum_percentage
from per_pay_transactions ppt
where parent_pay_transaction_id is null
and ppt.transaction_step_id = ln_step_id;
select sum(change_amount_n)
into p_sum_amount
from per_pay_transactions ppt
where parent_pay_transaction_id is null
and ppt.transaction_step_id = ln_step_id;
select api_name
into ln_api_name
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_step_id=p_transaction_step_id;
select ame_util.versiondatetostring(creation_date)
into lv_creation_date_string
from hr_api_transactions
where transaction_id=p_transaction_id;
select transaction_effective_date into lv_effective_date_string from hr_api_transactions
where transaction_id = p_transaction_id;
p_name =>'p_selected_person_sup_id'));
p_name =>'p_selected_person_old_sup_id'));
FUNCTION get_selected_person_id
(p_transaction_id IN hr_api_transactions.transaction_id%TYPE)
return varchar2 is
-- local variables
lv_procedure_name constant varchar2(22) := 'get_selected_person_id';
lv_selected_person_id varchar2(10);
lv_selected_person_id := wf_engine.GetItemAttrNumber(itemtype => lv_item_type ,
itemkey => lv_item_key,
aname => 'CURRENT_PERSON_ID',
ignore_notfound => true);
select selected_person_id into lv_selected_person_id from hr_api_transactions
where transaction_id = p_transaction_id;
return fnd_number.number_to_canonical(lv_selected_person_id);
END get_selected_person_id;
select transaction_ref_table,transaction_ref_id
into lv_transaction_ref_table,lv_transaction_ref_id
from hr_api_transactions
where transaction_id=p_transaction_id;
select per_appraisals.system_type
into lv_system_type
from per_appraisals
where appraisal_id=lv_transaction_ref_id;
select transaction_ref_table,transaction_ref_id
into lv_transaction_ref_table,lv_transaction_ref_id
from hr_api_transactions
where transaction_id=p_transaction_id;
Select prl.step_value
into ln_overall_rating
from per_appraisals appr, per_rating_levels prl
where appraisal_id = lv_transaction_ref_id
and appr.overall_performance_level_id = prl.rating_level_id;
select INFORMATION5 INTO lv_absence_type_id from hr_api_transaction_steps where transaction_step_id = ln_step_id;
select transaction_effective_date into ld_effective_date from hr_api_transactions
where transaction_id = p_transaction_id;
select ppb.name
into lv_salary_basis
from pay_element_types_f pet,
pay_input_values_f piv,
per_pay_bases ppb
where ppb.pay_basis_id=ln_pay_basis_id
and ppb.input_value_id=piv.input_value_id
and ld_effective_date between
piv.effective_start_date and
piv.effective_end_date
and piv.element_type_id=pet.element_type_id
and ld_effective_date between
pet.effective_start_date and
pet.effective_end_date;
SELECT ROUND(SUM(MONTHS_BETWEEN(
decode(sign(p_eff_date-nvl(actual_termination_date, p_eff_date)),
-1, trunc(p_eff_date), nvl(actual_termination_date, trunc(p_eff_date))),
trunc(ser.date_start))/12), 2) yos
FROM per_periods_of_service ser
WHERE ser.person_id = p_person_id
AND ser.date_start <= p_eff_date;
ln_length_of_service := getYOS(get_selected_person_id(p_transaction_id),trunc(sysdate));
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_PROCESS_PERSON_SS.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_PROCESS_ADDRESS_SS.PROCESS_API';
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name in ('HR_PROCESS_CONTACT_SS.PROCESS_API',
'HR_PROCESS_CONTACT_SS.PROCESS_CREATE_CONTACT_API')
and rownum<2;
select transaction_step_id
into ln_step_id
from hr_api_transaction_steps
where hr_api_transaction_steps.transaction_id=p_transaction_id
and hr_api_transaction_steps.api_name='HR_CAED_SS.PROCESS_API';
select start_date, end_date
from per_time_periods
where p_eff_date_csr > start_date
and p_eff_date_csr <= end_date
and payroll_id = p_payroll_id_csr;
SELECT pay_basis_id
FROM per_all_assignments_f
WHERE assignment_id = l_assignment_id
AND l_effective_date between effective_start_date
and effective_end_date
AND assignment_type = 'E';
select paf.position_id
from per_all_assignments_f paf,
per_all_people_f ppf,
per_position_structures pps, per_pos_structure_versions ppsv,
hr_api_transactions hat
where hat.transaction_id = p_transaction_id
and paf.person_id = hat.creator_person_id
and trunc(sysdate) between paf.effective_start_date and paf.effective_end_date
and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
and paf.primary_flag = 'Y'
and paf.assignment_type in ('E','C')
and paf.person_id = ppf.person_id
and ppf.business_group_id = pps.business_group_id(+)
and pps.primary_position_flag (+) = 'Y'
and pps.position_structure_id = ppsv.position_structure_id(+)
and trunc(sysdate) between ppsv.date_from(+) and nvl(ppsv.date_to(+),sysdate);