<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>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: GL Journal Category -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF2479D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Journal Category</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gjcv.user_je_category_name value,
gjcv.description
from
gl_je_categories_vl gjcv
order by
gjcv.user_je_category_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Journal Source -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF2379D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Journal Source</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gjsv.user_je_source_name value,
gjsv.description 
from 
gl_je_sources_vl gjsv
order by
gjsv.user_je_source_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Ledger -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB879D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Ledger</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>دفاتر الأستاذ المقيدة بمجموعة الوصول ، المحددة بواسطة قيمة الملف الشخصي &quot;مجموعة الوصول إلى بيانات GL&quot; لمسؤولية تسجيل الدخول الحالية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Ledger, die durch das Zugriffsset eingeschränkt sind, definiert durch den Profilwert &apos;GL Data Access Set&apos; der aktuellen Anmeldeverantwortung</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Libros restringidos por el conjunto de acceso, definido por el valor del perfil &quot;Conjunto de acceso a datos GL&quot; de la responsabilidad de inicio de sesión actual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Grands livres limités par un ensemble d&apos;accès, défini par la valeur du profil &quot;GL Data Access Set&quot; de la responsabilité de connexion actuelle</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Libri mastri limitati dal set di accesso, definito dal valore del profilo &apos;GL Data Access Set&apos; della responsabilità di login corrente</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>現在のログイン責任者のプロファイル値&apos;GL Data Access Set&apos;によって定義されたアクセスセットによって制限された元帳</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>현재 로그인 권한의 프로파일 값 &apos;GL 데이터 액세스 세트&apos;로 정의 된 액세스 세트로 제한되는 원장</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Ledgers restritos pelo conjunto de acesso, definido pelo valor do perfil &apos;GL Data Access Set&apos; da atual responsabilidade de login</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Леджеры, ограниченные набором доступа, определяемые значением профиля &quot;GL Data Access Set&quot; текущей ответственности за вход в систему</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Ledgers begränsade av åtkomstuppsättning, definierade av profilvärde &apos;GL Data Access Set&apos; för det aktuella inloggningsansvaret</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Mevcut oturum açma sorumluluğunun profil değeri &apos;GL Veri Erişim Kümesi&apos; ile tanımlanan erişim kümesiyle kısıtlanmış defterler</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Ledgers restricted by access set, defined by profile value &apos;GL Data Access Set&apos; of the current login responsibility</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>由访问集限制的分类账，由当前登录责任的配置文件值 &quot;GL数据访问集 &quot;定义。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Period (past) -->
 <LOVS_ROW>
  <GUID>8E2FF36EDED479D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Period (past)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select distinct
gp.period_name value,
(
select
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,101)||&apos;: &apos;||fnd_date.date_to_displaydate(gps.start_date)||&apos; - &apos;||fnd_date.date_to_displaydate(gps.end_date) description
from
gl_period_statuses gps
where
gp.period_name=gps.period_name and
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
) description,
min(gp.start_date) over (partition by gp.period_name) min_start_date
from
gl_periods gp
where
gp.start_date&lt;=sysdate+400 and
(gp.period_set_name,gp.period_type) in (
select
gl.period_set_name,
gl.accounted_period_type
from
gl_ledgers gl
where
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.operating_unit is null or gl.ledger_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or gl.chart_of_accounts_id in (select fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;))
)
order by
min_start_date desc,
gp.period_name</LOV_QUERY>
  <VERSION_COMMENTS>Added +400 days to show future periods for budgets</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>جميع فترات دفتر الأستاذ العام الماضية ، تعتمد على مخطط الحسابات أو دفتر الأستاذ</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Alle vergangenen GL-Perioden, abhängig von Kontenplan oder Ledger</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Todos los periodos pasados de LG, dependiendo del plan de cuentas o del libro mayor</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Toutes les périodes de GL passées, en fonction du plan comptable ou du grand livre</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutti i periodi GL passati, a seconda del piano dei conti o del libro mastro</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>すべての過去のGL期間は、勘定科目表または元帳に依存しています。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>계정과 목표 또는 원장에 따라 모든 과거 GL 기간</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Todos os períodos anteriores da GL, dependendo do plano de contas ou do livro razão</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все прошлые периоды GL, в зависимости от плана счетов или бухгалтерской книги.</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla tidigare GL-perioder, beroende på kontoplan eller storbok</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Hesap planına veya genel muhasebe defterine bağlı olarak geçmiş tüm GL dönemleri</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All past GL periods, dependent on chart of accounts or ledger</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>过去的所有GL期，取决于会计科目表或分类账。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: GL SLA Drillback Diagnostic -->
 <REPORTS_ROW>
  <GUID>CDAC629F0CBF7EC3E0530100007FBA2A</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
 gl.name ledger
,gjh.period_name
,gjs.user_je_source_name
,gjc.user_je_category_name
,gir.gl_sl_link_table
,gir.gl_sl_link_id
,xah.application_id xah_appl_id
,xah.gl_transfer_status_code
,xah.accounting_entry_status_code
,xe.event_type_code
,xe.event_id
,xte.application_id xte_appl_id
,xte.entity_code
,xte.source_id_int_1
,xal.accounting_class_code
,xdl.accounting_line_code
,xdl.accounting_line_type_code
,xdl.line_definition_code
,xdl.event_class_code
,xdl.event_type_code dist_event_type_code
,xdl.source_distribution_type
,xdl.source_distribution_id_num_1
-- 707 - Cost Management
,wt.transaction_id                 wip_transaction_id
,we.wip_entity_name                wip_entity_name
,wt.project_id                     wip_project_id
--,wta.wip_sub_ledger_id             wip_sub_ledger_id
--,wt2.transaction_id                wta_wip_transaction_id
--,we2.wip_entity_name               wta_wip_entity_name
--,wt2.project_id                    wta_project_id
,rrsl.rcv_sub_ledger_id            rrsl_rcv_sub_ledger_id
,rrsl.rcv_transaction_id           rrsl_rcv_transaction_id
,rt.transaction_id                 rrsl_transaction_id
,rt.wip_entity_id                  rrsl_wip_entity_id
,rt.wip_line_id                    rrsl_wip_line_id
,rt.wip_repetitive_schedule_id     rrsl_wip_repetitive_sched_id
,rt.wip_operation_seq_num          rrsl_wip_operation_seq_num
,rt.wip_resource_seq_num           rrsl_wip_resource_seq_num
,rt.project_id                     rrsl_project_id
,we3.wip_entity_name               rrsl_wip_entity_name
-- 275 - Projects
,ppa.segment1                      pa_project
,peia.expenditure_type             pa_expenditure_type
-- 222 AR
,rcta.customer_trx_id              ar_customer_trx_id
,rcta.interface_header_context     ar_interface_header_context
,rcta.interface_header_attribute1  ar_interface_header_att1
,rbsa.name                         ar_batch_source
-- 555 OPM
,gxeh.header_id                    gxeh_header_id
,gxeh.reference_no                 gxeh_reference_no
,gxeh.event_id                     gxeh_event_id
,gxeh.entity_code                  gxeh_entity_code
,gxeh.event_class_code             gxeh_event_class_code
,gxeh.event_type_code              gxeh_event_type_code
,gxeh.transaction_id               gxeh_transaction_id
,gxel.line_id                      gxel_line_id
,gxel.event_id                     gxel_event_id
,grat.accounting_txn_id            grat_accounting_txn_id
,grat.rcv_transaction_id           grat_rcv_transaction_id
,rt2.transaction_id                grat_transaction_id
,rt2.wip_entity_id                 grat_wip_entity_id
,rt2.wip_line_id                   grat_wip_line_id
,rt2.wip_repetitive_schedule_id    grat_wip_repetitive_sched_id
,rt2.wip_operation_seq_num         grat_wip_operation_seq_num
,rt2.wip_resource_seq_num          grat_wip_resource_seq_num
,rt2.project_id                    grat_project_id
,we4.wip_entity_name               grat_wip_entity_name
,mmt.project_id                    grat_mmt_project_id
-- 140 Assets
,case 
 when xte.application_id = 140 and xte.entity_code = &apos;TRANSACTIONS&apos;
 then (select fab.asset_number from fa_additions_b fab,fa_transaction_headers fth where fth.asset_id=fab.asset_id and fth.transaction_header_id=xte.source_id_int_1)
 when xte.application_id = 140 and xte.entity_code = &apos;DEPRECIATION&apos;
 then (select fab.asset_number from fa_additions_b fab where fab.asset_id=xte.source_id_int_1)
 end asset_number 
,case 
 when xte.application_id = 140 and xte.entity_code = &apos;TRANSACTIONS&apos;
 then (select fab.asset_number from fa_additions_b fab,fa_transaction_headers fth where fth.asset_id=fab.asset_id and fth.transaction_header_id=xte.source_id_int_1)
 when xte.application_id = 140 and xte.entity_code = &apos;DEPRECIATION&apos;
 then (select fab.asset_number from fa_additions_b fab, fa_deprn_detail fdd where fab.asset_id=fdd.asset_id and fdd.asset_id=xte.source_id_int_1 and fdd.period_counter=xte.source_id_int_2 and fdd.deprn_run_id=xte.source_id_int_3 and rownum=1)
 end asset_number2
from
  gl_ledgers                   gl
, gl_je_sources                gjs
, gl_je_categories             gjc
, gl_je_headers                gjh
, gl_je_lines                  gjl
, gl_import_references         gir
, gl_code_combinations         gcc
, xla.xla_ae_lines             xal
, xla.xla_ae_headers           xah
, xla.xla_events               xe
, xla.xla_transaction_entities xte
, xla.xla_distribution_links   xdl
-- 707 - Cost Management
, wip_transactions             wt
, wip_entities                 we
--, wip_transaction_accounts     wta
--, wip_transactions             wt2
--, wip_entities                 we2
, rcv_receiving_sub_ledger     rrsl
, rcv_transactions             rt
, wip_entities                 we3
-- 275 - Projects
, pa_expenditure_items_all     peia
, pa_projects_all              ppa
-- 222 AR
, ar_adjustments_all           aaa
, ra_customer_trx_all          rcta
, ra_batch_sources_all         rbsa
-- 555 OPM
, gmf_xla_extract_lines        gxel
, gmf_xla_extract_headers      gxeh
, gmf_rcv_accounting_txns      grat
, rcv_transactions             rt2
, wip_entities                 we4
, mtl_material_transactions    mmt
where
    gjs.je_source_name           = gjh.je_source
and gjc.je_category_name         = gjh.je_category
and gjl.je_header_id             = gjh.je_header_id
and gcc.code_combination_id      = gjl.code_combination_id
--
and gir.je_header_id (+)         = gjl.je_header_id
and gir.je_line_num  (+)         = gjl.je_line_num
--
and xal.gl_sl_link_id (+)        = gir.gl_sl_link_id
and xal.gl_sl_link_table (+)     = gir.gl_sl_link_table
and xah.ae_header_id (+)         = xal.ae_header_id
and xah.application_id (+)       = xal.application_id
and xe.application_id (+)        = xah.application_id
and xe.event_id (+)              = xah.event_id
and xte.application_id (+)       = xah.application_id
and xte.entity_id (+)            = xah.entity_id
and xdl.ae_header_id (+)         = xal.ae_header_id
and xdl.ae_line_num (+)          = xal.ae_line_num
-- 707 - Cost Management
and wt.transaction_id (+)        = case when xte.application_id = 707 then xte.source_id_int_1 end
and we.wip_entity_id (+)         = wt.wip_entity_id
--and wta.wip_sub_ledger_id (+)    = case when xdl.application_id = 707 and xdl.source_distribution_type = &apos;WIP_TRANSACTION_ACCOUNTS&apos; then xdl.source_distribution_id_num_1 end
--and wt2.transaction_id (+)       = wta.transaction_id
--and we2.wip_entity_id            = wt2.wip_entity_id
and rrsl.rcv_sub_ledger_id (+)   = case when xdl.application_id = 707 and xdl.source_distribution_type = &apos;RCV_RECEIVING_SUB_LEDGER&apos; then xdl.source_distribution_id_num_1 end
and rt.transaction_id (+)        = rrsl.rcv_transaction_id
and we3.wip_entity_id (+)        = rt.wip_entity_id
-- 275 - Projects
and peia.expenditure_item_id (+) = case when xte.application_id = 275 and xte.entity_code = &apos;EXPENDITURES&apos; then xte.source_id_int_1 end
and ppa.project_id (+)           = case when xte.application_id = 275 then case xte.entity_code when &apos;REVENUE&apos; then xte.source_id_int_1 when &apos;EXPENDITURES&apos; then peia.project_id end end
-- 222 AR
and aaa.adjustment_id (+)        = case when xte.application_id = 222 and xte.entity_code = &apos;ADJUSTMENTS&apos; then xte.source_id_int_1 end
and rcta.customer_trx_id (+)     = case when xte.application_id = 222 then case xte.entity_code when &apos;TRANSACTIONS&apos; then xte.source_id_int_1 when &apos;BILLS_RECEIVABLE&apos; then xte.source_id_int_1 when &apos;ADJUSTMENTS&apos; then aaa.customer_trx_id end end
and rbsa.batch_source_id (+)     = rcta.batch_source_id
and rbsa.org_id (+)              = rcta.org_id
-- 555 OPM
and gxel.line_id (+)             = case when xdl.application_id = 555 then xdl.source_distribution_id_num_1 end
and gxeh.header_id (+)           = gxel.header_id
and grat.accounting_txn_id (+)   = gxeh.transaction_id
and rt2.transaction_id (+)       = grat.rcv_transaction_id
and we4.wip_entity_id (+)        = rt2.wip_entity_id
and mmt.transaction_id (+)       = gxeh.transaction_id
--
and gjh.status                  = &apos;P&apos;
and gjh.actual_flag             = &apos;A&apos;
and 1=1</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>GL SLA Drillback Diagnostic</REPORT_NAME>
    <DESCRIPTION>GL SLA Drillback Diagnostic</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </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>gl.name=:ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
x.*
from
(
select
gl.name
from
gl_ledgers gl
where
gl.ledger_id in (select gasna.ledger_id from gl_access_set_norm_assign gasna where gasna.access_set_id=nvl(fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;),-1))
order by
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name
) x
where
rownum=1</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </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>gjh.period_name=:period_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Period (past)</LOV_NAME>
    <LOV_GUID>8E2FF36EDED479D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
gp.period_name value,
(
select
xxen_util.meaning(gps.closing_status,&apos;CLOSING_STATUS&apos;,101)||&apos;: &apos;||fnd_date.date_to_displaydate(gps.start_date)||&apos; - &apos;||fnd_date.date_to_displaydate(gps.end_date) description
from
gl_period_statuses gps
where
gp.period_name=gps.period_name and
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
) description,
min(gp.start_date) over (partition by gp.period_name) min_start_date
from
gl_periods gp
where
gp.start_date&lt;=sysdate+400 and
(gp.period_set_name,gp.period_type) in (
select
gl.period_set_name,
gl.accounted_period_type
from
gl_ledgers gl
where
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.operating_unit is null or gl.ledger_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or gl.chart_of_accounts_id in (select fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;))
)
order by
min_start_date desc,
gp.period_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select distinct
max(gp.period_name) keep (dense_rank last order by gp.start_date,gp.period_year,gp.period_num) over () period_name
from
gl.gl_periods gp
where
gp.start_date&lt;=sysdate and
(gp.period_set_name,gp.period_type) in (
select
gl.period_set_name,
gl.accounted_period_type
from
gl_ledgers gl
where
:$flex$.period_from is null and
:$flex$.batch is null and
:$flex$.journal is null and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.chart_of_accounts is null or gl.chart_of_accounts_id in (select fifsv.id_flex_num from fnd_id_flex_structures_vl fifsv where fifsv.application_id=101 and fifsv.id_flex_code=&apos;GL#&apos; and xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;))
)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</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>gjh.je_source in (select gjsv.je_source_name from gl_je_sources_vl gjsv where gjsv.user_je_source_name=:user_je_source_name)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Journal Source</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2379D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gjsv.user_je_source_name value,
gjsv.description 
from 
gl_je_sources_vl gjsv
order by
gjsv.user_je_source_name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Journal Source</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjh.je_category in (select gjcv.je_category_name from gl_je_categories_vl gjcv where gjcv.user_je_category_name=:journal_category)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Journal Category</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2479D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gjcv.user_je_category_name value,
gjcv.description
from
gl_je_categories_vl gjcv
order by
gjcv.user_je_category_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Journal Category</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>
