SELECT p.segment1 project_number,
p.name project_name,
pt.project_type,
pt.project_type_class_code,
p.project_id,
ei.task_id,
t.task_number,
t.task_name,
ei.expenditure_item_date,
ei.expenditure_type,
ei.quantity,
DECODE (ei.unit_of_measure,
NULL, pa_utils4.get_unit_of_measure (ei.expenditure_type),
ei.unit_of_measure)
unit_of_measure,
ei.burden_cost,
(SELECT expenditure_category
FROM pa_expenditure_types
WHERE expenditure_type = ei.expenditure_type)
expenditure_category,
(SELECT revenue_category_code
FROM pa_expenditure_types
WHERE expenditure_type = ei.expenditure_type)
revenue_category_code,
x.incurred_by_person_id,
(SELECT p.full_name
FROM per_all_people_f p
WHERE p.person_id = x.incurred_by_person_id
AND ei.expenditure_item_date BETWEEN p.effective_start_date
AND p.effective_end_date)
employee_name,
(SELECT u.user_name
FROM fnd_user u
WHERE u.employee_id = x.incurred_by_person_id) Username
FROM pa_projects_all p,
pa_tasks t,
pa_expenditure_items_all ei,
pa_expenditures_all x,
pa_project_types_all pt,
hr_all_organization_units_tl haot
WHERE t.project_id = p.project_id
AND ei.project_id = p.project_id
AND p.project_type = pt.project_type
AND p.org_id = pt.org_id
AND ei.task_id = t.task_id
AND ei.expenditure_id = x.expenditure_id
AND NVL (ei.override_to_organization_id,
x.incurred_by_organization_id) = haot.organization_id
AND haot.language = USERENV ('LANG')
AND x.incurred_by_person_id = :X_PERSON_ID -- Person Id or Resource Id of the employee for which time is entered
AND ei.expenditure_item_date BETWEEN :Week_Start_Date AND :Week_End_Date
p.name project_name,
pt.project_type,
pt.project_type_class_code,
p.project_id,
ei.task_id,
t.task_number,
t.task_name,
ei.expenditure_item_date,
ei.expenditure_type,
ei.quantity,
DECODE (ei.unit_of_measure,
NULL, pa_utils4.get_unit_of_measure (ei.expenditure_type),
ei.unit_of_measure)
unit_of_measure,
ei.burden_cost,
(SELECT expenditure_category
FROM pa_expenditure_types
WHERE expenditure_type = ei.expenditure_type)
expenditure_category,
(SELECT revenue_category_code
FROM pa_expenditure_types
WHERE expenditure_type = ei.expenditure_type)
revenue_category_code,
x.incurred_by_person_id,
(SELECT p.full_name
FROM per_all_people_f p
WHERE p.person_id = x.incurred_by_person_id
AND ei.expenditure_item_date BETWEEN p.effective_start_date
AND p.effective_end_date)
employee_name,
(SELECT u.user_name
FROM fnd_user u
WHERE u.employee_id = x.incurred_by_person_id) Username
FROM pa_projects_all p,
pa_tasks t,
pa_expenditure_items_all ei,
pa_expenditures_all x,
pa_project_types_all pt,
hr_all_organization_units_tl haot
WHERE t.project_id = p.project_id
AND ei.project_id = p.project_id
AND p.project_type = pt.project_type
AND p.org_id = pt.org_id
AND ei.task_id = t.task_id
AND ei.expenditure_id = x.expenditure_id
AND NVL (ei.override_to_organization_id,
x.incurred_by_organization_id) = haot.organization_id
AND haot.language = USERENV ('LANG')
AND x.incurred_by_person_id = :X_PERSON_ID -- Person Id or Resource Id of the employee for which time is entered
AND ei.expenditure_item_date BETWEEN :Week_Start_Date AND :Week_End_Date
Thanks a lot for sharing a valuable blog on Oracle PPM Cloud Training. I was browsing through the internet looking for Oracle PPM Cloud and Oracle fusion applications and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about Oracle PPM Cloud by attending Oracle PPM Cloud Training. You can learn about interview questions by visiting fusion Interview Questions
ReplyDeleteIt's really a great and helpful piece of info. I'm glad that you just shared this useful information with us. Please keep us up to date like this. Thank you for sharing.Here is the right place to Submit Guest Post Big Data.
ReplyDelete