<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_User_Functions -->
 <REPORTS_ROW>
  <GUID>82288223EF903869E053B46B63588994</GUID>
  <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.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_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 rule_type=&apos;F&apos;)
  and frm.function_id=frf.action_id  
  and wur.user_name= :PARAM1
  and frm.function_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.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_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 wur.user_name= :PARAM1
  and frm.function_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.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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 wur.user_name= :PARAM1
  and frm.function_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,
  fg.start_date Function_Assignment_Start_Date,
  fg.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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 UMX_W3H_UTL.isFunctionAccessible(wur.user_name,wur.role_name)=&apos;true&apos;
  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 wur.user_name= :PARAM1
  and frm.function_name = :Name
  union all
  /* Accessible through Grant */
  select distinct 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,
  fg.start_date Function_Assignment_Start_Date,
  fg.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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.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 = :Name
  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,
  fg.start_date Function_Assignment_Start_Date,
  fg.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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 ((sysdate &lt; fg.start_date  or sysdate &gt; fg.end_date)
  or (UMX_W3H_UTL.isFunctionAccessible(wur.user_name,wur.role_name)=&apos;false&apos;))
  and fcm.menu_id=fg.menu_id
  and frm.function_id=fcm.function_id
  and wur.user_name= :PARAM1
  and frm.function_name = :Name
  union all
  /* Not Accessible through Grant */
  select distinct 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,
  fg.start_date Function_Assignment_Start_Date,
  fg.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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 (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 = :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,
  Function_Assignment_Start_Date,Function_Assignment_End_Date, function_name AS Function_name
  from
  (
  select fr.responsibility_key,
  wur.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_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 UMX_W3H_UTL.isFunctionAccessible(wur.user_name,wur.role_name)=&apos;true&apos;
  and fcm.menu_id=fr.menu_id 
  and frm.function_id=fcm.function_id
  and fcm.grant_flag=&apos;Y&apos;
  and wur.user_name= :PARAM1
  and frm.function_name = :Name
  minus
  ( 
  select fr.responsibility_key,
  wur.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_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 rule_type=&apos;F&apos;)
  and frm.function_id=frf.action_id 
  and wur.user_name= :PARAM1
  and frm.function_name = :Name
  union all
  select fr.responsibility_key,
  wur.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_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 wur.user_name= :PARAM1
  and frm.function_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.start_date Function_Assignment_Start_Date,
  wur.end_date Function_Assignment_End_Date,
  frm.function_name AS Function_name
  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 UMX_W3H_UTL.isFunctionAccessible(wur.user_name,wur.role_name)=&apos;false&apos;
  and frm.function_id=fcm.function_id  
  and wur.user_name= :PARAM1 
and frm.function_name = :Name
</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <XDO_APPLICATION_SHORT_NAME>FND</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>W3H_User_Functions</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>FND W3H_User_Functions</REPORT_NAME>
    <DESCRIPTION>Application: مكتبة وحدات التطبيقات
Source: 
Short Name: W3H_User_Functions
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>FND W3H_User_Functions</REPORT_NAME>
    <DESCRIPTION>Application: Basisbibliothek
Source: 
Short Name: W3H_User_Functions
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>FND W3H_User_Functions</REPORT_NAME>
    <DESCRIPTION>Application: Application Object Library
Source: 
Short Name: W3H_User_Functions
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>FND W3H_User_Functions</REPORT_NAME>
    <DESCRIPTION>Application: 应用对象程序库
Source: 
Short Name: W3H_User_Functions
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>
  <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>
