PER Employee Assignments

Description

Categories
Enginatics
Repository
GitHub
Master data report showing the employee demographic information including name, gender SSN, birthdate, age, nationality, effective start date, and additional profile information.

Detail Level Costing adds one row per assignment cost allocation valid at the Effective Date, with the proportion, the total proportion of the assignment and the cost allocation flexfield. The individual cost segment columns are shown when a Business Group is selected. Assignments without assignment-level costing show blank costing columns.

Detail Level Extra Information lists one row per assignment extra information record. Select an Information Type to show its segments as columns.

SQL 153 lines

Parameters 10

ParameterTypeList of values SQL
Person Full NameLOV
papf.full_name=:full_name
User NameLOV
papf.person_id in (select fu.employee_id from fnd_user fu where fu.user_name=:user_name)
Person TypeLOV
pptv.user_person_type=:person_type
Assignment OrganizationLOV
papf.person_id in
(
select
paaf.person_id
from
hr_all_organization_units_vl haouv,
per_all_assignments_f paaf
where
haouv.name=:assignment_organization and
haouv.organization_id=paaf.organization_id and
sysdate between nvl(paaf.effective_start_date,sysdate) and nvl(paaf.effective_end_date,sysdate)
)
Business GroupLOV
haouv.name=:business_group
Effective DateDate
Flexfield ContextLOV
select
'paaf.'||lower(fdfcuv.application_column_name)||' "'||substrb(fdfcuv.form_left_prompt,1,xxen_report.max_column_length)||'",' column_text
from
fnd_descr_flex_col_usage_vl fdfcuv
where
fdfcuv.application_id=800 and
fdfcuv.descriptive_flexfield_name='PER_ASSIGNMENTS' and
fdfcuv.enabled_flag='Y' and
fdfcuv.display_flag='Y' and
fdfcuv.descriptive_flex_context_code=:descriptive_flex_context_code
order by
fdfcuv.column_seq_num
Detail LevelLOV
select
x.column_text
from
(
select
0 seq,
'round(pcaf.proportion*100,2) cost_proportion_percent,
round(pcaf.total_proportion*100,2) total_proportion_percent,
pcak.concatenated_segments cost_allocation,' column_text
from
dual
union all
select
fifs.segment_num seq,
'pcak.'||lower(fifs.application_column_name)||' "'||substrb(fifs.segment_name,1,xxen_report.max_column_length)||'",' column_text
from
per_business_groups pbg,
fnd_id_flex_segments fifs
where
pbg.name=:business_group and
fifs.application_id=801 and
fifs.id_flex_code='COST' and
fifs.id_flex_num=pbg.cost_allocation_structure and
fifs.enabled_flag='Y' and
fifs.display_flag='Y'
union all
select
1000 seq,
'pcaf.effective_start_date cost_effective_start_date,
nullif(pcaf.effective_end_date,to_date(''31.12.4712'',''DD.MM.YYYY'')) cost_effective_end_date,' column_text
from
dual
) x
order by
x.seq
Information TypeLOV
Costing Total Not 100%LOV
paaf.payroll_id is not null and nvl(pcaf.total_proportion,0)<>1