<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 Security Profiles -->
 <REPORTS_ROW>
  <GUID>0270D78E3DAD9906E0630100007F8AF6</GUID>
  <SQL_TEXT>select
psp.security_profile_name,
(select haouv0.name from hr_all_organization_units_vl haouv0 where psp.business_group_id=haouv0.organization_id) business_group,
haouv.name operating_unit,
ftv.territory_short_name country,
hla.location_code,
decode(psp.org_security_mode,&apos;NONE&apos;,&apos;View all (no security)&apos;,&apos;HIER&apos;,&apos;Organization hierarchy and/or organization list&apos;,&apos;OU&apos;,&apos;Single operating unit&apos;,&apos;OU_INV&apos;,&apos;Operating unit and inventory organizations&apos;) organization_security_mode,
xxen_util.meaning(psp.view_all_flag,&apos;YES_NO&apos;,0) view_all_operating_units,
xxen_util.user_name(psp.created_by) created_by,
xxen_util.client_time(psp.creation_date) creation_date,
xxen_util.user_name(psp.last_updated_by) last_updated_by,
xxen_util.client_time(psp.last_update_date) last_update_date,
psp.security_profile_id
from
(
select
nvl(pol.organization_id,nvl(hou.organization_id,hou0.organization_id)) operating_unit_id,
psp.*
from
per_security_profiles psp,
(select pol.* from per_organization_list pol, hr_operating_units hou where pol.organization_id=hou.organization_id and hou.usable_flag is null) pol,
(select hou.* from hr_operating_units hou where hou.usable_flag is null) hou,
(select -1 view_all, hou.* from hr_operating_units hou where hou.usable_flag is null) hou0
where
decode(psp.view_all_flag,&apos;N&apos;,psp.security_profile_id)=pol.security_profile_id(+) and
decode(psp.view_all_flag,&apos;Y&apos;,psp.business_group_id)=hou.business_group_id(+) and
decode(psp.view_all_flag,&apos;Y&apos;,nvl2(psp.business_group_id,null,-1))=hou0.view_all(+)
) psp,
hr_all_organization_units_vl haouv,
hr_locations_all hla,
fnd_territories_vl ftv
where
1=1 and
psp.operating_unit_id=haouv.organization_id(+) and
haouv.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
psp.security_profile_name,
ftv.territory_short_name,
haouv.name</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PER Security Profiles</REPORT_NAME>
    <DESCRIPTION>Security profiles and operating units that they give access to.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</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>psp.security_profile_name=:security_profile_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
psp.security_profile_name value,
nvl((select haouv0.name from hr_all_organization_units_vl haouv0 where psp.business_group_id=haouv0.organization_id),&apos;Global&apos;)||&apos;: &apos;||
decode(psp.org_security_mode,&apos;NONE&apos;,&apos;View all (no security)&apos;,&apos;HIER&apos;,&apos;Organization hierarchy and/or organization list&apos;,&apos;OU&apos;,&apos;Single operating unit&apos;,&apos;OU_INV&apos;,&apos;Operating unit and inventory organizations&apos;) description
from
per_security_profiles psp
order by
nvl2(psp.business_group_id,2,1),
psp.security_profile_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Security Profile</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
