<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: GL effective vs accounting vs period start and end date comparison -->
 <REPORTS_ROW>
  <GUID>827603CF6EEF4186E0530100007F9F13</GUID>
  <SQL_TEXT>select
count(*) count,
--gp.start_date,
--gp.end_date,
--gjh.default_effective_date,
--gjl.effective_date,
--xal.accounting_date,
case
when gjh.default_effective_date&gt;=gp.start_date and gjh.default_effective_date&lt;gp.end_date+1 then &apos;within period&apos;
when gjh.default_effective_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end gjh_default_effective_date_check,
case
when gjl.effective_date&gt;=gp.start_date and gjl.effective_date&lt;gp.end_date+1 then &apos;within period&apos;
when gjl.effective_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end gjl_effective_date_check,
case
when xal.accounting_date&gt;=gp.start_date and xal.accounting_date&lt;gp.end_date+1 then &apos;within period&apos;
when xal.accounting_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end xal_accounting_date_check,
case
when trunc(gjl.effective_date)&gt;trunc(xal.accounting_date) then &apos;gjl.effective_date after xal.accounting_date&apos;
when trunc(gjl.effective_date)&lt;trunc(xal.accounting_date) then &apos;gjl.effective_date before xal.accounting_date&apos;
else &apos;same date&apos;
end date_comparison
from
gl_ledgers gl,
gl_periods gp,
gl_je_headers gjh,
gl_je_lines gjl,
gl_import_references gir,
xla_ae_lines xal
where
1=1 and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gl.ledger_id=gjl.ledger_id and
gl.ledger_id=gjh.ledger_id and
gp.period_name=gjl.period_name and
gp.period_name=gjh.period_name and
gjh.je_header_id=gjl.je_header_id and
gjl.je_header_id=gir.je_header_id(+) and
gjl.je_line_num=gir.je_line_num(+) and
gir.gl_sl_link_id=xal.gl_sl_link_id(+) and
gir.gl_sl_link_table=xal.gl_sl_link_table
group by
case
when gjh.default_effective_date&gt;=gp.start_date and gjh.default_effective_date&lt;gp.end_date+1 then &apos;within period&apos;
when gjh.default_effective_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end,
case
when gjl.effective_date&gt;=gp.start_date and gjl.effective_date&lt;gp.end_date+1 then &apos;within period&apos;
when gjl.effective_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end,
case
when xal.accounting_date&gt;=gp.start_date and xal.accounting_date&lt;gp.end_date+1 then &apos;within period&apos;
when xal.accounting_date&lt;gp.start_date then &apos;before&apos;
else &apos;after&apos;
end,
case
when trunc(gjl.effective_date)&gt;trunc(xal.accounting_date) then &apos;gjl.effective_date after xal.accounting_date&apos;
when trunc(gjl.effective_date)&lt;trunc(xal.accounting_date) then &apos;gjl.effective_date before xal.accounting_date&apos;
else &apos;same date&apos;
end
order by
count(*) desc</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>GL effective vs accounting vs period start and end date comparison</REPORT_NAME>
    <DESCRIPTION>For developers to understand the GL data: Shows the relationship between effective, accounting and period start and end dates by counting how many records exist where the effective date is before or after the accounting date.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</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>xal.accounting_date&gt;sysdate-:number_of_history_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>Number Of History Days</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>
