<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: DIS Workbook Changes -->
 <REPORTS_ROW>
  <GUID>C821565853454CAA8D855C0811B39E4E</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
y.workbook,
y.worksheet,
y.owner,
y.change_type,
y.conversion_status,
y.report_name blitz_report,
y.template_name blitz_template,
xxen_util.client_time(y.doc_created_date) created,
y.created_by,
xxen_util.client_time(y.doc_updated_date) last_updated,
y.last_updated_by,
eqs.runs_since_changed_from,
xxen_util.client_time(eqs.last_run) last_run,
y.doc_id workbook_id
&amp;worksheet_sql
from
(
select
x.*,
ws.worksheet,
ws.report_name,
ws.template_name,
case when ws.template_name is null then &apos;Not converted&apos; else &apos;Changed after conversion&apos; end conversion_status
from
(
select
ed.doc_id,
ed.doc_name workbook,
xxen_util.dis_user_name(ed.doc_eu_id,:eul) owner,
xxen_util.dis_user_name(ed.doc_eu_id,:eul,&apos;N&apos;) owner_user_name,
eeu.eu_username,
case when ed.doc_created_date&gt;=:changed_from then &apos;Created&apos; else &apos;Updated&apos; end change_type,
ed.doc_created_date,
xxen_util.dis_user_name(ed.doc_created_by,null,:eul) created_by,
ed.doc_updated_date,
xxen_util.dis_user_name(ed.doc_updated_by,null,:eul) last_updated_by
from
&amp;eul.eul5_documents ed,
&amp;eul.eul5_eul_users eeu
where
1=1 and
(ed.doc_created_date&gt;=:changed_from or ed.doc_updated_date&gt;=:changed_from) and
ed.doc_eu_id=eeu.eu_id
) x,
(
select
z.doc_id,
z.worksheet,
max(z.report_name) report_name,
max(z.template_name) template_name
from
(
select
ed.doc_id,
ads.worksheet_name worksheet,
to_char(null) report_name,
to_char(null) template_name
from
&amp;eul.eul5_documents ed,
&amp;eul.eul5_eul_users eeu,
(select distinct ads.workbook_owner_name, ads.workbook_name, ads.worksheet_name from ams_discoverer_sql ads) ads
where
ed.doc_eu_id=eeu.eu_id and
eeu.eu_username=ads.workbook_owner_name and
ed.doc_name=ads.workbook_name
union all
select
ed.doc_id,
t.worksheet,
t.report_name,
t.template_name
from
&amp;eul.eul5_documents ed,
(
select
to_number(regexp_substr(xrtv.description,chr(10)||&apos;Doc Id: (\d+)&apos;,1,1,null,1)) doc_id,
regexp_substr(xrtv.description,&apos;^Workbook: (.+)&apos;,1,1,null,1) workbook,
regexp_substr(xrtv.description,chr(10)||&apos;Sheet: (.+)&apos;,1,1,null,1) worksheet,
regexp_substr(xrtv.report_description,chr(10)||&apos;EUL: (\w+)&apos;,1,1,null,1) eul,
xrtv.report_name,
xrtv.template_name
from
xxen_report_templates_v xrtv
where
xrtv.description like &apos;Workbook: %&apos;
) t
where
ed.doc_id=t.doc_id and
--the end user layer the template was converted from, or the workbook name where the layer is a copy under another name
(t.eul=:eul or t.workbook=ed.doc_name)
) z
group by
z.doc_id,
z.worksheet
) ws
where
x.doc_id=ws.doc_id(+)
) y,
(
select
eqs.qs_doc_name,
upper(eqs.qs_doc_owner) qs_doc_owner,
eqs.qs_doc_details,
count(case when eqs.qs_created_date&gt;=:changed_from then 1 end) runs_since_changed_from,
max(eqs.qs_created_date) last_run
from
&amp;eul.eul5_qpp_stats eqs
where
eqs.qs_doc_name in (select ed.doc_name from &amp;eul.eul5_documents ed where ed.doc_created_date&gt;=:changed_from or ed.doc_updated_date&gt;=:changed_from)
group by
eqs.qs_doc_name,
upper(eqs.qs_doc_owner),
eqs.qs_doc_details
) eqs
where
2=2 and
y.workbook=eqs.qs_doc_name(+) and
y.owner_user_name=eqs.qs_doc_owner(+) and
y.worksheet=eqs.qs_doc_details(+)
order by
y.owner,
y.workbook,
y.worksheet</SQL_TEXT>
  <VERSION_COMMENTS>New report: Discoverer worksheets created or changed since a date, with their conversion status</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>DIS Workbook Changes</REPORT_NAME>
    <DESCRIPTION>Lists every worksheet of the Discoverer workbooks created or saved on or after Changed From, to find what still has to be converted to Blitz Report after a migration round. Enter as Changed From the date the workbooks were exported for that round.

Conversion Status is Changed after conversion when a Blitz Report template was converted from the worksheet, found by the Doc Id and Sheet in the template description, and Not converted otherwise. Discoverer records saves per workbook, so a change to one worksheet lists every worksheet of its workbook.

Worksheet names and SQL come from table ams_discoverer_sql, which Discoverer fills on every save through the end user layer function eul_trigger$post_save_document, and from the converted templates. A workbook with neither is listed once without a worksheet.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;eul</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;worksheet_sql</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:changed_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:eul</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:changed_from</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Changed From</PARAMETER_NAME>
      <DESCRIPTION>Lists the workbooks created or saved on or after this date. Enter the date the workbooks were exported for the last conversion round.</DESCRIPTION>
     </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>ed.doc_name=:workbook</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>DIS Workbook</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2079D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
ed.doc_name value,
ed.doc_description||&apos; (&apos;||ed.doc_developer_key||&apos;)&apos; description
from
eul_us.eul5_documents ed
order by
ed.doc_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Workbook</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>xxen_util.dis_user_name(ed.doc_eu_id,:eul,&apos;N&apos;)=:doc_owner</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>FND User Name</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8479D2E0530100007F1FF2</LOV_GUID>
    <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>Workbook Owner</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>y.conversion_status=:conversion_status</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select &apos;Not converted&apos; value, null description from dual union all
select &apos;Changed after conversion&apos; value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Conversion Status</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;worksheet_sql</ANCHOR>
    <SQL_TEXT>,xxen_util.dis_worksheet_sql(y.eu_username,y.workbook,y.worksheet) worksheet_sql</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show SQL</PARAMETER_NAME>
      <DESCRIPTION>Adds the SQL Discoverer saved for each worksheet.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;eul</ANCHOR>
    <SQL_TEXT>&lt;parameter_value&gt;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>DIS End User Layer</LOV_NAME>
    <LOV_GUID>8E2FF36EDF3879D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
lower(do.owner) value,
do.created description
from
dba_objects do
where
do.object_type=&apos;TABLE&apos; and
do.object_name=&apos;EUL5_VERSIONS&apos;
order by
do.created desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.dis_default_eul</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>End User Layer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <ANCHOR>:eul</ANCHOR>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>End User Layer</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>
