<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: PER Organization Hierarchy -->
 <REPORTS_ROW>
  <GUID>49A8B1A8036B08ACE0530100007FEB91</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
pbg.name business_group,
pos.name hierarchy_name,
x.top_level_org,
x.level_,
x.org_path,
x.child_org,
(select &apos;LE&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;HR_LEGAL&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) le,
(select &apos;OU&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;OPERATING_UNIT&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) ou,
(select &apos;INV&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;INV&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) inv,
(select &apos;WIP&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;WIP&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) wip,
(select &apos;MRP&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;MRP&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) mrp,
(select &apos;PJM&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;PJM&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) pjm,
(select &apos;FA&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;FA_ORG&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) fa,
(select &apos;HR&apos; from hr_organization_information hoi where x.child_org_id=hoi.organization_id and hoi.org_information1=&apos;HR_ORG&apos; and hoi.org_information_context=&apos;CLASS&apos; and hoi.org_information2=&apos;Y&apos;) hr,
(
select distinct
listagg(xxen_util.meaning(hoi.org_information1,&apos;ORG_CLASS&apos;,3),&apos;, &apos;) within group (order by xxen_util.meaning(hoi.org_information1,&apos;ORG_CLASS&apos;,3)) over (partition by hoi.organization_id) classification
from
hr_organization_information hoi
where
x.child_org_id=hoi.organization_id and
hoi.org_information_context=&apos;CLASS&apos; and
hoi.org_information2=&apos;Y&apos;
) classification,
x.head_count,
posv.version_number hierarchy_version,
posv.date_from,
posv.date_to,
x.child_org_id,
pos.business_group_id,
posv.org_structure_version_id
from
per_organization_structures pos,
per_org_structure_versions posv,
(
select
pose.org_structure_version_id,
connect_by_root haouv1.name top_level_org,
lpad(&apos; &apos;,2*level)||level level_,
lpad(&apos; &apos;,4*(level-1))||haouv2.name org_path,
haouv2.name child_org,
nullif(haouv2.head_count,0) head_count,
pose.organization_id_child child_org_id
from
hr_all_organization_units_vl haouv1,
per_org_structure_elements pose,
(
select
(select count(distinct paaf.person_id) from per_all_assignments_f paaf where haouv.organization_id=paaf.organization_id and paaf.assignment_type in (&apos;E&apos;,&apos;C&apos;) and paaf.primary_flag=&apos;Y&apos; and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date) head_count,
haouv.*
from
hr_all_organization_units_vl haouv
) haouv2
where
pose.organization_id_parent=haouv1.organization_id and
pose.organization_id_child=haouv2.organization_id
start with (pose.organization_id_parent, pose.org_structure_version_id) in
(select pose0.organization_id_parent, pose0.org_structure_version_id from per_org_structure_elements pose0 where not exists (select null from per_org_structure_elements pose2 where pose0.organization_id_parent=pose2.organization_id_child and pose0.org_structure_version_id=pose2.org_structure_version_id))
connect by nocycle
prior pose.organization_id_child=pose.organization_id_parent and
prior pose.org_structure_version_id=pose.org_structure_version_id
order siblings by pose.org_structure_version_id, haouv2.name
) x,
per_business_groups pbg
where
1=1 and
pos.organization_structure_id=posv.organization_structure_id and
sysdate between posv.date_from and nvl(posv.date_to,sysdate) and
posv.org_structure_version_id=x.org_structure_version_id and
pos.business_group_id=pbg.business_group_id(+)</SQL_TEXT>
  <VERSION_COMMENTS>Return the zero-blanked Head Count column as a number rather than text by using nullif(x,0) in place of decode(x,0,null,x), which Oracle types as varchar2 because its first result is null.</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PER Organization Hierarchy</REPORT_NAME>
    <DESCRIPTION>Master data report showing hierarchical list of human resource organization structures including subordinate orgs.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>pbg.name=:business_group</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>PER Business Group</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9B79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
pbg.name value,
hla.location_code description
from
per_business_groups pbg,
hr_locations_all hla
where
pbg.location_id=hla.location_id(+)
order by
pbg.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Business Group</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>pos.name=:hierarchy_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
pos.name value,
pbg.name description
from
per_organization_structures pos,
per_business_groups pbg
where
pos.business_group_id=pbg.business_group_id(+)
order by
pos.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Nom de la hiérarchie</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Hierarchy Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.top_level_org=:top_org</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Organization</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9779D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
haouv.name value,
flvv.meaning description
from
hr_all_organization_units_vl haouv,
fnd_lookup_values_vl flvv
where
haouv.type=flvv.lookup_code(+) and
flvv.lookup_type(+)=&apos;ORG_TYPE&apos; and
flvv.view_application_id(+)=3 and
flvv.security_group_id(+)=0
order by
haouv.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Organisation de niveau supérieur</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Top Level Organization</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
