<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 Balance Type -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF3C79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Balance Type</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
flvv.description value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
order by
flvv.lookup_code</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 Batch -->
 <LOVS_ROW>
  <GUID>B16C8DB2BC207B92E0530100007F1372</GUID>
  <LOV_NAME>GL Batch</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select distinct
gjb.name value,
gjb.description
from
gl_je_batches gjb
where
gjb.je_batch_id in (select gjh.je_batch_id from gl_je_headers gjh where (:$flex$.journal is null or gjh.name=:$flex$.journal) and gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)))
order by
gjb.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 Budget Name -->
 <LOVS_ROW>
  <GUID>E0594F170E1998F5E0530100007F6EA3</GUID>
  <LOV_NAME>GL Budget Name</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gbv.budget_name value,
gbv.budget_type || &apos; (&apos; || xxen_util.meaning(gbv.status,&apos;PLAN/VERSION STATUS&apos;,101) || &apos;)&apos; description
from
gl_ledgers gl,
gl_budgets gb, 
gl_budget_versions gbv
where
gl.ledger_id=gb.ledger_id and
gb.budget_name=gbv.budget_name and
gb.budget_type=gbv.budget_type and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.balance_type is null or
exists (
select
null
from
fnd_lookup_values_vl flvv
where
xxen_util.contains(:$flex$.balance_type,flvv.description)=&apos;Y&apos; and
flvv.lookup_code=&apos;B&apos; and
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
)
)
order by
value</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 Encumbrance Type -->
 <LOVS_ROW>
  <GUID>E0594F170E1A98F5E0530100007F6EA3</GUID>
  <LOV_NAME>GL Encumbrance Type</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select 
get.encumbrance_type value,
get.description description
from 
gl_encumbrance_types get
where
:$flex$.balance_type is null or
exists (
select
null
from
fnd_lookup_values_vl flvv
where
xxen_util.contains(:$flex$.balance_type,flvv.description)=&apos;Y&apos; and
flvv.lookup_code=&apos;E&apos; and
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
)
order by
value</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 -->
 <LOVS_ROW>
  <GUID>B16C8DB2BC217B92E0530100007F1372</GUID>
  <LOV_NAME>GL Journal</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select distinct
gjh.name value,
gjh.description
from
gl_je_headers gjh
where
(:$flex$.batch is null or gjh.je_batch_id in (select gjb.je_batch_id from gl_je_batches gjb where xxen_util.contains(:$flex$.batch,gjb.name)=&apos;Y&apos;)) and
gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;))
order by
gjh.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 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>
<!-- loader xml for Enginatics Blitz Report lov: GL Segment1 -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECC79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Segment1</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <VERSION_COMMENTS>Concatenate (inactive) to the description of inactive segment values</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Segment2 -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECD79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Segment2</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <VERSION_COMMENTS>Concatenate (inactive) to the description of inactive segment values</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Segment3 -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECE79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Segment3</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <VERSION_COMMENTS>Concatenate (inactive) to the description of inactive segment values</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Segment4 -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECF79D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Segment4</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <VERSION_COMMENTS>Concatenate (inactive) to the description of inactive segment values</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Segment5 -->
 <LOVS_ROW>
  <GUID>8E2FF36EDED079D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Segment5</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <VERSION_COMMENTS>Concatenate (inactive) to the description of inactive segment values</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: Yes -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEA679D2E0530100007F1FF2</GUID>
  <LOV_NAME>Yes</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: TB GL Account Analysis (Drilldown)v2 -->
 <REPORTS_ROW>
  <GUID>337FCD1376F54A51E0632B00000A6537</GUID>
  <SQL_TEXT>with gcck as (select &amp;materialize_hint gcck.* from gl_code_combinations_kfv gcck where 2=2)
select /*+ &amp;leading_hint push_pred(msiv) */
case when count(distinct gp.period_num) over ()&gt;1 then lpad(gp.period_num,2,&apos;0&apos;)||&apos; &apos; end||gjh.period_name period_name,
lpad(gp.period_num,2,&apos;0&apos;)||&apos; &apos;||gjh.period_name period_name_label,
gl.name ledger,
gjsv.user_je_source_name source_name,
gjh.external_reference reference,
gjcv.user_je_category_name category_name,
gjb.name batch_name,
xxen_util.meaning(gjb.status,&apos;MJE_BATCH_STATUS&apos;,101) batch_status,
gjh.posted_date,
gjh.name journal_name,
gjh.description journal_description,
xxen_util.meaning(gjh.tax_status_code,&apos;TAX_STATUS&apos;,101) tax_status_code,
gjl.je_line_num line_number,
gcck.concatenated_segments,
fnd_flex_xml_publisher_apis.process_kff_combination_1(&apos;acct_flex_seg&apos;, &apos;SQLGL&apos;, &apos;GL#&apos;, gcck.chart_of_accounts_id, null, gcck.code_combination_id, &apos;ALL&apos;, &apos;Y&apos;, &apos;DESCRIPTION&apos;) concatenated_segments_desc,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then gjl.entered_dr end line_entered_dr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then gjl.entered_cr end line_entered_cr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then nvl(gjl.entered_dr,0)-nvl(gjl.entered_cr,0) end line_entered_amount,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then gjl.accounted_dr end line_accounted_dr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then gjl.accounted_cr end line_accounted_cr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then nvl(gjl.accounted_dr,0)-nvl(gjl.accounted_cr,0) end line_accounted_amount,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id) then gjl.stat_amount end line_stat_amount,
gjl.description line_description,
zrb.tax_rate_code,
xxen_util.meaning(gjl.tax_line_flag,&apos;YES_NO&apos;,0) tax_line,
xxen_util.meaning(gjl.taxable_line_flag,&apos;YES_NO&apos;,0) taxable_line,
xxen_util.meaning(gjl.amount_includes_tax_flag,&apos;YES_NO&apos;,0) amount_includes_tax,
xxen_util.meaning(xal.accounting_class_code,&apos;XLA_ACCOUNTING_CLASS&apos;,602,&apos;Y&apos;) accounting_class,
xxen_util.meaning(gcck.gl_account_type,&apos;ACCOUNT_TYPE&apos;,0) account_type,
&amp;segment_columns
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl2(xal.gl_sl_link_id,xal.entered_dr,gjl.entered_dr) end entered_dr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl2(xal.gl_sl_link_id,xal.entered_cr,gjl.entered_cr) end entered_cr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl(nvl2(xal.gl_sl_link_id,xal.entered_dr,gjl.entered_dr),0)-nvl(nvl2(xal.gl_sl_link_id,xal.entered_cr,gjl.entered_cr),0) end entered_amount,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl2(xal.gl_sl_link_id,xal.currency_code,gjh.currency_code) end transaction_currency,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl2(xal.gl_sl_link_id,xal.accounted_dr,gjl.accounted_dr) end accounted_dr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl2(xal.gl_sl_link_id,xal.accounted_cr,gjl.accounted_cr) end accounted_cr,
case when 1=row_number() over (partition by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num order by gjl.je_header_id,gjl.je_line_num,xal.gl_sl_link_id,xal.ae_header_id,xal.ae_line_num) then nvl(nvl2(xal.gl_sl_link_id,xal.accounted_dr,gjl.accounted_dr),0)-nvl(nvl2(xal.gl_sl_link_id,xal.accounted_cr,gjl.accounted_cr),0) end accounted_amount,
gl.currency_code ledger_currency,
(select xett.name from xla_event_types_tl xett where xte.application_id=xett.application_id and xte.entity_code=xett.entity_code and xe.event_type_code=xett.event_type_code and xett.language=userenv(&apos;lang&apos;)) event_type,
xal.currency_conversion_date,
(select gdct.user_conversion_type from gl_daily_conversion_types gdct where xal.currency_conversion_type=gdct.conversion_type) currency_conversion_type,
xal.currency_conversion_rate,
xxen_util.description(gjh.actual_flag,&apos;BATCH_TYPE&apos;,101) balance_type,
(select gbv.budget_name from gl_budget_versions gbv where gjh.budget_version_id=gbv.budget_version_id) budget_name,
(select get.encumbrance_type from gl_encumbrance_types get where gjh.encumbrance_type_id=get.encumbrance_type_id) encumbrance_type,
gjh.currency_conversion_date conversion_date,
gjh.currency_conversion_type conversion_type,
gjh.currency_conversion_rate conversion_rate,
xah.description accounting_event_description,
nvl(xah.accounting_date,gjh.default_effective_date) accounting_date,
xe.transaction_date,
xte.transaction_number,
-- Document Sequences
gjh.doc_sequence_id document_seq_id,      
(select fds.name from fnd_document_sequences fds where gjh.doc_sequence_id=fds.doc_sequence_id)  document_seq_name,       
gjh.doc_sequence_value document_seq_value,
nvl(gjl.subledger_doc_sequence_id,xah.doc_sequence_id) sub_doc_seq_id,
(select fds.name from fnd_document_sequences fds where nvl(gjl.subledger_doc_sequence_id,xah.doc_sequence_id)=fds.doc_sequence_id) sub_doc_seq_name,
nvl(gjl.subledger_doc_sequence_value,xah.doc_sequence_value) sub_doc_seq_val,
gjh.close_acct_seq_value gl_close_acct_seq_val,
xah.close_acct_seq_value sl_close_acct_seq_val,
nvl2(xe.event_id,xah.close_acct_seq_value,gjh.close_acct_seq_value) reporting_seq,
nvl2(xal.gl_sl_link_id,xal.jgzz_recon_ref,(select gjlr.jgzz_recon_ref from gl_je_lines_recon gjlr where gjl.je_header_id=gjlr.je_header_id and gjl.je_line_num=gjlr.je_line_num)) reconciliation_reference,
&amp;lp_gjl_dff_cols
coalesce(aia.source,rbsa.name,gjsv.user_je_source_name) sl_source,
decode(gjsv.user_je_source_name,&apos;Assets&apos;,to_char(xte.source_id_int_3),&apos;Payables&apos;,aba.batch_name,&apos;Receivables&apos;,decode(xah.je_category_name,&apos;Receipts&apos;,arba.name,rba.name)) sl_batch_no,
--Assets
fab.asset_number,
--AP
nvl(aia.invoice_num,rcta.trx_number) invoice_number,
nvl(aia.description,rcta.comments) description,
nvl(aia.invoice_date,rcta.trx_date) invoice_date,
aia.gl_date,
nvl(aia.invoice_currency_code,rcta.invoice_currency_code) invoice_currency,
aia.payment_currency_code payment_currency,
nvl(xxen_util.meaning(aia.payment_method_code,&apos;PAYMENT METHOD&apos;,200),aia.payment_method_code) payment_method,
pha.segment1 purchase_order,
pra.release_num release,
rt.quantity po_quantity,
prha.segment1 requisition,
prla.line_num requisition_line,
--AR
coalesce(
ooha.order_number,
case
when xte.entity_code=&apos;TRANSACTIONS&apos; and rcta.interface_header_context in (&apos;ORDER ENTRY&apos;,&apos;INTERCOMPANY&apos;) then to_number(rcta.interface_header_attribute1)
when mmt.transaction_source_type_id in (2,8,12) then (select to_number(mso.segment1) from mtl_sales_orders mso where mmt.transaction_source_id=mso.sales_order_id)
end
) sales_order,
jrrev.resource_name salesperson,
(select name from ra_rules rr where rcta.invoicing_rule_id=rule_id) invoice_rule,
(select rr.name from ra_customer_trx_lines_all rctla, ra_rules rr where rcta.customer_trx_id=rctla.customer_trx_id and rctla.line_type=&apos;LINE&apos; and rctla.accounting_rule_id=rr.rule_id and rownum=1) accounting_rule,
coalesce(aps.segment1,hca.account_number) vendor_or_customer_number,
coalesce(aps.vendor_name,hp.party_name) vendor_or_customer_name,
coalesce(assa.vendor_site_code,hcsua.location) vendor_or_customer_site,
--Projects
coalesce(ppa.segment1,case when xte.application_id=222 and xte.entity_code=&apos;TRANSACTIONS&apos; and rcta.interface_header_context=&apos;PROJECTS INVOICES&apos; then rcta.interface_header_attribute1 end) project,
pt.task_number task,
pea.expenditure_group,
xxen_util.meaning(pea.expenditure_class_code,&apos;EXPENDITURE CLASS CODE&apos;,275) expenditure_class_code,
xxen_util.meaning(pea.expenditure_status_code,&apos;EXPENDITURE STATUS&apos;,275) expenditure_status_code,
pet.expenditure_category,
peia.expenditure_type,
pet.description expenditure_type_description,
peia.expenditure_item_date,
peia.quantity expenditure_item_quantity,
xxen_util.meaning(pet.unit_of_measure,&apos;UNIT&apos;,275) expenditure_unit_of_measure,
papf.full_name employee_name,
nvl(papf.employee_number,papf.npw_number) employee_number,
--Payroll
(select pjv.name from per_jobs_vl pjv where paaf.job_id=pjv.job_id) job,
(select hapft.name from hr_all_positions_f_tl hapft where paaf.position_id=hapft.position_id and hapft.language=userenv(&apos;lang&apos;)) position,
(select haouv.name from hr_all_organization_units_vl haouv where paaf.organization_id=haouv.organization_id) assignment_organization,
--WIP
bd.department_code,
br.resource_code,
we.wip_entity_name wip_job,
wt.operation_seq_num,
nvl(wt.transaction_quantity,mmt.transaction_quantity) transaction_quantity,
nvl(wt.transaction_uom,mmt.transaction_uom) transaction_uom,
nvl(wt.primary_quantity,mmt.primary_quantity) primary_quantity,
--Inventory
xxen_util.client_time(mmt.transaction_date) inv_transaction_date,
mp.organization_code inv_organization,
coalesce(mmt.subinventory_code,rt.subinventory,rsl.to_subinventory) inv_subinventory,
msiv.concatenated_segments inv_item,
msiv.description inv_item_description,
mmt.transaction_cost inv_transaction_unit_cost,
mmt.actual_cost inv_actual_unit_cost,
mmt.transaction_reference inv_transaction_reference,
mtst.transaction_source_type_name inv_transaction_source_type,
mtt.transaction_type_name inv_transaction_type,
case
when mmt.transaction_source_type_id=6 then (select mgd.segment1 from mtl_generic_dispositions mgd where mgd.disposition_id=mmt.transaction_source_id and mgd.organization_id=mmt.organization_id) --Account Alias
when mmt.transaction_source_type_id in (2,8,12) then (select mso.segment1||&apos;.&apos;||mso.segment2||&apos;.&apos;||mso.segment3 from mtl_sales_orders mso where mso.sales_order_id=mmt.transaction_source_id)--Sales Order, Internal Order, RMA
when mmt.transaction_source_type_id=11 then (select ccu.description from cst_cost_updates ccu where ccu.cost_update_id=mmt.transaction_source_id) --Cost Update
when mmt.transaction_source_type_id=9 then (select mcch.cycle_count_header_name from mtl_cycle_count_headers mcch where mcch.cycle_count_header_id=mmt.transaction_source_id) --Cycle Count
when mmt.transaction_source_type_id=3 then (select gcck.concatenated_segments from gl_code_combinations_kfv gcck where gcck.code_combination_id=mmt.transaction_source_id) --Account
when mmt.transaction_source_type_id=13 or mmt.transaction_source_type_id&gt;100 then mmt.transaction_source_name --Inventory
when mmt.transaction_source_type_id=10 then (select mpi.physical_inventory_name from mtl_physical_inventories mpi where mpi.physical_inventory_id=mmt.transaction_source_id and mpi.organization_id=mmt.organization_id) --Physical Inventory
when mmt.transaction_source_type_id=1 then pha.segment1 --PO
when mmt.transaction_source_type_id=16 then (select okhab.contract_number from okc_k_headers_all_b okhab where mmt.transaction_source_id=okhab.id) --Project Contracts
when mmt.transaction_source_type_id=7 then prha.segment1 --Requisition
when mmt.transaction_source_type_id=5 then we.wip_entity_name --WIP Job or Schedule
when mmt.transaction_source_type_id=4 then (select mtrh.request_number from mtl_txn_request_headers mtrh where mtrh.header_id=mmt.transaction_source_id) --Move Order
end inv_transaction_source,
mmt.transaction_id inv_transaction_id,
cwo.comments write_off_comments,
-- TB AR AR_DESCRIPTION
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT CTLA.DESCRIPTION
FROM AR.RA_CUSTOMER_TRX_LINES_ALL CTLA
WHERE CTLA.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;AR Trx Line Desc&quot;,
-- TB AR AR_REFERENCE
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT CTA.ATTRIBUTE4
FROM AR.RA_CUSTOMER_TRX_ALL CTA
WHERE CTA.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;AR Trx Reference&quot;,
-- TB AR CUST_GROUP
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT  tl.description
FROM apps.ra_customer_trx_all t,
       apps.hz_cust_site_uses_all csu,
       applsys.fnd_flex_value_sets s,
       applsys.FND_FLEX_VALUES v,
       applsys.FND_FLEX_VALUES_TL tl
WHERE t.ship_to_site_use_id = csu.site_use_id
       AND v.flex_value_set_id = s.flex_value_set_id
       AND (v.end_date_active IS NULL OR v.end_date_active &gt; SYSDATE)
       AND enabled_flag = &apos;Y&apos;
       AND v.flex_value_id = tl.flex_value_id
       AND flex_value_set_name LIKE &apos;TB_AR_Customer_Level1&apos;
       AND s.zd_edition_name = &apos;SET1&apos;
       AND s.zd_edition_name = v.zd_edition_name
       AND s.zd_edition_name = tl.zd_edition_name
       AND csu.attribute1 = v.flex_value
AND  t.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;Customer Group&quot;,
--TB AR CUST_GROUP_CODE
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT  x.attribute1
FROM APPS.HZ_CUST_SITE_USES_ALL X,
APPS.RA_CUSTOMER_TRX_LINES_ALL Y
WHERE X.SITE_USE_ID = Y.SHIP_TO_SITE_USE_ID
AND Y.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;Customer Group Code&quot;,
-- TB AR CUST_SUB_REGION
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT  tl.description
FROM apps.ra_customer_trx_all t,
       apps.hz_cust_site_uses_all csu,
       applsys.fnd_flex_value_sets s,
       applsys.FND_FLEX_VALUES v,
       applsys.FND_FLEX_VALUES_TL tl
WHERE t.ship_to_site_use_id = csu.site_use_id
       AND v.flex_value_set_id = s.flex_value_set_id
       AND (v.end_date_active IS NULL OR v.end_date_active &gt; SYSDATE)
       AND enabled_flag = &apos;Y&apos;
       AND v.flex_value_id = tl.flex_value_id
       AND flex_value_set_name LIKE &apos;TB_AR_Customer_Level5&apos;
       AND s.zd_edition_name = &apos;SET1&apos;
       AND s.zd_edition_name = v.zd_edition_name
       AND s.zd_edition_name = tl.zd_edition_name
       AND csu.attribute5 = v.flex_value
AND  t.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;Customer Sub Region&quot;,
--TB AR CUST_SUB_REGION_CODE
(CASE WHEN xte.APPLICATION_ID = &apos;222&apos; AND xte.ENTITY_CODE = &apos;TRANSACTIONS&apos; 
THEN (SELECT  x.attribute5
FROM APPS.HZ_CUST_SITE_USES_ALL X,
APPS.RA_CUSTOMER_TRX_LINES_ALL Y
WHERE X.SITE_USE_ID = Y.SHIP_TO_SITE_USE_ID
AND  Y.CUSTOMER_TRX_ID = xte.SOURCE_ID_INT_1
AND ROWNUM &lt; 2) ELSE NULL END) &quot;Customer Sub Region Code&quot;,
--TB PO PO_CAPEX_NO
(CASE
WHEN xte.application_id = &apos;200&apos;
AND xte.entity_code = &apos;AP_INVOICES&apos; THEN
(
SELECT
    pol_t.attribute14
FROM
    xla_distribution_links        xdl_t,
    ap_invoice_distributions_all  aid_t,
    po_distributions_all          pda_t,
    po_lines_all                  pol_t
WHERE   xdl_t.source_distribution_id_num_1 = aid_t.invoice_distribution_id (+)
    AND aid_t.po_distribution_id = pda_t.po_distribution_id (+)
    AND pda_t.po_header_id = pol_t.po_header_id (+)
    AND pda_t.po_line_id = pol_t.po_line_id (+)
    AND xdl_t.application_id = xte.application_id
    --AND xdl_t.ae_header_id = xte.ae_header_id
    --AND xdl_t.ae_line_num = xte.ae_line_num
    AND aid_t.invoice_id = xte.source_id_int_1
    AND ROWNUM &lt; 2
)
WHEN xte.application_id = &apos;707&apos;
AND xte.entity_code = &apos;RCV_ACCOUNTING_EVENTS&apos; THEN
(
SELECT
    pol.attribute14
FROM
    rcv_transactions  trans,
    po_lines_all      pol
WHERE   trans.transaction_id = xte.source_id_int_1
    AND trans.po_header_id = pol.po_header_id
    AND trans.po_line_id = pol.po_line_id
    AND ROWNUM &lt; 2
)
WHEN xte.application_id = &apos;707&apos;
AND xte.entity_code = &apos;MTL_ACCOUNTING_EVENTS&apos; THEN
(
SELECT
    pol.attribute14
FROM
    mtl_material_transactions  mmt,
    rcv_transactions           rt,
    po_lines_all               pol
WHERE   mmt.rcv_transaction_id = rt.transaction_id
    AND rt.po_line_id = pol.po_line_id
    AND mmt.transaction_id = xte.source_id_int_1
    AND ROWNUM &lt; 2
)
WHEN xte.application_id = &apos;555&apos;
AND xte.entity_code = &apos;PURCHASING&apos; THEN
(
SELECT
    pol.attribute14
FROM
    gmf_xla_extract_headers gxh,
    rcv_transactions  trans,
    po_lines_all      pol
WHERE   --gxh.event_id = xte.event_id
    gxh.source_line_id = trans.transaction_id
    AND trans.po_header_id = pol.po_header_id
    AND trans.po_line_id = pol.po_line_id
    AND ROWNUM &lt; 2
)
ELSE
NULL
END) &quot;PO Capex Number&quot;,
-- TB PO PO_CREATED_BY
(CASE WHEN xte.application_id = &apos;555&apos;
AND xte.entity_code = &apos;PURCHASING&apos; THEN
(SELECT fu.user_name
  FROM rcv_transactions trans, po_lines_all pla, fnd_user fu
 WHERE trans.transaction_id = xte.source_id_int_1 
   AND trans.organization_id = xte.source_id_int_3 
   AND fu.user_id = pla.created_by
   AND trans.po_header_id = pla.po_header_id 
   AND trans.po_line_id = pla.po_line_id
   AND trans.transaction_type = &apos;RECEIVE&apos;
AND ROWNUM &lt; 2) ELSE NULL END) &quot;PO_CREATED_BY&quot;,
--TB PO PO_HEADER_COMMENT
(CASE WHEN xte.application_id = &apos;555&apos;
AND xte.entity_code = &apos;PURCHASING&apos; THEN
(SELECT pha.comments
  FROM rcv_transactions trans, po_lines_all pla, po_headers_all pha
 WHERE  trans.transaction_id = xte.source_id_int_1 
   AND trans.organization_id = xte.source_id_int_3 
   AND trans.po_header_id = pha.po_header_id 
   AND pha.po_header_id = pla.po_header_id 
   AND trans.po_line_id = pla.po_line_id
AND ROWNUM &lt; 2) ELSE NULL END) &quot;PO_HEADER_COMMENT&quot;,
--TB PO PO_LINE_DESC
(CASE WHEN xte.application_id = &apos;555&apos;
AND xte.entity_code = &apos;PURCHASING&apos; THEN
(SELECT l.item_description
  FROM rcv_transactions trans, po_lines_all l
 WHERE trans.transaction_id = xte.source_id_int_1 
   AND trans.organization_id = xte.source_id_int_3 
   AND trans.po_header_id = l.po_header_id 
   AND trans.po_line_id = l.po_line_id
AND ROWNUM &lt; 2) ELSE NULL END) &quot;PO_LINE_DESC&quot;,
--AP/AR MDM Party/Site Identifier
nvl2(xal.party_type_code,xal.party_type_code||&apos;-&apos;||nvl(to_char(xal.party_id),&apos;UNKNOWN&apos;)||&apos;-&apos; ||nvl(to_char(xal.party_site_id),&apos;0&apos;),null) mdm_party_id,
decode(xal.party_type_code,
&apos;C&apos;,xal.party_type_code||&apos;-&apos;||nvl(hp.party_name,&apos;UNKNOWN&apos;)||&apos;-&apos; ||nvl(hcsua.location,&apos;0&apos;),
&apos;S&apos;,xal.party_type_code||&apos;-&apos;||nvl(aps.vendor_name,&apos;UNKNOWN&apos;)|| &apos;-&apos;||nvl(assa.vendor_site_code,&apos;0&apos;)
) mdm_party_desc,
--Record history and ID columns
xxen_util.user_name(gjh.created_by) journal_created_by,
gjh.creation_date journal_creation_date,
(select fav.application_name from fnd_application_vl fav where xal.application_id=fav.application_id) application,
gjb.je_batch_id,
gjl.je_header_id,
gjl.context dff_context,
xal.application_id,
xal.ae_header_id,
xal.ae_line_num,
xah.event_id,
xe.event_type_code,
xe.event_date,
xal.accounting_class_code,
xte.entity_code,
&amp;segments_with_desc
xte.source_id_int_1,
gp.start_date period_date,
gp.period_name period,
gcck.chart_of_accounts_id,
case when nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TO_SAME_WORKBOOK&apos;), &apos;N&apos;)=&apos;N&apos; then &apos;=dd&apos; else &apos;=dds&apos; end
||&apos;(&quot;VT&quot;,&quot;&apos;||gl.ledger_id||&apos;,&apos;||gjsv.user_je_source_name||&apos;,&apos;||xah.event_id||&apos;,&apos;||gjl.je_line_num||&apos;&quot;)&apos; view_transaction
from
gl_ledgers gl,
gl_periods gp,
gl_je_batches gjb,
gl_je_headers gjh,
gl_je_lines gjl,
gl_je_sources_vl gjsv,
gl_je_categories_vl gjcv,
(select gir.* from gl_import_references gir where gir.gl_sl_link_table in (&apos;XLAJEL&apos;,&apos;APECL&apos;) and gir.gl_sl_link_id is not null) gir,
xla_ae_lines xal,
xla_ae_headers xah,
xla_events xe,
xla.xla_transaction_entities xte,
gcck,
zx_rates_b zrb,
fa_transaction_headers fth,
fa_additions_b fab,
ap_invoices_all aia,
(select (select distinct max(aipa.invoice_id) keep (dense_rank last order by aipa.invoice_payment_id) over () invoice_id from ap_invoice_payments_all aipa where aca.check_id=aipa.check_id) max_aipa_invoice_id, aca.* from ap_checks_all aca) aca,
ap_batches_all aba,
po_headers_all pha,
po_releases_all pra,
po_requisition_headers_all prha,
po_requisition_lines_all prla,
ap_suppliers aps,
ap_supplier_sites_all assa,
hz_cust_accounts hca,
hz_parties hp,
hz_cust_site_uses_all hcsua,
ra_customer_trx_all rcta,
ra_batch_sources_all rbsa,
ra_batches_all rba,
jtf_rs_salesreps jrs,
jtf_rs_resource_extns_vl jrrev,
ar_adjustments_all aaa,
(select (select araa.customer_trx_id from ar_receivable_applications_all araa where acra.cash_receipt_id=araa.cash_receipt_id and araa.display=&apos;Y&apos; and araa.status=&apos;APP&apos; and rownum=1) customer_trx_id, acra.* from ar_cash_receipts_all acra) acra,
(select acrha.* from ar_cash_receipt_history_all acrha where acrha.current_record_flag=&apos;Y&apos;) acrha,
ar_batches_all arba,
pa_projects_all ppa,
pa_tasks pt,
pa_budget_versions pbv,
pa_draft_revenues_all pdra,
pa_agreements_all paa,
pa_expenditure_items_all peia,
pa_expenditures_all pea,
pa_expenditure_types pet,
per_all_people_f papf,
pay_assignment_actions paa,
per_all_assignments_f paaf,
rcv_transactions rt,
rcv_shipment_lines rsl,
wip_transactions wt,
wip_entities we,
bom_departments bd,
bom_resources br,
gmf_xla_extract_headers gxeh, --OPM
--Inventory
mtl_material_transactions mmt,
mtl_system_items_vl msiv,
mtl_parameters mp,
mtl_transaction_types mtt,
mtl_txn_source_types mtst,
(select (select fspa.inventory_organization_id from financials_system_params_all fspa where cwo.operating_unit_id=fspa.org_id) organization_id, cwo.* from cst_write_offs cwo) cwo,
po_distributions_all pda,
ap_invoice_distributions_all aida,
oe_order_lines_all oola,
oe_order_headers_all ooha
where
1=1 and
gl.period_set_name=gp.period_set_name and
gp.period_name=gjh.period_name and
gp.period_name=gjl.period_name and
gl.ledger_id=gjh.ledger_id and
gjb.je_batch_id=gjh.je_batch_id and
gjh.je_header_id=gjl.je_header_id and
gjh.je_source=gjsv.je_source_name and
gjh.je_category=gjcv.je_category_name 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(+) and
xal.ae_header_id=xah.ae_header_id(+) and
xal.application_id=xah.application_id(+) and
xah.gl_transfer_status_code(+)=&apos;Y&apos; and
xah.accounting_entry_status_code(+)=&apos;F&apos; and
xah.event_id=xe.event_id(+) and
xah.application_id=xe.application_id(+) and
xah.entity_id=xte.entity_id(+) and
xah.application_id=xte.application_id(+) and
&amp;gl_flex_value_security
gjl.code_combination_id=gcck.code_combination_id and
gjl.tax_code_id=zrb.tax_rate_id(+) and
case when xte.application_id=140 then case when xte.entity_code in (&apos;DEPRECIATION&apos;,&apos;DEFERRED_DEPRECIATION&apos;) then xte.source_id_int_1 when xte.entity_code=&apos;TRANSACTIONS&apos; then fth.asset_id end end=fab.asset_id(+) and
case when xte.application_id=140 and xte.entity_code=&apos;TRANSACTIONS&apos; then xte.source_id_int_1 end=fth.transaction_header_id(+) and
coalesce(case when xte.application_id=200 then decode(xte.entity_code,&apos;AP_INVOICES&apos;,xte.source_id_int_1,&apos;AP_PAYMENTS&apos;,aca.max_aipa_invoice_id) end,aida.invoice_id)=aia.invoice_id(+) and 
case when xte.application_id=200 and xte.entity_code=&apos;AP_PAYMENTS&apos; then xte.source_id_int_1 end=aca.check_id(+) and
aia.batch_id=aba.batch_id(+) and
coalesce(case when xte.application_id=201 and xte.entity_code=&apos;PURCHASE_ORDER&apos; then xte.source_id_int_1 end,pra.po_header_id,aia.quick_po_header_id,rt.po_header_id,wt.po_header_id,decode(mmt.transaction_source_type_id,1,mmt.transaction_source_id),pda.po_header_id)=pha.po_header_id(+) and
coalesce(case when xte.application_id=201 and xte.entity_code=&apos;RELEASE&apos; then xte.source_id_int_1 end,rt.po_release_id)=pra.po_release_id(+) and
coalesce(case when xte.application_id=201 and xte.entity_code=&apos;REQUISITION&apos; then xte.source_id_int_1 end,prla.requisition_header_id,decode(mmt.transaction_source_type_id,7,mmt.transaction_source_id))=prha.requisition_header_id(+) and
rt.requisition_line_id=prla.requisition_line_id(+) and
coalesce(decode(xal.party_type_code,&apos;S&apos;,xal.party_id),aia.vendor_id,aca.vendor_id,rt.vendor_id,pha.vendor_id,cwo.vendor_id)=aps.vendor_id(+) and
decode(xal.party_type_code,&apos;S&apos;,xal.party_site_id)=assa.party_site_id(+) and
coalesce(decode(xal.party_type_code,&apos;C&apos;,xal.party_id),rcta.bill_to_customer_id,acra.pay_from_customer,paa.customer_id,oola.sold_to_org_id)=hca.cust_account_id(+) and
hca.party_id=hp.party_id(+) and
decode(xal.party_type_code,&apos;C&apos;,xal.party_site_id)=hcsua.site_use_id(+) and
case when xte.application_id=222 then case when xte.entity_code in (&apos;TRANSACTIONS&apos;,&apos;BILLS_RECEIVABLE&apos;) then xte.source_id_int_1 when xte.entity_code=&apos;ADJUSTMENTS&apos; then aaa.customer_trx_id end end=rcta.customer_trx_id(+) and
rcta.batch_source_id=rbsa.batch_source_id(+) and
rcta.org_id=rbsa.org_id(+) and
rcta.batch_id=rba.batch_id(+) and
rcta.primary_salesrep_id=jrs.salesrep_id(+) and
rcta.org_id=jrs.org_id(+) and
jrs.resource_id=jrrev.resource_id(+) and
case when xte.application_id=222 and xte.entity_code=&apos;ADJUSTMENTS&apos; then xte.source_id_int_1 end=aaa.adjustment_id(+) and
case when xte.application_id=222 and xte.entity_code=&apos;RECEIPTS&apos; then xte.source_id_int_1 end=acra.cash_receipt_id(+) and
acra.cash_receipt_id=acrha.cash_receipt_id(+) and
acrha.batch_id=arba.batch_id(+) and
coalesce(case when xte.application_id=275 then decode(xte.entity_code,&apos;REVENUE&apos;,xte.source_id_int_1,&apos;EXPENDITURES&apos;,peia.project_id) end,pbv.project_id,pdra.project_id,pt.project_id)=ppa.project_id(+) and
case when xte.application_id=275 and xte.entity_code=&apos;BUDGETS&apos; then xte.source_id_int_1 end=pbv.budget_version_id(+) and
case when xte.application_id=275 and xte.entity_code=&apos;REVENUE&apos; then xte.source_id_int_1 end=pdra.project_id(+) and
case when xte.application_id=275 and xte.entity_code=&apos;REVENUE&apos; then xte.source_id_int_2 end=pdra.draft_revenue_num(+) and
pdra.agreement_id=paa.agreement_id(+) and
case when xte.application_id=275 and xte.entity_code=&apos;EXPENDITURES&apos; then xte.source_id_int_1 end=peia.expenditure_item_id(+) and
peia.task_id=pt.task_id(+) and
peia.expenditure_id=pea.expenditure_id(+) and
peia.expenditure_type=pet.expenditure_type(+) and
coalesce(pea.incurred_by_person_id,paaf.person_id)=papf.person_id(+) and
nvl(peia.expenditure_item_date,case when xte.application_id=801 and xte.entity_code=&apos;ASSIGNMENTS&apos; then fnd_date.canonical_to_date(xte.source_id_char_1) end)&gt;=papf.effective_start_date(+) and
nvl(peia.expenditure_item_date,case when xte.application_id=801 and xte.entity_code=&apos;ASSIGNMENTS&apos; then fnd_date.canonical_to_date(xte.source_id_char_1) end)-1&lt;papf.effective_end_date(+) and
case when xte.application_id=801 and xte.entity_code=&apos;ASSIGNMENTS&apos; then xte.source_id_int_1 end=paa.assignment_action_id(+) and
paa.assignment_id=paaf.assignment_id(+) and
case when xte.application_id=801 and xte.entity_code=&apos;ASSIGNMENTS&apos; then fnd_date.canonical_to_date(xte.source_id_char_1) end between paaf.effective_start_date(+) and paaf.effective_end_date(+) and
case
when xte.application_id=707 and xte.entity_code=&apos;RCV_ACCOUNTING_EVENTS&apos; then xte.source_id_int_1
when xte.application_id=555 and gxeh.txn_source=&apos;PUR&apos; then gxeh.source_line_id
end=rt.transaction_id(+) and
rt.shipment_line_id=rsl.shipment_line_id(+) and
case when xte.application_id=707 and xte.entity_code=&apos;WIP_ACCOUNTING_EVENTS&apos; then xte.source_id_int_1 end=wt.transaction_id(+) and
coalesce(wt.wip_entity_id,decode(mmt.transaction_source_type_id,5,mmt.transaction_source_id))=we.wip_entity_id(+) and
wt.department_id=bd.department_id(+) and
wt.resource_id=br.resource_id(+) and
case when xah.application_id=555 then xah.event_id end=gxeh.event_id(+) and
--Inventory
coalesce(case when xte.application_id=707 and xte.entity_code=&apos;MTL_ACCOUNTING_EVENTS&apos; then xte.source_id_int_1
when xah.application_id=555 then gxeh.transaction_id end,cwo.inventory_transaction_id)=mmt.transaction_id(+) and
coalesce(mmt.organization_id,rsl.to_organization_id,we.organization_id,cwo.organization_id)=msiv.organization_id(+) and
coalesce(mmt.inventory_item_id,rsl.item_id,we.primary_item_id,cwo.inventory_item_id)=msiv.inventory_item_id(+) and
coalesce(mmt.organization_id,rt.organization_id,rsl.to_organization_id,we.organization_id)=mp.organization_id(+) and
mmt.transaction_type_id=mtt.transaction_type_id(+) and
mmt.transaction_source_type_id=mtst.transaction_source_type_id(+) and
case when xte.application_id=707 and xte.entity_code=&apos;WO_ACCOUNTING_EVENTS&apos; then xte.source_id_int_1 end=cwo.write_off_id(+) and
cwo.po_distribution_id=pda.po_distribution_id(+) and
cwo.invoice_distribution_id=aida.invoice_distribution_id(+) and
coalesce(decode(gxeh.txn_source,&apos;OM&apos;,gxeh.source_line_id),case when mmt.transaction_source_type_id in (2,8,12) then mmt.trx_source_line_id end,rsl.oe_order_line_id,rt.oe_order_line_id)=oola.line_id(+) and
coalesce(oola.header_id,rsl.oe_order_header_id,rt.oe_order_header_id)=ooha.header_id(+)
order by
gl.name,
gcck.concatenated_segments,
gp.start_date,
gp.period_name,
gjb.je_batch_id,
gjl.je_header_id,
gjl.je_line_num ,
xe.transaction_date,
xte.transaction_number</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <NUMBER_FORMAT>#,##0.00;[Red]-#,##0.00</NUMBER_FORMAT>
  <COPIED_FROM_GUID>2379A67C7A3D1532E0636AFB09051BB2</COPIED_FROM_GUID>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>TB GL Account Analysis (Drilldown)v2</REPORT_NAME>
    <DESCRIPTION>Detail GL transaction report with one line per transaction including all segments and subledger data, with amounts in both transaction currency and ledger currency. This report is used by the GL Financial Statement and Drilldown report, to show subledger details. This also has inventory and WIP details.</DESCRIPTION>
    <REQUIRED_PARAMETERS_MESSAGE>Please enter a period, posted date, batch or journal restriction</REQUIRED_PARAMETERS_MESSAGE>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Tiger Custom</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;gl_flex_value_security</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;leading_hint</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;lp_gjl_dff_cols</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;materialize_hint</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;segment_columns</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;segments_with_desc</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>select xxen_fsg.effective_dates_where_clause(:effective_dates_string) from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Effective Dates String</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>select xxen_fsg.multiple_periods_where_clause(:multiple_periods_string,:ledger) from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Multiple Periods String</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>-40</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;gl_flex_value_security</ANCHOR>
    <SQL_TEXT>select &apos;gl_security_pkg.validate_access(null,gcck.code_combination_id)=&apos;&apos;TRUE&apos;&apos; and&apos; from dual where xxen_util.has_flex_value_security=&apos;Y&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>x</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL Flex Value Security</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(gjl.je_header_id,gjl.je_line_num) in 
(
select
xxen_util.instring(dbms_lob.substr(xrrpv.value),&apos;|&apos;,1) je_header_id,
xxen_util.instring(dbms_lob.substr(xrrpv.value),&apos;|&apos;,2) je_line_num
from
xxen_report_run_param_values xrrpv
where
xrrpv.parameter_id in (select xrpv.parameter_id from xxen_report_parameters_v xrpv where xrpv.parameter_name=&apos;je_header_id|je_line_num&apos;) and
xrrpv.run_id=:run_id
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>je_header_id|je_line_num</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</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>coalesce(xxen_util.previous_parameter_value(:parameter_id),xxen_util.default_ledger)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <ANCHOR>&amp;segment_columns</ANCHOR>
    <SQL_TEXT>select distinct
&apos;gcck.&apos;||lower(fifsv.application_column_name)||&apos; &quot;&apos;||substrb(fifsv.form_left_prompt_,1,xxen_report.max_column_length)||&apos;&quot;,&apos;||chr(10)||
&apos;xxen_util.segment_description(gcck.&apos;||lower(fifsv.application_column_name)||&apos;, &apos;&apos;&apos;||fifsv.application_column_name||&apos;&apos;&apos;, gcck.chart_of_accounts_id&apos;||
(
select
&apos;, gcck.&apos;||lower(fifs.application_column_name)
from
fnd_id_flex_segments fifs
where
fifsv.application_id=fifs.application_id and
fifsv.id_flex_code=fifs.id_flex_code and
fifsv.id_flex_num=fifs.id_flex_num and
fifsv.enabled_flag=fifs.enabled_flag and
fifs.flex_value_set_id=(select ffvs.parent_flex_value_set_id from fnd_flex_value_sets ffvs where fifsv.flex_value_set_id=ffvs.flex_value_set_id)
)||&apos;)&apos;||&apos; &quot;&apos;||substrb(fifsv.form_left_prompt_,1,xxen_report.max_column_length-5)||&apos; desc&quot;,&apos; text,
min(fifsv.id_flex_num) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) min_id_flex_num,
min(fifsv.segment_num) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) min_segment_num
from
(select xxen_util.init_cap(fifsv.form_left_prompt) form_left_prompt_, fifsv.* from fnd_id_flex_segments_vl fifsv) fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.id_flex_num in (select gl.chart_of_accounts_id from gl_ledgers gl where xxen_util.contains(:ledger,gl.name)=&apos;Y&apos;)
order by
min_id_flex_num,
min_segment_num</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.ledger_id=:ledger_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>&amp;segment_columns</ANCHOR>
    <SQL_TEXT>select distinct
&apos;gcck.&apos;||lower(fifsv.application_column_name)||&apos; &quot;&apos;||substrb(fifsv.form_left_prompt_,1,xxen_report.max_column_length)||&apos;&quot;,&apos;||chr(10)||
&apos;xxen_util.segment_description(gcck.&apos;||lower(fifsv.application_column_name)||&apos;, &apos;&apos;&apos;||fifsv.application_column_name||&apos;&apos;&apos;, gcck.chart_of_accounts_id&apos;||
(
select
&apos;, gcck.&apos;||lower(fifs.application_column_name)
from
fnd_id_flex_segments fifs
where
fifsv.application_id=fifs.application_id and
fifsv.id_flex_code=fifs.id_flex_code and
fifsv.id_flex_num=fifs.id_flex_num and
fifsv.enabled_flag=fifs.enabled_flag and
fifs.flex_value_set_id=(select ffvs.parent_flex_value_set_id from fnd_flex_value_sets ffvs where fifsv.flex_value_set_id=ffvs.flex_value_set_id)
)||&apos;)&apos;||&apos; &quot;&apos;||substrb(fifsv.form_left_prompt_,1,xxen_report.max_column_length-5)||&apos; desc&quot;,&apos; text,
min(fifsv.id_flex_num) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) min_id_flex_num,
min(fifsv.segment_num) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) min_segment_num
from
(select xxen_util.init_cap(fifsv.form_left_prompt) form_left_prompt_, fifsv.* from fnd_id_flex_segments_vl fifsv) fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.id_flex_num in (select gl.chart_of_accounts_id from gl_ledgers gl where gl.ledger_id =:ledger_id)
order by
min_id_flex_num,
min_segment_num</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gp.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>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>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>
    <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>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>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_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjb.name=:batch</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Batch</LOV_NAME>
    <LOV_GUID>B16C8DB2BC207B92E0530100007F1372</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select distinct
gjb.name value,
gjb.description
from
gl_je_batches gjb
where
gjb.je_batch_id in (select gjh.je_batch_id from gl_je_headers gjh where (:$flex$.journal is null or gjh.name=:$flex$.journal) and gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)))
order by
gjb.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Batch</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjb.je_batch_id=:batch_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Batch ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjh.name=:journal</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Journal</LOV_NAME>
    <LOV_GUID>B16C8DB2BC217B92E0530100007F1372</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select distinct
gjh.name value,
gjh.description
from
gl_je_headers gjh
where
(:$flex$.batch is null or gjh.je_batch_id in (select gjb.je_batch_id from gl_je_batches gjb where xxen_util.contains(:$flex$.batch,gjb.name)=&apos;Y&apos;)) and
gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;))
order by
gjh.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Journal</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjh.je_header_id=:je_header_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Journal Header ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjl.je_line_num=:journal_line</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Journal Line Num</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gcck.code_combination_id=:code_combination_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Concatenated Segments</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <ANCHOR>&amp;leading_hint</ANCHOR>
    <SQL_TEXT>leading(gl gp gcck gjl)</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Concatenated Segments</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <ANCHOR>&amp;materialize_hint</ANCHOR>
    <SQL_TEXT>/*+ materialize*/</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Concatenated Segments</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gjh.actual_flag in (select flvv.lookup_code from fnd_lookup_values_vl flvv where flvv.description=:balance_type and flvv.lookup_type=&apos;BATCH_TYPE&apos; and flvv.view_application_id=101 and flvv.security_group_id=0)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Balance Type</LOV_NAME>
    <LOV_GUID>8E2FF36EDF3C79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flvv.description value,
flvv.lookup_code description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
order by
flvv.lookup_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select flv.description
from fnd_lookup_values flv
where flv.lookup_type=&apos;BATCH_TYPE&apos;
and flv.view_application_id=101
and flv.language(+)=userenv(&apos;lang&apos;)
and flv.security_group_id=0
and flv.lookup_code = &apos;A&apos;</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Balance Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(gjh.actual_flag&lt;&gt;&apos;B&apos; or gjh.budget_version_id in (select gbv.budget_version_id from gl_budget_versions gbv where gbv.budget_name = :budget_name))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Budget Name</LOV_NAME>
    <LOV_GUID>E0594F170E1998F5E0530100007F6EA3</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gbv.budget_name value,
gbv.budget_type || &apos; (&apos; || xxen_util.meaning(gbv.status,&apos;PLAN/VERSION STATUS&apos;,101) || &apos;)&apos; description
from
gl_ledgers gl,
gl_budgets gb, 
gl_budget_versions gbv
where
gl.ledger_id=gb.ledger_id and
gb.budget_name=gbv.budget_name and
gb.budget_type=gbv.budget_type and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.balance_type is null or
exists (
select
null
from
fnd_lookup_values_vl flvv
where
xxen_util.contains(:$flex$.balance_type,flvv.description)=&apos;Y&apos; and
flvv.lookup_code=&apos;B&apos; and
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
)
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Budget Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(gjh.actual_flag&lt;&gt;&apos;E&apos; or gjh.encumbrance_type_id in (select get.encumbrance_type_id from gl_encumbrance_types get where get.encumbrance_type = :encumbrance_type))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Encumbrance Type</LOV_NAME>
    <LOV_GUID>E0594F170E1A98F5E0530100007F6EA3</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
get.encumbrance_type value,
get.description description
from 
gl_encumbrance_types get
where
:$flex$.balance_type is null or
exists (
select
null
from
fnd_lookup_values_vl flvv
where
xxen_util.contains(:$flex$.balance_type,flvv.description)=&apos;Y&apos; and
flvv.lookup_code=&apos;E&apos; and
flvv.lookup_type=&apos;BATCH_TYPE&apos; and
flvv.view_application_id=101 and
flvv.security_group_id=0
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Encumbrance Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;segments_with_desc</ANCHOR>
    <SQL_TEXT>select
&apos;gcck.&apos;||lower(fifsv.application_column_name)||&apos;||&apos;&apos; - &apos;&apos;&apos;||&apos;||xxen_util.segment_description(gcck.&apos;||lower(fifsv.application_column_name)||&apos;, &apos;&apos;&apos;||fifsv.application_column_name||&apos;&apos;&apos;, gcck.chart_of_accounts_id&apos;||
(
select
&apos;, gcck.&apos;||lower(fifs.application_column_name)
from
fnd_id_flex_segments fifs
where
fifsv.application_id=fifs.application_id and
fifsv.id_flex_code=fifs.id_flex_code and
fifsv.id_flex_num=fifs.id_flex_num and
fifsv.enabled_flag=fifs.enabled_flag and
fifs.flex_value_set_id=(select ffvs.parent_flex_value_set_id from fnd_flex_value_sets ffvs where fifsv.flex_value_set_id=ffvs.flex_value_set_id)
)||&apos;)&apos;||&apos; &quot;&apos;||substrb(xxen_util.init_cap(fifsv.form_left_prompt),1,xxen_report.max_column_length-10)||&apos; with desc&quot;,&apos; text
from
fnd_id_flex_segments_vl fifsv
where
:p_show_seg_desc is not null and
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where xxen_util.contains(:ledger,gl.name)=&apos;Y&apos; and rownum=1)
order by
fifsv.segment_num</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Segments with Descriptions</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>24</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;lp_gjl_dff_cols</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;gl_je_lines&apos;, p_column_name_prefix=&gt;&apos;JL &apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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 Journal Line DFF Attributes</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <ANCHOR>&amp;lp_gjl_dff_cols_null</ANCHOR>
    <SQL_TEXT>select xxen_util.dff_columns(p_table_name=&gt;&apos;gl_je_lines&apos;, p_column_name_prefix=&gt;&apos;JL &apos;, p_prefix=&gt;&apos;null &apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Show Journal Line DFF Attributes</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment1&gt;=:segment1_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment1</LOV_NAME>
    <LOV_GUID>8E2FF36EDECC79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment1&lt;=:segment1_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment1</LOV_NAME>
    <LOV_GUID>8E2FF36EDECC79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT1&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.gl_segment1_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <DISPLAY_SEQUENCE>180</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment2&gt;=:segment2_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment2</LOV_NAME>
    <LOV_GUID>8E2FF36EDECD79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>29</SORT_ORDER>
    <DISPLAY_SEQUENCE>190</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment2&lt;=:segment2_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment2</LOV_NAME>
    <LOV_GUID>8E2FF36EDECD79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT2&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.gl_segment2_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>30</SORT_ORDER>
    <DISPLAY_SEQUENCE>200</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment3&gt;=:segment3_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment3</LOV_NAME>
    <LOV_GUID>8E2FF36EDECE79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>31</SORT_ORDER>
    <DISPLAY_SEQUENCE>210</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment3&lt;=:segment3_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment3</LOV_NAME>
    <LOV_GUID>8E2FF36EDECE79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT3&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.gl_segment3_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>32</SORT_ORDER>
    <DISPLAY_SEQUENCE>220</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment4&gt;=:segment4_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment4</LOV_NAME>
    <LOV_GUID>8E2FF36EDECF79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>33</SORT_ORDER>
    <DISPLAY_SEQUENCE>230</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment4&lt;=:segment4_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment4</LOV_NAME>
    <LOV_GUID>8E2FF36EDECF79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT4&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.gl_segment4_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>34</SORT_ORDER>
    <DISPLAY_SEQUENCE>240</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment5&gt;=:segment5_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment5</LOV_NAME>
    <LOV_GUID>8E2FF36EDED079D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>35</SORT_ORDER>
    <DISPLAY_SEQUENCE>250</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>gcck.segment5&lt;=:segment5_to</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Segment5</LOV_NAME>
    <LOV_GUID>8E2FF36EDED079D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
gl_security_pkg.validate_segval(fifsgv.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
fifsgv.application_column_name=&apos;SEGMENT5&apos; and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
fifsgv.id_flex_num in (
select /*+ no_unnest*/ 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; or 
fifsgv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos; or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&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(+))
)
)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.gl_segment5_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5 To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.balance_type</FLEX_BIND>
    <PARAMETER_NAME>Balance Type</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Budget Name</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.balance_type</FLEX_BIND>
    <PARAMETER_NAME>Balance Type</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Encumbrance Type</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.batch</FLEX_BIND>
    <PARAMETER_NAME>Batch</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Journal</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.batch</FLEX_BIND>
    <PARAMETER_NAME>Batch</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.gl_segment1_from</FLEX_BIND>
    <PARAMETER_NAME>GL_SEGMENT1 From</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT1 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.gl_segment2_from</FLEX_BIND>
    <PARAMETER_NAME>GL_SEGMENT2 From</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT2 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.gl_segment3_from</FLEX_BIND>
    <PARAMETER_NAME>GL_SEGMENT3 From</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT3 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.gl_segment4_from</FLEX_BIND>
    <PARAMETER_NAME>GL_SEGMENT4 From</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT4 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.gl_segment5_from</FLEX_BIND>
    <PARAMETER_NAME>GL_SEGMENT5 From</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT5 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.journal</FLEX_BIND>
    <PARAMETER_NAME>Journal</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Batch</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.journal</FLEX_BIND>
    <PARAMETER_NAME>Journal</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Batch</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Budget Name</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT1 From</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT1 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT2 From</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT2 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT3 From</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT3 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT4 From</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT4 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT5 From</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>GL_SEGMENT5 To</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Journal</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </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>
