<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: AP Trial Balance Report Definitions -->
 <REPORTS_ROW>
  <GUID>C319C51DEFDEFFDAE0530100007F6B19</GUID>
  <SQL_TEXT>select
gl.name ledger,
xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101) ledger_category,
xtdv.definition_code,
xtdv.name,
xtdv.description,
xtdjs.je_source_name journal_source,
xxen_util.meaning(xtdv.enabled_flag,&apos;XLA_YES_NO&apos;,602) enabled,
xxen_util.meaning(xtdv.balance_side_code,&apos;XLA_ACCT_NATURAL_SIDE&apos;,602) balance_side_code,
xxen_util.meaning(xtdv.defined_by_code,&apos;XLA_TB_DEFINED_BY&apos;,602) defined_by_code,
xtdv.definition_status_code,
initcap(xtdv.definition_status_code) definition_status,
xxen_util.meaning(xtdv.owner_code,&apos;XLA_OWNER_TYPE&apos;,602) owner,
xtdd.flexfield_segment_code,
xtdd.segment_value_from,
xtdd.segment_value_to,
gcck.concatenated_segments account,
fifsv.id_flex_structure_name chart_of_accounts,
(select distinct
        listagg(fifsv.form_left_prompt,&apos;.&apos;) within group (order by fifsv.segment_num) over (partition by xtdv.definition_code,fifsv.id_flex_num) gl_account_segments
 from   fnd_id_flex_segments_vl fifsv
 where fifsv.application_id  = 101 and
       fifsv.id_flex_code    = &apos;GL#&apos; and
       fifsv.id_flex_num     = gl.chart_of_accounts_id
) gl_segment_names,
(select distinct
        listagg(fifsv.application_column_name,&apos;.&apos;) within group (order by fifsv.segment_num) over (partition by xtdv.definition_code,fifsv.id_flex_num) gl_account_segments
 from   fnd_id_flex_segments_vl fifsv
 where fifsv.application_id  = 101 and
       fifsv.id_flex_code    = &apos;GL#&apos; and
       fifsv.id_flex_num     = gl.chart_of_accounts_id
) gl_segment_columns,
gl.chart_of_accounts_id,
xtdv.ledger_id
from
xla_tb_definitions_vl xtdv,
xla_tb_defn_je_sources xtdjs,
gl_ledgers gl,
xla_tb_defn_details xtdd,
fnd_id_flex_structures_vl fifsv,
gl_code_combinations_kfv gcck
where
xtdjs.definition_code     (+) = xtdv.definition_code and
xtdd.definition_code      (+) = xtdv.definition_code and
gl.ledger_id              (+) = xtdv.ledger_id and
fifsv.application_id      (+) = 101 and
fifsv.id_flex_code        (+) = &apos;GL#&apos; and
fifsv.id_flex_num         (+) = gl.chart_of_accounts_id and
gcck.code_combination_id  (+) = xtdd.code_combination_id and
1=1
order by
gl.name,
xtdv.definition_code</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <XDO_APPLICATION_SHORT_NAME>SQLAP</XDO_APPLICATION_SHORT_NAME>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AP Trial Balance Report Definitions</REPORT_NAME>
    <DESCRIPTION>Accounts Payable Trial Balance Report Definitions</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>:p_application_id=:p_application_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>XLA_SRS_SUBLEDGERS</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
application_id id,
application_name value,
null description
from
(select application_name,application_id from xla_subledgers_fvl union select application_name,application_id from fnd_application_vl where application_id=101)
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>nvl(fnd_profile.value(&apos;XLA_APPL_ID&apos;),fnd_global.RESP_APPL_ID)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>XLA_SRS_SUBLEDGERS</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>xtdv.definition_code=:p_definition_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>XLA_SRS_TB_DEFINITIONS_ALL</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
definition_code id,
name value,
description description
from
xla_tb_definitions_vl
where enabled_flag=&apos;Y&apos;
and (
definition_code in (
select xtd.definition_code
from xla_tb_defn_je_sources xtd
,xla_subledgers xs
where xtd.je_source_name=xs.je_source_name
and xs.application_id=:$flex$.xla_srs_subledgers
)
or decode(:$flex$.xla_srs_subledgers,101,&apos;GL&apos;,&apos;OTHERS&apos;)=&apos;GL&apos;
)
and
(
(nvl(fnd_profile.value(&apos;XLA_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos;)
or
(
nvl(fnd_profile.value(&apos;XLA_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;Y&apos;
and exists
(
select 1
from gl_access_sets gas,
gl_access_set_assignments asa
where gas.access_set_id=asa.access_set_id
and asa.ledger_id=xla_tb_definitions_vl.ledger_id
and (gas.access_set_id=
nvl(fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;),&apos;-1&apos;) or
gas.access_set_id=
nvl(fnd_profile.value(&apos;XLA_GL_SECONDARY_ACCESS_SET_ID&apos;),
&apos;-1&apos;)))))
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>AR</LANGUAGE>
      <PARAMETER_NAME>تعريف التقرير</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>D</LANGUAGE>
      <PARAMETER_NAME>Auswertungsdefinition</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>F</LANGUAGE>
      <PARAMETER_NAME>Définition du rapport</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Definition</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>ZHS</LANGUAGE>
      <PARAMETER_NAME>报表定义</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.xla_srs_subledgers</FLEX_BIND>
    <PARAMETER_NAME>XLA_SRS_SUBLEDGERS</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Report Definition</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>
