<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: EIS Users -->
 <REPORTS_ROW>
  <GUID>5C69E6B8A6FA05C5E0630100007F1397</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
fu.user_name,
fu.description,
fu.email_address,
fu.end_date user_end_date,
x.runs,
x.scheduled_runs,
x.runs-x.scheduled_runs ad_hoc_runs,
x.xl_connect_runs &quot;XL Connect Runs&quot;,
x.reports_run,
xxen_util.client_time(x.last_run) last_run,
(select err.report_name from xxeis.eis_rs_reports err where x.last_report_id=err.report_id) last_report,
x.active_schedules,
r.eis_responsibilities &quot;EIS Responsibilities&quot;,
xxen_util.yes(r.blitz_enabled) blitz_enabled
from
fnd_user fu,
(
select
y.user_id,
count(y.run_flag) runs,
count(y.scheduled_flag) scheduled_runs,
count(case when y.submission_source=&apos;XL Connect&apos; then 1 end) xl_connect_runs,
count(distinct case when y.run_flag=&apos;Y&apos; then y.report_id end) reports_run,
max(y.start_time) last_run,
max(case when y.run_flag=&apos;Y&apos; then y.report_id end) keep (dense_rank last order by y.start_time nulls first) last_report_id,
count(case when y.run_flag is null then 1 end) active_schedules
from
(
select
erp.created_by user_id,
erp.report_id,
ers.responsibility_id,
ers.application_id,
&apos;Y&apos; run_flag,
case when erp.start_time-ers.logon_time&gt;1 then &apos;Y&apos; end scheduled_flag,
erp.submission_source,
erp.start_time
from
xxeis.eis_rs_processes erp,
xxeis.eis_rs_sessions ers
where
3=3 and
erp.submission_source in (&apos;eXpress&apos;,&apos;XL Connect&apos;) and
erp.report_id&lt;&gt;-999 and
erp.session_id=ers.session_id(+)
union all
select
fcr.requested_by user_id,
to_number(fcr.argument1) report_id,
fcr.responsibility_id,
fcr.responsibility_application_id application_id,
null run_flag,
null scheduled_flag,
null submission_source,
null start_time
from
fnd_concurrent_requests fcr
where
(fcr.phase_code=&apos;P&apos; or fcr.phase_code=&apos;R&apos; and fcr.release_class_id is not null) and
(fcr.program_application_id,fcr.concurrent_program_id) in
(
select
fcp.application_id,
fcp.concurrent_program_id
from
fnd_application fa,
fnd_executables fe,
fnd_concurrent_programs fcp
where
fa.application_short_name=&apos;XXEIS&apos; and
fa.application_id=fe.application_id and
upper(fe.execution_file_name)=&apos;XXEIS.EIS_RSC_PROCESS_REPORTS.SUBMIT_CONC_REPORT&apos; and
fe.application_id=fcp.executable_application_id and
fe.executable_id=fcp.executable_id
)
) y,
xxeis.eis_rs_reports err,
xxeis.eis_rs_applications era,
xxeis.eis_rs_report_categories errc,
fnd_responsibility_vl frv
where
2=2 and
y.report_id=err.report_id(+) and
err.application_id=era.application_id(+) and
err.category_id=errc.category_id(+) and
y.responsibility_id=frv.responsibility_id(+) and
y.application_id=frv.application_id(+)
group by
y.user_id
) x,
(
select
furg.user_id,
count(fcmf_e.menu_id) eis_responsibilities,
max(case when fcmf_b.menu_id is not null then &apos;Y&apos; end) blitz_enabled
from
(select distinct furg.user_id, furg.responsibility_id, furg.responsibility_application_id from fnd_user_resp_groups furg) furg,
fnd_responsibility fr,
(select distinct fcmf.menu_id from fnd_form_functions fff, fnd_compiled_menu_functions fcmf where fff.function_name like &apos;XXEIS_RSC%&apos; and fff.function_id=fcmf.function_id and fcmf.grant_flag=&apos;Y&apos;) fcmf_e,
(select distinct fcmf.menu_id from fnd_form_functions fff, fnd_compiled_menu_functions fcmf where fff.function_name like &apos;XXEN_REPORTS%&apos; and fff.function_id=fcmf.function_id and fcmf.grant_flag=&apos;Y&apos;) fcmf_b
where
furg.responsibility_id=fr.responsibility_id and
furg.responsibility_application_id=fr.application_id and
sysdate between fr.start_date and nvl(fr.end_date,sysdate) and
fr.menu_id=fcmf_e.menu_id(+) and
fr.menu_id=fcmf_b.menu_id(+) and
(fcmf_e.menu_id is not null or fcmf_b.menu_id is not null)
group by
furg.user_id
) r
where
1=1 and
fu.user_id=x.user_id(+) and
fu.user_id=r.user_id(+) and
(x.user_id is not null or r.eis_responsibilities&gt;0)
order by
x.runs desc nulls last,
fu.user_name</SQL_TEXT>
  <VERSION_COMMENTS>New report: EIS users with runs, scheduled and ad hoc runs, reports run, last run and report, active schedules, the number of responsibilities with EIS functions and whether the user has a Blitz Report enabled responsibility.</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>EIS Users</REPORT_NAME>
    <DESCRIPTION>EIS users: one row per user who ran an EIS report within Executed within Days, owns a pending EIS schedule or holds an active responsibility whose menu grants EIS functions.

Runs count eXpress and XL Connect executions. A run counts as scheduled when it starts more than a day after the logon of its EIS session, as scheduled runs keep the session in which the schedule was created. Active Schedules counts the requests EIS Schedules lists for the user: pending requests of the EIS report submission programs and the running request of a recurring schedule.

EIS Responsibilities counts the user&apos;s active responsibilities whose menu grants EIS functions, including standard responsibilities with the EIS menu added. Blitz Enabled shows that the user holds an active responsibility whose menu grants the Blitz Report function.

Application, Category, Report Name and Responsibility restrict the runs and schedules counted and list only the users who have any.

EIS purges its run history, so a user without runs may still have used EIS before the earliest retained run. The EIS process table has no date index, so an execution without a User reads it completely.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>EIS</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>era.application_name=:application</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
era.application_name value,
era.description
from
xxeis.eis_rs_applications era
order by
era.application_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Application</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.user_id is not null</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Application</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>errc.category_name=:category</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
errc.category_name value,
null description
from
xxeis.eis_rs_report_categories errc,
xxeis.eis_rs_applications era
where
errc.application_id=era.application_id and
(:$flex$.application is null or xxen_util.contains(:$flex$.application,era.application_name)=&apos;Y&apos;)
order by
errc.category_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.user_id is not null</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>err.report_name=:report_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
err.report_name value,
err.description
from
xxeis.eis_rs_reports err
order by
err.report_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.user_id is not null</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>fu.user_name=:user_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>FND User Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8479D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
fu.user_name value,
trim(coalesce(
trim(papf.first_name||&apos; &apos;||papf.last_name),
fu.description,
fu.email_address,
papf.email_address
)||fu.inactive) description
from
(select case when sysdate between fu.start_date and nvl(fu.end_date,sysdate) then null else &apos; (inactive)&apos; end inactive, fu.* from fnd_user fu) fu,
(select papf.* from per_all_people_f papf where sysdate between papf.effective_start_date and papf.effective_end_date) papf,
(
select distinct
furg.user_id,
count(*) over (partition by furg.user_id) resp_count,
max(fr.responsibility_key) over (partition by furg.user_id) max_responsibility_key
from
fnd_responsibility fr,
fnd_user_resp_groups_direct furg
where
fr.responsibility_id=furg.responsibility_id and
fr.application_id=furg.responsibility_application_id
) furg
where
fu.employee_id=papf.person_id(+) and
fu.user_id=furg.user_id(+) and
not (furg.resp_count=1 and furg.max_responsibility_key=&apos;IRC_EXT_CANDIDATE&apos;)
order by
fu.inactive desc,
fu.user_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>User</PARAMETER_NAME>
      <DESCRIPTION>User who submitted the run. For scheduled runs, the user who created the schedule.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>y.user_id=xxen_util.user_id(:user_name)</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>User</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>frv.responsibility_name=:responsibility</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>FND Responsibility Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9E79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
frv.responsibility_name value,
frv.description
from
fnd_responsibility_vl frv
order by
frv.responsibility_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Responsibility</PARAMETER_NAME>
      <DESCRIPTION>Responsibility of the EIS session of the run. For scheduled runs, the one the schedule was created in.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.user_id is not null</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Responsibility</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>erp.start_time&gt;=sysdate-:executed_within_days</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>365</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Executed within Days</PARAMETER_NAME>
      <DESCRIPTION>Usage window in days before today, by run start. Blank counts the whole retained history.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.runs&gt;0</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes_No</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
lookup_code id,
meaning value,
null description
from
fnd_lookups
where fnd_lookups.lookup_type=&apos;YES_NO&apos;
order by value,description</LOV_QUERY_DSP>
    <MATCHING_VALUE>Y</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Executed</PARAMETER_NAME>
      <DESCRIPTION>Yes lists the users with a run within the usage window, No the others.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(x.runs,0)=0</SQL_TEXT>
    <MATCHING_VALUE>N</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Executed</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>
