Sunday, January 26, 2025

Query to get Employee Responsibility details in Oracle Fusion

SELECT papf.person_number
      ,ppnfv.display_name person_display_name
  ,paam.assignment_name
  ,hl.meaning AS representative_type
  ,par.asg_responsibility_id
  ,par.responsibility_name
  ,par.business_unit_id
  ,par.work_contacts_flag
  FROM per_asg_responsibilities par
      ,per_all_people_f papf
  ,per_all_assignments_m paam
  ,per_person_names_f_v ppnfv
  ,hcm_lookups hl
 WHERE par.person_id = papf.person_id
   AND par.assignment_id = paam.assignment_id
   AND par.person_id = ppnfv.person_id
   AND par.responsibility_type = hl.lookup_code
   AND hl.lookup_type = 'PER_RESPONSIBILITY_TYPES'
   AND par.status = 'Active'
   AND TRUNC(SYSDATE) BETWEEN paam.effective_start_date AND paam.effective_end_date
   AND TRUNC(SYSDATE) BETWEEN ppnfv.effective_start_date AND ppnfv.effective_end_date
   AND TRUNC(SYSDATE) BETWEEN papf.effective_start_date AND papf.effective_end_date
   AND TRUNC(SYSDATE) BETWEEN par.start_date AND NVL(par.end_date,TO_DATE('31-12-4712','DD-MM-YYYY'))
ORDER BY papf.person_number

No comments:

Post a Comment

Query to get Unposted Journals in Oracle APPS R12

SELECT gjh.accrual_rev_flag accrual_rev_flag       ,gjh.accrual_rev_period_name accrual_rev_period_name   ,gjh.creation_date journal_creat...