Oracle Fusion/Cloud ERP HCM Employee Details

select papf.person_number,
pu.username, papf.person_id ,
PPNF.list_name
from per_all_people_f papf,
per_users pu ,
PER_PERSON_NAMES_F PPNF
WHERE papf.person_id = pu.person_id
AND PPNF.PERSON_ID = pu.person_id
AND PPnF.name_type=’US’
AND TRUNC(SYSDATE) BETWEEN papf.effective_start_date AND papf.effective_end_date
and pu.username like ‘%abc%’
;

HCM Department Details

SELECT papf.person_number,
hauft.NAME Department
FROM HR_ORG_UNIT_CLASSIFICATIONS_F houcf,
HR_ALL_ORGANIZATION_UNITS_F haouf,
HR_ORGANIZATION_UNITS_F_TL hauft,
per_all_assignments_m paam,
per_all_people_f papf
WHERE haouf.ORGANIZATION_ID = houcf.ORGANIZATION_ID
AND haouf.ORGANIZATION_ID = hauft.ORGANIZATION_ID
AND haouf.EFFECTIVE_START_DATE BETWEEN houcf.EFFECTIVE_START_DATE AND houcf.EFFECTIVE_END_DATE
AND hauft.LANGUAGE = ‘US’
AND hauft.EFFECTIVE_START_DATE = haouf.EFFECTIVE_START_DATE
AND hauft.EFFECTIVE_END_DATE = haouf.EFFECTIVE_END_DATE
AND houcf.CLASSIFICATION_CODE = ‘DEPARTMENT’
AND SYSDATE BETWEEN hauft.effective_start_date AND hauft.effective_end_date
AND hauft.organization_id = paam.organization_id
and paam.person_id = papf.person_id
and paam.primary_assignment_flag = ‘Y’
and paam.assignment_type = ‘E’
and paam.effective_latest_change = ‘Y’
and sysdate between paam.effective_start_date and paam.effective_end_date
and sysdate between papf.effective_start_date and papf.effective_end_date
and papf.person_number = nvl(:personnumber,papf.person_number)
order by papf.person_number asc,hauft.name asc nulls first

Comments |0|

Legend *) Required fields are marked
**) You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Category: Uncategorized