<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: FND W3H_Function_Users -->
 <REPORTS_ROW>
  <GUID>82288223EF8A3869E053B46B63588994</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select fr.responsibility_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility, fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_FUNCTIONEXCLUSION_REASON&apos;) Reason,
 wur.user_name AS UserName
 from fnd_responsibility fr, fnd_resp_functions frf, wf_user_role_assignments wur,
 fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and (frf.responsibility_id=fr.responsibility_id and rule_type=&apos;F&apos;)
 and frm.function_id=frf.action_id  and frm.function_name= :PARAM1
  and wur.user_name = :Name
 union all
 select fr.responsibility_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility, fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_MENUEXCLUSION_REASON&apos;) Reason,
 wur.user_name AS UserName
 from fnd_resp_functions frf,wf_user_role_assignments wur,fnd_responsibility fr,
 fnd_compiled_menu_functions fcm,fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and frf.responsibility_id=fr.responsibility_id and frf.rule_type=&apos;M&apos;
 and fcm.menu_id=frf.action_id
 and frm.function_id=fcm.function_id
 and frm.function_name= :PARAM1
 and wur.user_name = :Name
 union all
 select fr.responsibility_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility, fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_FUNCTIONGRANTFLAG_REASON&apos;) Reason,
 wur.user_name AS UserName
 from fnd_compiled_menu_functions fcm,fnd_responsibility fr,
 wf_user_role_assignments wur,fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and fr.menu_id=fcm.menu_id
 and fcm.function_id=frm.function_id
 and fcm.grant_flag=&apos;N&apos;
 and frm.function_name= :PARAM1
  and wur.user_name = :Name
 union all
 /* Accessible through Grant */
 select fg.grantee_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_YES_ACCESSIBILITY&apos;) Accessibility,
 decode(fg.grantee_type,&apos;USER&apos;,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_USERGRANT_REASON&apos;),
 &apos;GROUP&apos;,decode(wur.role_orig_system,&apos;UMX&apos;,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_ROLEGRANT_REASONAPPLICAT&apos;),fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_RESPONSIBILITYGRANT_REASON&apos;)))
 Reason, wur.user_name AS UserName
 from fnd_grants fg,wf_user_role_assignments wur,fnd_compiled_menu_functions fcm,
 fnd_form_functions frm
 where  (fg.grantee_key=wur.role_name) AND fg.grantee_type IN (&apos;USER&apos;, &apos;GROUP&apos;)  
 and (wur.effective_start_date &lt;=sysdate or wur.effective_start_date is null)
 and (wur.effective_end_date is null or sysdate &lt; wur.effective_end_date)
 and (fg.start_date &lt;= sysdate  and (sysdate &lt;= fg.end_date or fg.end_date is null))
 and fcm.menu_id=fg.menu_id
 and frm.function_id=fcm.function_id
 and frm.function_name=  :PARAM1
 and wur.user_name = :Name
 union all
 select  fg.grantee_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_YES_ACCESSIBILITY&apos;) Accessibility,
  fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_GLOBALGRANT_REASON&apos;)   Reason, &apos;GLOBAL&apos; AS UserName
  from fnd_grants fg,fnd_compiled_menu_functions fcm,
  fnd_form_functions frm
  where 
   (fg.start_date &lt;= sysdate  
  and (sysdate &lt;= fg.end_date or fg.end_date is null))
  and fcm.menu_id=fg.menu_id
  and frm.function_id=fcm.function_id
  and fg.grantee_type=&apos;GLOBAL&apos;
  and frm.function_name= :PARAM1
 union all
 select fg.grantee_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility,   
 fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_GRANTEEENDDATE_REASON&apos;) Reason,   
  &apos;GLOBAL&apos; AS UserName   
  from fnd_grants fg,fnd_compiled_menu_functions fcm,   
  fnd_form_functions frm
  WHERE ( (sysdate &lt; fg.start_date  or sysdate &gt; fg.end_date)  ) 
  and fcm.menu_id=fg.menu_id   
  and frm.function_id=fcm.function_id   
  and fg.grantee_type=&apos;GLOBAL&apos;   
  and frm.function_name= :PARAM1
 union all
 /* Not Accessible through Grant */
 select fg.grantee_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility,
 fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_GRANTEEENDDATE_REASON&apos;) Reason,
 wur.user_name AS UserName
 from fnd_grants fg,wf_user_role_assignments wur,fnd_compiled_menu_functions fcm,
 fnd_form_functions frm
 where fg.grantee_key=wur.role_name and fg.grantee_type IN (&apos;USER&apos;, &apos;GROUP&apos;)  
 and ((sysdate &lt; fg.start_date  or sysdate &gt; fg.end_date)
 or (wur.effective_start_date &gt; sysdate or wur.effective_end_date &lt;= sysdate))
 and fcm.menu_id=fg.menu_id
 and frm.function_id=fcm.function_id
 and frm.function_name= :PARAM1
 and wur.user_name = :Name
 union all
 /* This retrieves only those responsibilities through which Function is Accessible */
 select responsibility_key, fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_YES_ACCESSIBILITY&apos;) Accessibility, fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_THROUGHRESP_REASON&apos;) Reason,
 user_name AS UserName
 from
 (
 select fr.responsibility_key,
 frm.function_name,wur.user_name
 from wf_user_role_assignments wur,fnd_responsibility fr,
 fnd_compiled_menu_functions fcm,fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and (wur.effective_start_date &lt;=sysdate
 and (wur.effective_end_date is null or sysdate &lt; wur.effective_end_date))
 and fcm.menu_id=fr.menu_id
 and frm.function_id=fcm.function_id
 and fcm.grant_flag=&apos;Y&apos;
 and frm.function_name= :PARAM1
 and wur.user_name = :Name
 minus
 (
 select fr.responsibility_key,
 frm.function_name,wur.user_name
 from fnd_responsibility fr, fnd_resp_functions frf, wf_user_role_assignments wur,
 fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and (frf.responsibility_id=fr.responsibility_id and frf.rule_type=&apos;F&apos;)
 and frm.function_id=frf.action_id
 and frm.function_name= :PARAM1
 and wur.user_name = :Name
 union all
 select fr.responsibility_key,
 frm.function_name,wur.user_name
 from fnd_resp_functions frf,wf_user_role_assignments wur,fnd_responsibility fr,
 fnd_compiled_menu_functions fcm,fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and frf.responsibility_id=fr.responsibility_id and frf.rule_type=&apos;M&apos;
 and fcm.menu_id=frf.action_id
 and frm.function_id=fcm.function_id
 and frm.function_name= :PARAM1
 and wur.user_name = :Name
 )
 )
 union all
 /* Checks for user/resp effective start_date and end_date */
 select fr.responsibility_key,fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_NO_ACCESSIBILITY&apos;) Accessibility,
 fnd_message.get_STRING(&apos;FND&apos;,&apos;W3H_USERENDDATE_REASON&apos;) Reason,
 wur.user_name AS UserName
 from fnd_responsibility fr, fnd_compiled_menu_functions fcm, wf_user_role_assignments wur,
 fnd_form_functions frm
 where substr(wur.role_name,instr(wur.role_name,&apos;|&apos;,1,2)+1,
 (instr(wur.role_name,&apos;|&apos;,1,3)-1-instr(wur.role_name,&apos;|&apos;,1,2)))=fr.responsibility_key
 and fcm.menu_id=fr.menu_id
 and (wur.effective_start_date &gt; sysdate or sysdate &gt;= wur.effective_end_date)
 and frm.function_id=fcm.function_id  and frm.function_name= :PARAM1
 and wur.user_name = :Name
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>FND</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>W3H_Function_Users</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>FND W3H_Function_Users</REPORT_NAME>
    <DESCRIPTION>Application: مكتبة وحدات التطبيقات
Source: 
Short Name: W3H_Function_Users
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>FND W3H_Function_Users</REPORT_NAME>
    <DESCRIPTION>Application: Basisbibliothek
Source: 
Short Name: W3H_Function_Users
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>FND W3H_Function_Users</REPORT_NAME>
    <DESCRIPTION>Application: Application Object Library
Source: 
Short Name: W3H_Function_Users
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>FND W3H_Function_Users</REPORT_NAME>
    <DESCRIPTION>Application: 应用对象程序库
Source: 
Short Name: W3H_Function_Users
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:param1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
