The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id,
pbg.legislation_code
from per_business_groups_perf pbg
, psp_external_effort_lines pee
where pee.external_effort_line_id = p_external_effort_line_id
and pbg.business_group_id = pee.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, psp_external_effort_lines pee
where pee.external_effort_line_id = p_external_effort_line_id
and pbg.business_group_id = pee.business_group_id;
Procedure chk_non_updateable_args
(p_rec in psp_pee_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
SELECT business_group_id
FROM per_business_groups
where business_group_id = p_business_group_id
AND p_distribution_date between DATE_FROM and nvl(DATE_TO,to_date('31/12/4712','DD/MM/RRRR'));
SELECT set_of_books_id
FROM gl_sets_of_books
WHERE set_of_books_id = p_set_of_books_id;
SELECT person_id
FROM per_all_people_f
WHERE person_id = p_person_id
AND current_employee_flag = 'Y'
AND business_group_id = p_business_group_id
AND p_distribution_date between effective_start_date and effective_end_date;
SELECT assignment_id
FROM per_all_assignments_f paaf,
pay_all_payrolls_f papf
WHERE paaf.payroll_id = papf.payroll_id
AND paaf.assignment_id = p_assignment_id
AND paaf.person_id = p_person_id
AND paaf.business_group_id = p_business_group_id
AND p_distribution_date between paaf.effective_start_date and paaf.effective_end_date
AND p_distribution_date between papf.effective_start_date and papf.effective_end_date;
SELECT fc.currency_code
FROM fnd_currencies fc,
per_business_groups pbg
WHERE fc.currency_code =pbg.currency_code
AND fc.enabled_flag = 'Y'
AND fc.currency_flag = 'Y'
AND fc.currency_code = p_currency_code
AND p_distribution_date between nvl(fc.start_date_active,p_distribution_date) and nvl(fc.end_date_active ,to_date('31/12/4712','DD/MM/RRRR'))
AND p_distribution_date between date_from and nvl(pbg.DATE_TO,to_date('31/12/4712','DD/MM/RRRR'));
SELECT code_combination_id
FROM gl_code_combinations
WHERE code_combination_id = p_gl_code_combination_id
AND enabled_flag ='Y';
SELECT project_id
FROM pa_projects_all
WHERE project_id = p_project_id
AND p_distribution_date between nvl(start_date,trunc(p_distribution_date)) and nvl(completion_date,to_date('31/12/4712','DD/MM/RRRR'));
SELECT task_id
FROM pa_tasks
WHERE task_id = p_task_id
AND p_distribution_date between nvl(start_date,trunc(p_distribution_date)) and nvl(completion_date,to_date('31/12/4712','DD/MM/RRRR'));
SELECT award_id
FROM gms_awards_all
WHERE award_id = p_award_id
AND p_distribution_date between nvl(start_date_active,trunc(p_distribution_date)) and nvl(end_date_active,to_date('31/12/4712','DD/MM/RRRR'));
SELECT organization_id
FROM psp_organizations_expend_v
WHERE organization_id = p_expenditure_organization_id
AND trunc(p_distribution_date) between date_from and nvl(date_to,trunc(p_distribution_date));
SELECT per.effort_report_id, prth.selection_match_level
FROM psp_eff_reports per,
psp_report_templates_h prth
WHERE per.request_id = prth.request_id
AND per.PERSON_ID = p_person_id
AND p_distribution_date between per.start_date and per.end_date
AND per.STATUS_CODE IN ('N','A');
SELECT assignment_id
FROM psp_eff_report_details perd
WHERE effort_report_id = p_effort_report_id
AND ASSIGNMENT_ID = p_assignment_id;
l_selection_match_level VARCHAR2(30);
FETCH person_effort_report_csr INTO l_effort_report_id, l_selection_match_level;
IF l_selection_match_level = 'EMP' THEN
RAISE person_effort_report_exist;
ELSIF l_selection_match_level = 'ASG' THEN
OPEN assignment_effort_report_csr(l_effort_report_id, p_assignment_id);
SELECT per.effort_report_id, prth.selection_match_level
FROM psp_eff_reports per,
psp_report_templates_h prth
WHERE per.request_id = prth.request_id
AND per.PERSON_ID = p_person_id
AND p_distribution_date between per.start_date and per.end_date
AND per.STATUS_CODE IN ('N','A');
SELECT assignment_id
FROM psp_eff_report_details perd
WHERE effort_report_id = p_effort_report_id
AND ASSIGNMENT_ID = p_assignment_id;
SELECT business_group_id
FROM per_business_groups
where business_group_id = p_business_group_id
AND p_distribution_date between DATE_FROM and nvl(DATE_TO,to_date('31/12/4712','DD/MM/RRRR'));
SELECT set_of_books_id
FROM gl_sets_of_books
WHERE set_of_books_id = p_set_of_books_id;
SELECT person_id
FROM per_all_people_f
WHERE person_id = p_person_id
AND current_employee_flag = 'Y'
AND business_group_id = p_business_group_id
AND p_distribution_date between effective_start_date and effective_end_date;
SELECT assignment_id
FROM per_all_assignments_f paaf,
pay_all_payrolls_f papf
WHERE paaf.payroll_id = papf.payroll_id
AND paaf.assignment_id = p_assignment_id
AND paaf.person_id = p_person_id
AND paaf.business_group_id = p_business_group_id
AND p_distribution_date between paaf.effective_start_date and paaf.effective_end_date
AND p_distribution_date between papf.effective_start_date and papf.effective_end_date;
SELECT fc.currency_code
FROM fnd_currencies fc,
per_business_groups pbg
WHERE fc.currency_code =pbg.currency_code
AND fc.enabled_flag = 'Y'
AND fc.currency_flag = 'Y'
AND fc.currency_code = p_currency_code
AND p_distribution_date between nvl(fc.start_date_active,p_distribution_date) and nvl(fc.end_date_active ,to_date('31/12/4712','DD/MM/RRRR'))
AND p_distribution_date between date_from and nvl(pbg.DATE_TO,to_date('31/12/4712','DD/MM/RRRR'));
SELECT code_combination_id
FROM gl_code_combinations
WHERE code_combination_id = p_gl_code_combination_id
AND enabled_flag ='Y';
SELECT project_id
FROM pa_projects_all
WHERE project_id = p_project_id
AND p_distribution_date between nvl(start_date,trunc(p_distribution_date)) and nvl(completion_date,to_date('31/12/4712','DD/MM/RRRR'));
SELECT task_id
FROM pa_tasks
WHERE task_id = p_task_id
AND p_distribution_date between nvl(start_date,trunc(p_distribution_date)) and nvl(completion_date,to_date('31/12/4712','DD/MM/RRRR'));
SELECT award_id
FROM gms_awards_all
WHERE award_id = p_award_id
AND p_distribution_date between nvl(start_date_active,trunc(p_distribution_date)) and nvl(end_date_active,to_date('31/12/4712','DD/MM/RRRR'));
SELECT organization_id
FROM psp_organizations_expend_v
WHERE organization_id = p_expenditure_organization_id
AND trunc(p_distribution_date) between date_from and nvl(date_to,trunc(p_distribution_date));
l_selection_match_level VARCHAR2(30);
FETCH person_effort_report_csr INTO l_effort_report_id, l_selection_match_level;
IF l_selection_match_level = 'EMP' THEN
RAISE person_effort_report_exist;
ELSIF l_selection_match_level = 'ASG' THEN
OPEN assignment_effort_report_csr(l_effort_report_id, p_rec.assignment_id);
Procedure insert_validate
(p_rec in psp_pee_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in psp_pee_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in psp_pee_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;