<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: GL Financial Statement and Drilldown (FSG) (Backup) -->
 <REPORTS_ROW>
  <GUID>3A376D8F472FAEF6E06362FB0905E9E3</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
:period_name period_name,
:balance_type balance_type,
:average_balance_type average_balance_type,
:template_name,
:actual_flag actual_flag,
:ledger ledger_name,
:budget_name budget_name,
:currency_code currency_code,
:currency_type,
:conversion_type,
:amount_type,
:encumbrance_type encumbrance_type,
:account_type account_type,
:movement movement,
:translated_flag translated_flag,
:gl_segments gl_segments,
:fsg_report,
:fsg_converter,
:gl_segments_cb gl_segments_cb,
:get_balance_function get_balance_function,
:balance_drilldown_function balance_drilldown_function,
:expand_segment_function expand_segment_function,
:period_offset_function period_offset_function,
:hierarchy_name,
:custom_properties,
:default_hierarchy,
:gl_segment,
:gl_segment_value,
:next_segment_value,
:discover_period_name,
:daily_rates,
:period_year,
:period_num,
:journal_source,
:journal_category,
:gl_segment1 gl_segment1,
:gl_segment2 gl_segment2,
:gl_segment3 gl_segment3,
:gl_segment4 gl_segment4,
:gl_segment5 gl_segment5,
:gl_segment6 gl_segment6,
:gl_segment7 gl_segment7,
:gl_segment8 gl_segment8,
:gl_segment9 gl_segment9,
:gl_segment10 gl_segment10,
:gl_segment11,
:gl_segment12,
:gl_segment13,
:gl_segment14,
:gl_segment15,
:gl_segment16,
:gl_segment17,
:gl_segment18,
:gl_segment19,
:gl_segment20,
:create_lov create_lov,
:responsibility_name responsibility_name,
:responsibility_key,
:balance_drilldown_new,
:gl_journal_drilldown,
:gl_subledger_details,
:gl_journal_drilldown_m,
:gl_subledger_details_m,
:gl_full_journal_drilldown,
:gl_journal_attachment_dd,
:drilldown_resp,
:batch_name,
:journal_name,
:document_number,
:posting_status,
:fund_status,
:created_by,
:effective_date
from
dual
where
1=1</SQL_TEXT>
  <TYPE>F</TYPE>
  <COPIED_FROM_GUID>D651DE2041652BFFE0530100007F0134</COPIED_FROM_GUID>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>GL Financial Statement and Drilldown (FSG) (Backup)</REPORT_NAME>
    <DESCRIPTION>The GL Financial Statement and Drilldown (FSG) Report empowers users to generate comprehensive reports on financial balances while providing detailed insights through drilldown capabilities. This tool allows users to link Excel cells directly to Oracle data via built-in functions, ensuring that data can be refreshed as needed to reflect the most up-to-date information.
Key features include:
1. Balance and Detail Reporting: Generate high-level balance reports and drill down into the details, including journal entries and subledger transactions.
2. Oracle Data Integration: Seamlessly link Excel cells to Oracle data, with the ability to refresh the data for real-time updates.
3. Drilldown Functionality: Access detailed information at various levels, including balances, journal entries, and subledger details.
4. Migration Tools: Converters are available to migrate reports from Oracle FSG, GL Wand, and Spreadsheet Server to this solution.

For a quick demonstration, refer to our YouTube video.
https://youtu.be/dsRWXT2bem8

Important: Please do not delete the &quot;Financial Statement Generator&quot; sheet or modify the Advanced Custom Properties in the Excel output, as these are essential for the proper functioning of the report.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:account_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:actual_flag</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:amount_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:average_balance_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:balance_drilldown_function</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:balance_drilldown_new</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:balance_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:batch_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:budget_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:conversion_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:create_lov</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:created_by</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:currency_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:currency_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:custom_properties</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:daily_rates</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:default_hierarchy</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:discover_period_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:document_number</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:drilldown_resp</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:effective_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:encumbrance_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:expand_segment_function</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:fsg_converter</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:fsg_report</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:fund_status</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:get_balance_function</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_full_journal_drilldown</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_journal_attachment_dd</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_journal_drilldown</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_journal_drilldown_m</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment10</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment11</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment12</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment13</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment14</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment15</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment16</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment17</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment18</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment19</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment20</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment7</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment8</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment9</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segment_value</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segments</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_segments_cb</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_subledger_details</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gl_subledger_details_m</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:hierarchy_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:journal_category</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:journal_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:journal_source</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:ledger</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:movement</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:next_segment_value</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period_num</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period_offset_function</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:period_year</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:posting_status</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:responsibility_key</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:responsibility_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:template_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:translated_flag</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-680</DISPLAY_SEQUENCE>
    <ANCHOR>:effective_date</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select &apos;value&apos; value, &apos;description&apos; description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>EFFECTIVE_DATE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-670</DISPLAY_SEQUENCE>
    <ANCHOR>:created_by</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
fu.user_name id,
fu.user_name value,
trim(coalesce(
trim(papf.first_name||&apos; &apos;||papf.last_name),
fu.description
)||fu.inactive) description
from
(select case when sysdate between fu.start_date and nvl(fu.end_date,sysdate) then null else &apos; (inactive)&apos; end inactive, fu.* from fnd_user fu) fu,
(select papf.* from per_all_people_f papf where sysdate between papf.effective_start_date and papf.effective_end_date) papf,
(
select distinct
furg.user_id,
count(*) over (partition by furg.user_id) resp_count,
max(fr.responsibility_key) over (partition by furg.user_id) max_responsibility_key
from
fnd_responsibility fr,
fnd_user_resp_groups_direct furg
where
fr.responsibility_id=furg.responsibility_id and
fr.application_id=furg.responsibility_application_id
) furg
where
fu.employee_id=papf.person_id(+) and
fu.user_id=furg.user_id(+) and
not (furg.resp_count=1 and furg.max_responsibility_key=&apos;IRC_EXT_CANDIDATE&apos;) and
exists (select * from gl_je_headers gjh where gjh.created_by=fu.user_id)
order by
fu.inactive desc,
fu.user_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CREATED_BY</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>-660</DISPLAY_SEQUENCE>
    <ANCHOR>:fund_status</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
flv.meaning id,
flv.meaning value,
flv.description description
from
fnd_lookup_values flv
where
flv.lookup_type=&apos;JE_BATCH_BC_STATUS&apos; and
flv.view_application_id=101 and
flv.language=&apos;US&apos; and
flv.enabled_flag=&apos;Y&apos; and
flv.security_group_id=0</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FUND_STATUS</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>-650</DISPLAY_SEQUENCE>
    <ANCHOR>:posting_status</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select x.value id, x.value, x.description from (
select xxen_util.meaning(&apos;P&apos;,&apos;BATCH_STATUS&apos;,101) value, null description from dual union all
select xxen_util.meaning(&apos;U&apos;,&apos;BATCH_STATUS&apos;,101) value, null description from dual union all
select xxen_util.meaning(&apos;E&apos;,&apos;VALIDATION_STATUS&apos;,101) value, null description from dual
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>POSTING_STATUS</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>-640</DISPLAY_SEQUENCE>
    <ANCHOR>:journal_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
gjh.name id,
gjh.name value,
gjh.description
from
gl_je_headers gjh
where
gjh.period_name=:$flex$.pn and
(:$flex$.bn is null or gjh.je_batch_id in (select gjb.je_batch_id from gl_je_batches gjb where xxen_util.contains(:$flex$.bn,gjb.name)=&apos;Y&apos;)) and
gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ln,gl.name)=&apos;Y&apos;)
order by
gjh.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>JOURNAL_NAME</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>-630</DISPLAY_SEQUENCE>
    <ANCHOR>:batch_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
gjb.name id,
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 gjh.period_name=:$flex$.pn and (:$flex$.jn is null or gjh.name=:$flex$.jn) and gjh.ledger_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ln,gl.name)=&apos;Y&apos;))
order by
gjb.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>BATCH_NAME</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>-620</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_subledger_details_m</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_SD&apos;&apos;), &apos;&apos;GL Account Analysis (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_SD&apos;&apos;), &apos;&apos;FSG Subgledger Details&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;Ledger ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ln,
parameter3=&gt;&apos;&apos;Period&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.bt not in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;,&apos;&apos;JED&apos;&apos;,&apos;&apos;JEDU&apos;&apos;,&apos;&apos;JEDP&apos;&apos;) then :$flex$.pn end,
parameter4=&gt;&apos;&apos;Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;Posted&apos;&apos;,
parameter5=&gt;&apos;&apos;Concatenated Segments&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.cs,
parameter6=&gt;&apos;&apos;Balance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.af=&apos;&apos;A&apos;&apos; then &apos;&apos;Actual&apos;&apos; when :$flex$.af=&apos;&apos;B&apos;&apos; then &apos;&apos;Budget&apos;&apos; else &apos;&apos;Encumbrance&apos;&apos; end,
parameter7=&gt;&apos;&apos;Budget Name&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.bn,
parameter8=&gt;&apos;&apos;Encumbrance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.et,
parameter9=&gt;&apos;&apos;Journal Source&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.js,
parameter10=&gt;&apos;&apos;Journal Category&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jc,
parameter11=&gt;&apos;&apos;Multiple Periods String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.bt in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;) then :$flex$.bt||:$flex$.pn end,
parameter12=&gt;&apos;&apos;Effective Dates String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when instr(:$flex$.bt,&apos;&apos;JED&apos;&apos;)&gt;0 then :$flex$.pn end,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>SDM</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>-610</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_journal_drilldown_m</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_GJ&apos;&apos;), &apos;&apos;GL Journals (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GJ&apos;&apos;), &apos;&apos;GL Journal Drilldown&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;Ledger ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ln,
parameter3=&gt;&apos;&apos;Period&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.bt not in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;,&apos;&apos;JED&apos;&apos;,&apos;&apos;JEDU&apos;&apos;,&apos;&apos;JEDP&apos;&apos;) then :$flex$.pn end,
parameter4=&gt;&apos;&apos;Posting Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.ps is not null then :$flex$.ps when :$flex$.bt=&apos;&apos;JED&apos;&apos; then &apos;&apos;&apos;&apos; when :$flex$.bt=&apos;&apos;JEDU&apos;&apos; then &apos;&apos;Unposted&apos;&apos; else &apos;&apos;Posted&apos;&apos; end,
parameter5=&gt;&apos;&apos;Code Combination ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.cs,
parameter6=&gt;&apos;&apos;Show Attachment Details&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;N&apos;&apos;,
parameter7=&gt;&apos;&apos;Balance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.af=&apos;&apos;A&apos;&apos; then &apos;&apos;Actual&apos;&apos; when :$flex$.af=&apos;&apos;B&apos;&apos; then &apos;&apos;Budget&apos;&apos; else &apos;&apos;Encumbrance&apos;&apos; end,
parameter8=&gt;&apos;&apos;Budget Name&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.bn,
parameter9=&gt;&apos;&apos;Encumbrance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.et,
parameter10=&gt;&apos;&apos;Journal Source&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.js,
parameter11=&gt;&apos;&apos;Journal Category&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jc,
parameter12=&gt;&apos;&apos;Multiple Periods String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.bt in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;) then :$flex$.bt||:$flex$.pn end,
parameter13=&gt;&apos;&apos;Amount Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.bt,
parameter14=&gt;&apos;&apos;Batch&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.batch,
parameter15=&gt;&apos;&apos;Journal&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jn,
parameter16=&gt;&apos;&apos;Creation Date From&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.dcf,
parameter17=&gt;&apos;&apos;Creation Date To&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.dct,
parameter18=&gt;&apos;&apos;Posted Date From&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.pdf,
parameter19=&gt;&apos;&apos;Posted Date To&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.pdt,
parameter20=&gt;&apos;&apos;Created By&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.cd,
parameter21=&gt;&apos;&apos;Funds Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.fs,
parameter22=&gt;&apos;&apos;Reference&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.er,
parameter23=&gt;&apos;&apos;Effective Dates String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when instr(:$flex$.bt,&apos;&apos;JED&apos;&apos;)&gt;0 then :$flex$.pn end,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GJM</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>-600</DISPLAY_SEQUENCE>
    <ANCHOR>:balance_drilldown_new</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.balance_drilldown(
&apos;&apos;GL_BALANCE_DRILLDOWN_NEW&apos;&apos;,
:$flex$.ln,
:$flex$.pn,
:$flex$.bt,
:$flex$.cc,
:$flex$.tf,
:$flex$.af,
:$flex$.bn,
:$flex$.et,
:$flex$.mo,
:$flex$.mu,
:$flex$.s1,
:$flex$.s2,
:$flex$.s3,
:$flex$.s4,
:$flex$.s5,
:$flex$.s6,
:$flex$.s7,
:$flex$.s8,
:$flex$.s9,
:$flex$.s10,
:$flex$.s11,
:$flex$.s12,
:$flex$.s13,
:$flex$.s14,
:$flex$.s15,
:$flex$.s16,
:$flex$.s17,
:$flex$.s18,
:$flex$.s19,
:$flex$.s20,
:$flex$.js,
:$flex$.jc,
:$flex$.ccid,
:p_balance_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_BALANCE_DRILLDOWN_NEW</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>-590</DISPLAY_SEQUENCE>
    <ANCHOR>:fsg_report</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
rrv.name id,
rrv.name value,
rrv.report_title description
from
rg_reports_v rrv
order by
rrv.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FSG_REPORT</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>-580</DISPLAY_SEQUENCE>
    <ANCHOR>:fsg_converter</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_ORACLE_TO_BLITZ_CONVERTER&apos;&apos;), &apos;&apos;GL Oracle FSG Converter&apos;&apos;),
parameter1=&gt;&apos;&apos;Report Name&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.report_name,
parameter2=&gt;&apos;&apos;Ledger&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ledger,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FSG_CONVERTER</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>-570</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.application_column_name=:$flex$.gl_segment
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>-560</DISPLAY_SEQUENCE>
    <ANCHOR>:drilldown_resp</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select 
x.id,x.value,x.description
from
(
select
&apos;Default&apos; id,
&apos;Default&apos; value,
&apos;Default&apos; description,
1 sort_no
from
dual
union all
select
frv.responsibility_key id,
frv.responsibility_name value,
fav.application_short_name description,
2 sort_no
from
fnd_form_functions_vl fffv,
fnd_application_vl fav,
fnd_responsibility_vl frv,
fnd_compiled_menu_functions fcmf
where
1=1 and
fffv.function_name=&apos;XLA_LINESINQ_GL_DRILLDOWN&apos; and
fffv.function_id=fcmf.function_id and
frv.menu_id=fcmf.menu_id and
nvl(fcmf.grant_flag,&apos;Y&apos;)=&apos;Y&apos; and
frv.application_id=fav.application_id(+) and
(frv.application_id,frv.responsibility_id) in
(
select
furg.responsibility_application_id,
furg.responsibility_id
from
fnd_user fu,
fnd_user_resp_groups furg
where
fu.user_name=:$flex$.user_name_like and
fu.user_id=furg.user_id )
) x
order by
x.sort_no,
x.id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>DRILLDOWN_RESP</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>-550</DISPLAY_SEQUENCE>
    <ANCHOR>:template_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
xrtv.template_name id,
null value,
null description
from 
xxen_report_templates_v xrtv,
xxen_reports_v xrv
where 
xrv.report_name=:$flex$.report_name and
xrtv.report_id=xrv.report_id and  
(xrtv.owner_id=xxen_util.user_id(:$flex$.user_name) or
xrtv.access_allowed=&apos;Y&apos; or 
fnd_profile.value(&apos;XXEN_REPORT_ACCESS&apos;) in (&apos;D&apos;,&apos;S&apos;) or 
fnd_profile.value(&apos;XXEN_REPORT_TEMPLATE_ACCESS&apos;)=&apos;Super User&apos;)
order by
xrtv.template_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>TEMPLATE_NAME</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>-540</DISPLAY_SEQUENCE>
    <ANCHOR>:custom_properties</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select x.* from
(
select 
&apos;TIMEOUT&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_WEBSERVICE_TIMEOUT&apos;),&apos;120&apos;) value,
null description
from
dual
union all
select 
&apos;MAX_FUNCTION&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_WEBSERVICE_MAXIMUM_FUNCTIONS&apos;),&apos;100&apos;) value,
null description
from
dual
union all
select 
&apos;UPPER_LIMIT&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_WEBSERVICE_FUNCTIONS_UPPER_LIMIT&apos;),&apos;10000&apos;) value,
null description
from
dual
union all
select 
&apos;REPORT_GJ&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_REPORT_GJ&apos;),&apos;GL Journals (Drilldown)&apos;) value,
null description
from
dual
union all
select 
&apos;REPORT_GJA&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_REPORT_GJA&apos;),&apos;GL Journals (Drilldown)&apos;) value,
null description
from
dual
union all
select 
&apos;REPORT_GFJ&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_REPORT_GFJ&apos;),&apos;GL Journals (Drilldown)&apos;) value,
null description
from
dual
union all
select 
&apos;REPORT_SD&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_REPORT_SD&apos;),&apos;GL Account Analysis (Drilldown)&apos;) value,
null description
from
dual
union all
select 
&apos;TEMPLATE_GJ&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GJ&apos;),&apos;GL Journal Drilldown&apos;) value,
null description
from
dual
union all
select 
&apos;TEMPLATE_GJA&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GJA&apos;),&apos;GL Journal Drilldown (Attachment)&apos;) value,
null description
from
dual
union all
select 
&apos;TEMPLATE_GFJ&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GFJ&apos;),&apos;GL Full Journal Drilldown&apos;) value,
null description
from
dual
union all
select 
&apos;TEMPLATE_SD&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_SD&apos;),&apos;FSG Subgledger Details&apos;) value,
null description
from
dual
union all
select 
&apos;LATEST_OPEN_PERIOD&apos; id,
xxen_util.latest_open_period(:$flex$.ledger) value,
null description
from
dual
union all
select 
&apos;FUNCTIONAL_CURRENCY&apos; id,
xxen_util.functional_currency_code(:$flex$.ledger) value,
null description
from
dual
union all
select 
&apos;FSG_VERSION&apos; id,
xxen_fsg.fsg_version value,
null description
from
dual
union all
select 
&apos;DRILLDOWN_SAME_WORKBOOK&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DRILLDOWN_TO_SAME_WORKBOOK&apos;),&apos;N&apos;) value,
null description
from
dual
union all
select 
&apos;DOUBLECLICK_TO_FUNCTION&apos; id,
nvl(fnd_profile.value(&apos;XXEN_FSG_DOUBLECLICK_TO_BALANCE_FUNCTION&apos;),&apos;N&apos;) value,
null description
from
dual
union all
select 
&apos;ENABLE_SSO&apos; id,
nvl(fnd_profile.value(&apos;XXEN_REPORT_SSO_ENABLED&apos;),&apos;N&apos;) value,
null description
from
dual
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CUSTOM_PROPERTIES</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>-530</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment20</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=20
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT20</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>-450</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment12</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=12
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT12</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>-440</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment11</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=11
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT11</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>-430</DISPLAY_SEQUENCE>
    <ANCHOR>:default_hierarchy</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
x.form_left_prompt||&apos; (&apos;||x.segment_num||&apos;)&apos; id,
max(x.parent_flex_value) keep (dense_rank last order by x.count) over (partition by x.form_left_prompt) value,
segment_num description
from
(
select distinct
ffvh.parent_flex_value,
fifsv.form_left_prompt,
fifsv.segment_num,
count(*) over (partition by fifsv.form_left_prompt,ffvh.parent_flex_value) count
from
fnd_flex_value_hierarchies ffvh,
fnd_id_flex_segments_vl fifsv
where
ffvh.flex_value_set_id=fifsv.flex_value_set_id and
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.name=:$flex$.ledger)
) x
order by
x.segment_num</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>DEFAULT_HIERARCHY</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>-420</DISPLAY_SEQUENCE>
    <ANCHOR>:period_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gps.period_name id,
gps.period_name value,
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
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
order by
gps.effective_period_num desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PERIOD_NAME</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>-410</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment10</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=10
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT10</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <DISPLAY_SEQUENCE>-400</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment9</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=9
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT9</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <DISPLAY_SEQUENCE>-390</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment8</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=8
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT8</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>24</SORT_ORDER>
    <DISPLAY_SEQUENCE>-380</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment7</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=7
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT7</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <DISPLAY_SEQUENCE>-370</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment6</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=6
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT6</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <DISPLAY_SEQUENCE>-360</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment5</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=5
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT5</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <DISPLAY_SEQUENCE>-350</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment4</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=4
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT4</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <DISPLAY_SEQUENCE>-340</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment3</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=3
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT3</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>29</SORT_ORDER>
    <DISPLAY_SEQUENCE>-330</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment2</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=2
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT2</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>30</SORT_ORDER>
    <DISPLAY_SEQUENCE>-320</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment1</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
fifs.segment_num=1
)
select
case when connect_by_isleaf is null then &apos;P&apos; else &apos;C&apos; end id,
ffvnh.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
(
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffvnh.parent_flex_value flex_value,
ffvnh.child_flex_value_low,
ffvnh.child_flex_value_high,
ffvnh.range_attribute,
ffvnh.flex_value_set_id,
ffvnh.created_by,
ffvnh.creation_date,
ffvnh.last_updated_by,
ffvnh.last_update_date
from
fnd_flex_value_norm_hierarchy ffvnh,
gl
where
:$flex$.hierarchy_name is not null and
ffvnh.flex_value_set_id=gl.flex_value_set_id
union all
select
gl.segment_num,
gl.segment_name,
gl.application_column_name,
ffv2.flex_value flex_value,
null child_flex_value_low,
null child_flex_value_high,
&apos;x&apos; range_attribute,
ffv2.flex_value_set_id,
ffv2.created_by,
ffv2.creation_date,
ffv2.last_updated_by,
ffv2.last_update_date
from
fnd_flex_values ffv2,
gl
where
:$flex$.hierarchy_name is not null and
ffv2.summary_flag=&apos;N&apos; and
ffv2.flex_value_set_id=gl.flex_value_set_id
) ffvnh,
fnd_flex_values_vl ffvv
where
ffvnh.flex_value=ffvv.flex_value and
gl_security_pkg.validate_segval(ffvnh.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
ffvnh.flex_value_set_id=ffvv.flex_value_set_id
connect by nocycle
ffvnh.flex_value between prior ffvnh.child_flex_value_low and prior ffvnh.child_flex_value_high and
decode(nvl(prior ffvnh.range_attribute,&apos;P&apos;),&apos;P&apos;,&apos;Y&apos;,&apos;N&apos;)=ffvv.summary_flag
start with
ffvnh.flex_value=:$flex$.hierarchy_name
union all
select
x.*
from
(
select
decode(ffvv.summary_flag,&apos;Y&apos;,&apos;P&apos;,&apos;C&apos;) id,
ffvv.flex_value value,
replace(ffvv.description,chr(9),&apos; &apos;) description
from
gl,
fnd_flex_values_vl ffvv
where
gl.flex_value_set_id=ffvv.flex_value_set_id and
gl_security_pkg.validate_segval(gl.segment_num,null,ffvv.flex_value)=&apos;TRUE&apos; and
:$flex$.hierarchy_name is null
order by
ffvv.flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGMENT1</PARAMETER_NAME>
      <DESCRIPTION>Segments</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>31</SORT_ORDER>
    <DISPLAY_SEQUENCE>-310</DISPLAY_SEQUENCE>
    <ANCHOR>:currency_code</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
fcv.currency_code id,
fcv.currency_code value,
fcv.description
from
fnd_currencies_vl fcv
where
fcv.enabled_flag=&apos;Y&apos;
order by
fcv.currency_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CURRENCY_CODE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>32</SORT_ORDER>
    <DISPLAY_SEQUENCE>-300</DISPLAY_SEQUENCE>
    <ANCHOR>:journal_category</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gjcv.user_je_category_name id,
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>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>33</SORT_ORDER>
    <DISPLAY_SEQUENCE>-290</DISPLAY_SEQUENCE>
    <ANCHOR>:journal_source</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gjsv.user_je_source_name id,
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>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>34</SORT_ORDER>
    <DISPLAY_SEQUENCE>-280</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segments</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
x.id,
x.value,
row_number() over(partition by 1 order by segment_num)  description
from
(select distinct
&apos;GL_&apos;||fifsv.application_column_name id,
fifsv.form_left_prompt||&apos; (&apos;||min(regexp_replace(fifsv.application_column_name, &apos;[^0-9]&apos;)) over (partition by fifsv.application_column_name, fifsv.form_left_prompt)||&apos;)&apos; value,
lower(fifsv.application_column_name) description,
to_number(regexp_replace(fifsv.application_column_name, &apos;[^0-9]&apos;)) segment_num
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
:$flex$.ledger is not null and
fifsv.id_flex_num in 
(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger)
union all
select
&apos;PERIOD_NAME&apos; id,
&apos;Period Name&apos; value,
null description,
null segment_num
from
dual
order by
segment_num
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGS</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>35</SORT_ORDER>
    <DISPLAY_SEQUENCE>-270</DISPLAY_SEQUENCE>
    <ANCHOR>:encumbrance_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
get.encumbrance_type id,
get.encumbrance_type value,
get.description description
from 
gl_encumbrance_types get
order by
id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>ENCUMBRANCE_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>36</SORT_ORDER>
    <DISPLAY_SEQUENCE>-260</DISPLAY_SEQUENCE>
    <ANCHOR>:budget_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gbv.budget_name id,
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;)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>BUDGET_NAME</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>37</SORT_ORDER>
    <DISPLAY_SEQUENCE>-250</DISPLAY_SEQUENCE>
    <ANCHOR>:balance_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
flvv.lookup_code id,
flvv.lookup_code value,
flvv.description 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>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>BALANCE_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>38</SORT_ORDER>
    <DISPLAY_SEQUENCE>-240</DISPLAY_SEQUENCE>
    <ANCHOR>:responsibility_key</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
frv.responsibility_key value, 
responsibility_name description
from
fnd_responsibility_vl frv
where
frv.application_id=fnd_global.resp_appl_id and 
frv.responsibility_id=fnd_global.resp_id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Responsibility Key</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>39</SORT_ORDER>
    <DISPLAY_SEQUENCE>-230</DISPLAY_SEQUENCE>
    <ANCHOR>:average_balance_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
flv.lookup_code id,
flv.lookup_code value,
flv.description description
from
fnd_lookup_values flv
where
flv.lookup_type=&apos;AVERAGE_BALANCE_TYPE&apos; and
flv.language=&apos;US&apos; and
flv.enabled_flag=&apos;Y&apos;</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>AVERAGE_BALANCE_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>40</SORT_ORDER>
    <DISPLAY_SEQUENCE>-220</DISPLAY_SEQUENCE>
    <ANCHOR>:amount_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select * from (
select
gl.lookup_code id,
gl.meaning value,
gl.description description
from
gl_lookups gl
where
gl.lookup_type=&apos;PTD_YTD&apos;
order by 
upper(gl.meaning)
)
union all
select
&apos;CTD&apos; id,
&apos;CTD&apos; value,
&apos;Custom-to-Date&apos; description
from
dual
union all
select
&apos;FYS&apos; id,
&apos;FYS&apos; value,
&apos;Financial Year Start (Actuals)&apos; description
from
dual
union all
select
&apos;FYE&apos; id,
&apos;FYE&apos; value,
&apos;Financial Year End&apos; description
from
dual
union all
select
&apos;JED&apos; id,
&apos;JED&apos; value,
&apos;Journal Effective Date&apos; description
from
dual
union all
select
&apos;JEDP&apos; id,
&apos;JEDP&apos; value,
&apos;(Posted) Journal Effective Date&apos; description
from
dual
union all
select
&apos;JEDU&apos; id,
&apos;JEDU&apos; value,
&apos;(Unposted) Journal Effective Date&apos; description
from
dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>AMOUNT_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>41</SORT_ORDER>
    <DISPLAY_SEQUENCE>-210</DISPLAY_SEQUENCE>
    <ANCHOR>:movement</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gl.meaning id,
gl.meaning value,
gl.description description
from
gl_lookups gl
where
gl.lookup_type in(&apos;DR_CR_NET_CODE&apos;)
order by 
upper(gl.meaning)</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>MOVEMENT</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>42</SORT_ORDER>
    <DISPLAY_SEQUENCE>-200</DISPLAY_SEQUENCE>
    <ANCHOR>:currency_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
lookup_code id,
lookup_code value,
description description
from
gl_lookups
where lookup_type=&apos;GL_CURRENCY_TYPE&apos;
order by 
meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CURRENCY_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>43</SORT_ORDER>
    <DISPLAY_SEQUENCE>-190</DISPLAY_SEQUENCE>
    <ANCHOR>:create_lov</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
y.id,
y.value,
y.description
from
(
select distinct
case when x.description is not null then x.description else xrpv.parameter_name end id,
case when x.value is not null then x.value||&apos; (&apos;||x.id||&apos;)&apos; else xxen_report.underscore_to_space(xrpv.parameter_name) end value,
case when x.description is not null then &apos;Segment&apos;||x.id||&apos; LOV&apos; else xxen_report.underscore_to_space(xrpv.parameter_name)||&apos; LOV&apos; end description,
xrpv.description tag,
x.id id_
from
xxen_reports xr,
xxen_report_parameters_v xrpv,
(select distinct
min(to_number(regexp_replace(fifsv.application_column_name, &apos;[^0-9]&apos;))) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) id,
fifsv.form_left_prompt value,
&apos;GL_&apos;||fifsv.application_column_name description
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
fifsv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(:$flex$.ledger is null and gl.ledger_category_code=&apos;PRIMARY&apos; or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
gl.object_type_code=&apos;L&apos; and
gl.complete_flag=&apos;Y&apos;
))x
where
xr.report_id=xrpv.report_id and
xr.type=&apos;F&apos; and
xrpv.description in (&apos;LOV&apos;,&apos;Segments&apos;) and
xrpv.parameter_name=x.description(+) and
1=1
) y
where
y.id_ is not null and
y.tag=&apos;Segments&apos; or
y.tag=&apos;LOV&apos;
order by
y.id_,
y.tag desc,
y.id</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CREATE_LOV</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>44</SORT_ORDER>
    <DISPLAY_SEQUENCE>-180</DISPLAY_SEQUENCE>
    <ANCHOR>:responsibility_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
frv.responsibility_key id,
frv.responsibility_name value,
fav.application_short_name description
from
fnd_form_functions_vl fffv,
fnd_application_vl fav,
fnd_responsibility_vl frv,
fnd_compiled_menu_functions fcmf
where
1=1 and
fffv.function_name=&apos;GLXIQACC&apos; and
fffv.function_id=fcmf.function_id and
frv.menu_id=fcmf.menu_id and
nvl(fcmf.grant_flag,&apos;Y&apos;)=&apos;Y&apos; and
frv.application_id=fav.application_id(+) and
(frv.application_id,frv.responsibility_id) in
(
select
furg.responsibility_application_id,
furg.responsibility_id
from
fnd_user fu,
fnd_user_resp_groups furg
where
fu.user_name=:$flex$.user_name_like and
fu.user_id=furg.user_id )
order by
frv.responsibility_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CHANGE_RESP</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>45</SORT_ORDER>
    <DISPLAY_SEQUENCE>-170</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segments_cb</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
y.id,
y.value,
y.description
from
(
select distinct
case when x.description is not null then x.description else xrpv.parameter_name end id,
case when x.value is not null then x.value||&apos; (&apos;||x.id||&apos;)&apos; else xxen_report.underscore_to_space(xrpv.parameter_name) end value,
case when x.description is not null then &apos;Segment&apos;||x.id||&apos; LOV&apos; else xxen_report.underscore_to_space(xrpv.parameter_name)||&apos; LOV&apos; end description,
xrpv.description tag,
x.id id_
from
xxen_reports xr,
xxen_report_parameters_v xrpv,
(select distinct
min(to_number(regexp_replace(fifsv.application_column_name, &apos;[^0-9]&apos;))) over (partition by fifsv.application_column_name, fifsv.form_left_prompt) id,
fifsv.form_left_prompt value,
&apos;GL_&apos;||fifsv.application_column_name description
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
fifsv.id_flex_num in 
(
select gl.chart_of_accounts_id from gl_ledgers gl where
(:$flex$.ledger is null and gl.ledger_category_code=&apos;PRIMARY&apos; or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
gl.object_type_code=&apos;L&apos; and
gl.complete_flag=&apos;Y&apos;
))x
where
xr.report_id=xrpv.report_id and
xr.type=&apos;F&apos; and
xrpv.description=&apos;Segments&apos; and
xrpv.parameter_name=x.description(+) and
1=1
) y
where
y.id_ is not null and
y.tag=&apos;Segments&apos;
order by
y.id_,
y.tag desc</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_SEGS_SEG_DESC</PARAMETER_NAME>
      <DESCRIPTION>CB</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>46</SORT_ORDER>
    <DISPLAY_SEQUENCE>-160</DISPLAY_SEQUENCE>
    <ANCHOR>:get_balance_function</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.balance(
&apos;&apos;FN_GET_BALANCE&apos;&apos;,
:$flex$.c,
:$flex$.ln,
:$flex$.pn,
:$flex$.bt,
:$flex$.cc,
:$flex$.tf,
:$flex$.af,
:$flex$.bn,
:$flex$.et,
:$flex$.mo,
:$flex$.mu,
:$flex$.s1,
:$flex$.s2,
:$flex$.s3,
:$flex$.s4,
:$flex$.s5,
:$flex$.s6,
:$flex$.s7,
:$flex$.s8,
:$flex$.s9,
:$flex$.s10,
:$flex$.s11,
:$flex$.s12,
:$flex$.s13,
:$flex$.s14,
:$flex$.s15,
:$flex$.s16,
:$flex$.s17,
:$flex$.s18,
:$flex$.s19,
:$flex$.s20,
:$flex$.js,
:$flex$.jc,
:p_balance_data,
:p_cell
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_GET_BALANCE</PARAMETER_NAME>
      <DESCRIPTION>Function</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>47</SORT_ORDER>
    <DISPLAY_SEQUENCE>-150</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_journal_attachment_dd</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_GJA&apos;&apos;), &apos;&apos;GL Journals (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GJA&apos;&apos;), &apos;&apos;GL Journal Drilldown (Attachment)&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;Ledger ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ledger,
parameter3=&gt;&apos;&apos;Period&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.period_name,
parameter4=&gt;&apos;&apos;Posting Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;Posted&apos;&apos;,
parameter5=&gt;&apos;&apos;Batch ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.bi,
parameter6=&gt;&apos;&apos;Journal Header ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jhi,
parameter7=&gt;&apos;&apos;Code Combination ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.concat_segs,
parameter8=&gt;&apos;&apos;Show Attachment Details&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;Y&apos;&apos;,
parameter9=&gt;&apos;&apos;Balance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.actual_flag=&apos;&apos;A&apos;&apos; then &apos;&apos;Actual&apos;&apos; when :$flex$.actual_flag=&apos;&apos;B&apos;&apos; then &apos;&apos;Budget&apos;&apos; when :$flex$.actual_flag=&apos;&apos;E&apos;&apos; then  &apos;&apos;Encumbrance&apos;&apos; else null end,
parameter10=&gt;&apos;&apos;Budget Name&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.budget_name,
parameter11=&gt;&apos;&apos;Encumbrance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.encumbrance_type,
parameter12=&gt;&apos;&apos;Journal Source&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.js,
parameter13=&gt;&apos;&apos;Journal Category&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jc,
parameter14=&gt;&apos;&apos;Amount Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.balance_type,
parameter15=&gt;&apos;&apos;Journal Line Num&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jln,
parameter16=&gt;&apos;&apos;je_header_id|je_line_num&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jhijln,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GJA</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>48</SORT_ORDER>
    <DISPLAY_SEQUENCE>-140</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_full_journal_drilldown</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_GFJ&apos;&apos;), &apos;&apos;GL Journals (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GFJ&apos;&apos;), &apos;&apos;GL Full Journal Drilldown&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;Ledger ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ledger,
parameter3=&gt;&apos;&apos;Period&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.period_name,
parameter4=&gt;&apos;&apos;Posting Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;Posted&apos;&apos;,
parameter5=&gt;&apos;&apos;Batch ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.bi,
parameter6=&gt;&apos;&apos;Journal Header ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jhi,
parameter7=&gt;&apos;&apos;Show Attachment Details&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;N&apos;&apos;,
parameter8=&gt;&apos;&apos;Journal Source&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.js,
parameter9=&gt;&apos;&apos;Journal Category&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jc,
parameter10=&gt;&apos;&apos;Amount Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.balance_type,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GFJ</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>49</SORT_ORDER>
    <DISPLAY_SEQUENCE>-130</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_journal_drilldown</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_GJ&apos;&apos;), &apos;&apos;GL Journals (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_GJ&apos;&apos;), &apos;&apos;GL Journal Drilldown&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;Ledger ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.ledger,
parameter3=&gt;&apos;&apos;Period&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.balance_type not in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;,&apos;&apos;JED&apos;&apos;,&apos;&apos;JEDU&apos;&apos;,&apos;&apos;JEDP&apos;&apos;) then :$flex$.period_name end,
parameter4=&gt;&apos;&apos;Posting Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.bt=&apos;&apos;JED&apos;&apos; then &apos;&apos;&apos;&apos; when :$flex$.bt=&apos;&apos;JEDU&apos;&apos; then &apos;&apos;Unposted&apos;&apos; else &apos;&apos;Posted&apos;&apos; end,
parameter5=&gt;&apos;&apos;Code Combination ID&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.concat_segs,
parameter6=&gt;&apos;&apos;Show Attachment Details&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;N&apos;&apos;,
parameter7=&gt;&apos;&apos;Balance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.actual_flag=&apos;&apos;A&apos;&apos; then &apos;&apos;Actual&apos;&apos; when :$flex$.actual_flag=&apos;&apos;B&apos;&apos; then &apos;&apos;Budget&apos;&apos; else &apos;&apos;Encumbrance&apos;&apos; end,
parameter8=&gt;&apos;&apos;Budget Name&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.budget_name,
parameter9=&gt;&apos;&apos;Encumbrance Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.encumbrance_type,
parameter10=&gt;&apos;&apos;Journal Source&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.js,
parameter11=&gt;&apos;&apos;Journal Category&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jc,
parameter12=&gt;&apos;&apos;Multiple Periods String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when :$flex$.balance_type in (&apos;&apos;QTD&apos;&apos;,&apos;&apos;CTD&apos;&apos;,&apos;&apos;YTD&apos;&apos;,&apos;&apos;FYS&apos;&apos;,&apos;&apos;FYE&apos;&apos;) then :$flex$.balance_type||:$flex$.period_name end,
parameter13=&gt;&apos;&apos;Amount Type&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.balance_type,
parameter14=&gt;&apos;&apos;Effective Dates String&apos;&apos;||&apos;&apos;~^&apos;&apos;||case when instr(:$flex$.balance_type,&apos;&apos;JED&apos;&apos;)&gt;0 then :$flex$.period_name end,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GJ</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>50</SORT_ORDER>
    <DISPLAY_SEQUENCE>-120</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_subledger_details</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.get_drilldown_data(
p_report_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_REPORT_SD&apos;&apos;), &apos;&apos;GL Account Analysis (Drilldown)&apos;&apos;),
p_template_name=&gt;nvl(fnd_profile.value(&apos;&apos;XXEN_FSG_DRILLDOWN_TEMPLATE_SD&apos;&apos;), &apos;&apos;FSG Subgledger Details&apos;&apos;),
parameter1=&gt;&apos;&apos;GL Flex Value Security&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;x&apos;&apos;,
parameter2=&gt;&apos;&apos;je_header_id|je_line_num&apos;&apos;||&apos;&apos;~^&apos;&apos;||:$flex$.jhi,
parameter3=&gt;&apos;&apos;Status&apos;&apos;||&apos;&apos;~^&apos;&apos;||&apos;&apos;Posted&apos;&apos;,
p_drilldown_data=&gt;:p_drilldown_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>SD</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>51</SORT_ORDER>
    <DISPLAY_SEQUENCE>-110</DISPLAY_SEQUENCE>
    <ANCHOR>:balance_drilldown_function</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
&apos;xxen_fsg.balance_drilldown(
&apos;&apos;GL_BALANCE_DRILLDOWN&apos;&apos;,
:$flex$.ledger,
:$flex$.period_name,
:$flex$.balance_type,
:$flex$.currency_code,
:$flex$.translated_flag,
:$flex$.actual_flag,
:$flex$.budget_name,
:$flex$.encumbrance_type,
:$flex$.movement,
:$flex$.multiplier,
:$flex$.segment1,
:$flex$.segment2,
:$flex$.segment3,
:$flex$.segment4,
:$flex$.segment5,
:$flex$.segment6,
:$flex$.segment7,
:$flex$.segment8,
:$flex$.segment9,
:$flex$.segment10,
:$flex$.segment11,
:$flex$.segment12,
:$flex$.segment13,
:$flex$.segment14,
:$flex$.segment15,
:$flex$.segment16,
:$flex$.segment17,
:$flex$.segment18,
:$flex$.segment19,
:$flex$.segment20,
:$flex$.js,
:$flex$.jc,
:$flex$.ccid,
:p_balance_data
)&apos; id,
null value, 
null description 
from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL_BALANCE_DRILLDOWN</PARAMETER_NAME>
      <DESCRIPTION>Drilldown</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>52</SORT_ORDER>
    <DISPLAY_SEQUENCE>-100</DISPLAY_SEQUENCE>
    <ANCHOR>:expand_segment_function</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>with gl as
(
select
fifs.flex_value_set_id,
fifs.application_column_name,
fifs.segment_name,
fifs.segment_num
from
fnd_id_flex_segments fifs,
fnd_id_flex_segments_tl fifst
where
fifs.application_id=101 and
fifs.id_flex_code=&apos;GL#&apos; and
fifs.id_flex_num=(select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
fifs.application_id=fifst.application_id and
fifs.id_flex_code=fifst.id_flex_code and
fifs.id_flex_num=fifst.id_flex_num and
fifs.application_column_name=fifst.application_column_name and
fifst.language=&apos;US&apos; and
(:$flex$.segment_num is null or fifs.segment_num=:$flex$.segment_num) and
(:$flex$.gl_segment is null or fifs.application_column_name=:$flex$.gl_segment)
)
select
z.*
from
(
select
case when instr(:$flex$.segment_range,&apos;~&apos;)&gt;0 then &apos;~&apos; end || case when :$flex$.child_only=&apos;Y&apos; then x.column_value else substr(substr(x.column_value,1,instr(x.column_value,&apos;:&apos;,1,2)-1),instr(x.column_value,&apos;:&apos;)+1) end id,
case when :$flex$.child_only=&apos;N&apos; then substr(x.column_value,1,instr(x.column_value,&apos;:&apos;)-1)-1 end value,
substr(x.column_value,instr(x.column_value,&apos;:&apos;,1,2)+1) description
from
(
select
case when instr(:$flex$.segment_range,&apos;~&apos;)&gt;0 then &apos;~&apos; end || ffv2.flex_value id,
gl.flex_value_set_id,
gl.segment_num
from
fnd_flex_values ffv2,
gl,
(
select
replace(:$flex$.segment_range,&apos;~&apos;,&apos;&apos;) segment_range
from
dual
where
xxen_fsg.is_parent_flex(:$flex$.ledger,replace(:$flex$.segment_range,&apos;~&apos;,&apos;&apos;),nvl(:$flex$.segment_num,regexp_replace(:$flex$.gl_segment, &apos;[^0-9]&apos;)))&lt;&gt;&apos;Y&apos;
union all
select
replace(:$flex$.segment_range,&apos;~&apos;,&apos;&apos;) segment_range
from
dual
where
xxen_fsg.is_parent_flex(:$flex$.ledger,replace(:$flex$.segment_range,&apos;~&apos;,&apos;&apos;),nvl(:$flex$.segment_num,regexp_replace(:$flex$.gl_segment, &apos;[^0-9]&apos;)))=&apos;Y&apos;
) x
where
ffv2.flex_value_set_id=gl.flex_value_set_id and
((
instr(:$flex$.segment_range,&apos;-&apos;)&gt;0 and
ffv2.flex_value&gt;=substr(x.segment_range,1,instr(x.segment_range,&apos;-&apos;)-1) and
ffv2.flex_value&lt;=substr(x.segment_range,instr(x.segment_range,&apos;-&apos;)+1,length(x.segment_range)-instr(x.segment_range,&apos;-&apos;)+1)) or
(instr(:$flex$.segment_range,&apos;-&apos;)=0 and ffv2.flex_value=x.segment_range)
)
) y,
table(xxen_fsg.child_flex_value_range(y.flex_value_set_id,replace(y.id,&apos;~&apos;,&apos;&apos;),y.segment_num,:$flex$.child_only))(+) x
) z
where
z.value&gt;0 or z.value is null or instr(:$flex$.segment_range,&apos;-&apos;)&gt;0</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_EXPAND_SEGMENT</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>53</SORT_ORDER>
    <DISPLAY_SEQUENCE>-90</DISPLAY_SEQUENCE>
    <ANCHOR>:period_offset_function</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
nvl(case when :$flex$.rr is not null then 
case when y.offset_months&gt;0 then y.period_name||&apos; - &apos;||gps2.period_name
else gps2.period_name||&apos; - &apos;||y.period_name end
else gps2.period_name end, &apos; &apos;) id,
:$flex$.c value,
null description
from
gl_period_statuses gps2,
(
select
x.*,
x.period_num+x.offset_months actual_,
case when :$flex$.adj is null then
case
when x.period_num+x.offset_months=0 then -1
when x.period_num+x.offset_months=x.regular_periods+x.adjustment_periods then 0
else floor((x.period_num+x.offset_months)/(x.regular_periods+x.adjustment_periods))
end 
else case when (x.period_num+x.offset_months)=0 then -1 when (x.period_num+x.offset_months)=x.regular_periods then 0 else floor((x.period_num+x.offset_months)/x.regular_periods) end
end year_,
case when :$flex$.adj is null then
case
when x.period_num+x.offset_months&gt;x.regular_periods+x.adjustment_periods then x.period_num+x.offset_months-x.regular_periods-x.adjustment_periods
when x.period_num+x.offset_months&lt;=0 then x.regular_periods+x.adjustment_periods+x.period_num+x.offset_months
else x.period_num+x.offset_months end
else
case
when x.period_num+x.offset_months&gt;x.regular_periods then x.period_num+x.offset_months-x.regular_periods
when x.period_num+x.offset_months&lt;=0 then x.regular_periods+x.period_num+x.offset_months
else x.period_num+x.offset_months
end
end period_num_
from
(
select
nvl(:$flex$.os,0) offset_months,
count(decode(gps.adjustment_period_flag,&apos;N&apos;,1)) over (partition by gps.period_year) regular_periods,
count(decode(gps.adjustment_period_flag,&apos;Y&apos;,1)) over (partition by gps.period_year) adjustment_periods,
gps.*
from 
gl_period_statuses gps
where
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ln) and
gps.application_id=101
) x
where
x.period_name=nvl(:$flex$.pn,x.period_name) and
x.period_year=nvl(:$flex$.py,x.period_year) and
x.period_num=nvl(:$flex$.pnu,x.period_num) and
(:$flex$.ed is null or :$flex$.ed between x.start_date and x.end_date and x.start_date&lt;&gt;x.end_date)
) y
where
gps2.application_id=101 and
gps2.ledger_id=y.ledger_id and
gps2.period_year=y.period_year+y.year_ and
gps2.period_num=y.period_num_</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_PERIOD_OFFSET</PARAMETER_NAME>
      <DESCRIPTION>Function</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>54</SORT_ORDER>
    <DISPLAY_SEQUENCE>-80</DISPLAY_SEQUENCE>
    <ANCHOR>:hierarchy_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
x.id,
x.id value,
x.description
from
(
select distinct
ffvnh.parent_flex_value id,
(select replace(ffvv.description,chr(9),&apos; &apos;) description from fnd_flex_values_vl ffvv where ffvnh.flex_value_set_id=ffvv.flex_value_set_id and ffvv.parent_flex_value_low is null and ffvnh.parent_flex_value=ffvv.flex_value)||&apos; (&apos;||nvl2(ffvnh.is_child,null,xxen_util.meaning(&apos;TOP&apos;,&apos;TOP_BOTTOM_PERF&apos;,283)||&apos; &apos;)||xxen_util.meaning(&apos;CCONTAIN&apos;,&apos;ICX_CONDITIONS&apos;,0)||&apos; &apos;||xxen_util.meaning(ffvnh.max_range_attribute,&apos;RANGE_ATTRIBUTE&apos;,0)||&apos;)&apos; description,
ffvnh.is_child,
ffvnh.max_range_attribute
from
(
select distinct
ffvnh.flex_value_set_id,
ffvnh.parent_flex_value,
(select &apos;Y&apos; from gl_seg_val_norm_hierarchy gsvnh where ffvnh.parent_flex_value=gsvnh.child_flex_value and ffvnh.flex_value_set_id=gsvnh.flex_value_set_id and rownum=1) is_child,
max(ffvnh.range_attribute) over (partition by ffvnh.parent_flex_value) max_range_attribute
from
fnd_flex_value_norm_hierarchy ffvnh
where
ffvnh.flex_value_set_id in
(
select
fifsv.flex_value_set_id
from
fnd_id_flex_segments_vl fifsv
where
fifsv.application_column_name=:$flex$.hierarchy_segment and
fifsv.application_id=101 and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.enabled_flag=&apos;Y&apos; and
fifsv.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;)
)
) ffvnh
order by
ffvnh.is_child desc,
ffvnh.max_range_attribute desc,
length(ffvnh.parent_flex_value),
ffvnh.parent_flex_value
) x</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>HIERARCHY_NAME</PARAMETER_NAME>
      <DESCRIPTION>CB</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>55</SORT_ORDER>
    <DISPLAY_SEQUENCE>-70</DISPLAY_SEQUENCE>
    <ANCHOR>:gl_segment_value</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select * from
(
select
ffvv.flex_value id,
ffvv.description value,
ffvv.summary_flag||&apos;~&apos;||ffvv.enabled_flag||&apos;~&apos;||xxen_util.meaning(substr(ffvv.compiled_value_attributes,5,1),&apos;ACCOUNT_TYPE&apos;,0) description
from
fnd_id_flex_segments_vl fifsgv,
(select row_number() over (partition by 1 order by ffvv.flex_value) row_id_,ffvv.* from fnd_flex_values_vl ffvv) 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.application_column_name=:$flex$.gl_segment and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
ffvv.summary_flag=nvl(:$flex$.summary_flag,ffvv.summary_flag) and
fifsgv.id_flex_num in (select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
(
:$flex$.direction=&apos;DA&apos; and ffvv.flex_value&gt;=nvl(:$flex$.segment_value,ffvv.flex_value) or
:$flex$.direction=&apos;RA&apos; and ffvv.flex_value&gt;=nvl(:$flex$.segment_value,ffvv.flex_value) or
:$flex$.direction=&apos;D&apos; and ffvv.flex_value&gt;=nvl(:$flex$.segment_value,ffvv.flex_value) and rownum&lt;=nvl(:$flex$.row_num,3) or
:$flex$.direction=&apos;R&apos; and ffvv.flex_value&gt;=nvl(:$flex$.segment_value,ffvv.flex_value) and rownum&lt;=nvl(:$flex$.row_num,1)
)
order by
ffvv.row_id_
)
union all
select * from 
(
select
ffvv.flex_value id,
ffvv.description value,
ffvv.summary_flag||&apos;~&apos;||ffvv.enabled_flag||&apos;~&apos;||xxen_util.meaning(substr(ffvv.compiled_value_attributes,5,1),&apos;ACCOUNT_TYPE&apos;,0) description
from
fnd_id_flex_segments_vl fifsgv,
(select row_number() over (partition by 1 order by ffvv.flex_value desc) row_id_,ffvv.* from fnd_flex_values_vl ffvv) 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.application_column_name=:$flex$.gl_segment and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
ffvv.summary_flag=nvl(:$flex$.summary_flag,ffvv.summary_flag) and
fifsgv.id_flex_num in (select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
:$flex$.direction=&apos;L&apos; and ffvv.flex_value&lt;=nvl(:$flex$.segment_value,ffvv.flex_value) and rownum&lt;=nvl(:$flex$.row_num,1)
order by
ffvv.row_id_
)
union all
select * from 
(
select
ffvv.flex_value id,
ffvv.description value,
ffvv.summary_flag||&apos;~&apos;||ffvv.enabled_flag||&apos;~&apos;||xxen_util.meaning(substr(ffvv.compiled_value_attributes,5,1),&apos;ACCOUNT_TYPE&apos;,0) description
from
fnd_id_flex_segments_vl fifsgv,
(select row_number() over (partition by 1 order by ffvv.flex_value desc) row_id_,ffvv.* from fnd_flex_values_vl ffvv) 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.application_column_name=:$flex$.gl_segment and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
ffvv.summary_flag=nvl(:$flex$.summary_flag,ffvv.summary_flag) and
fifsgv.id_flex_num in (select gl.chart_of_accounts_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
:$flex$.direction=&apos;U&apos; and ffvv.flex_value&lt;=nvl(:$flex$.segment_value,ffvv.flex_value) and rownum&lt;=nvl(:$flex$.row_num,3)
order by
ffvv.row_id_ desc
)</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_GL_SEGMENT_VALUES</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>56</SORT_ORDER>
    <DISPLAY_SEQUENCE>-60</DISPLAY_SEQUENCE>
    <ANCHOR>:discover_period_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gps.period_name id,
gps.period_name value,
null description
from
(
select
max(decode(upper(gps.period_name),upper(:$flex$.period_name),gps.period_number)) over () start_period_number,
max(case when gps.period_year&lt;=to_char(sysdate,&apos;YYYY&apos;) then gps.period_number end) over () max_year_period_number,
gps.*
from
(
select
row_number() over (order by gps.effective_period_num) period_number,
gps.*
from
gl_period_statuses gps
where
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
) gps
) gps
where
(
:$flex$.direction in (&apos;DA&apos;,&apos;RA&apos;) and gps.period_number between gps.start_period_number+1 and gps.max_year_period_number or
:$flex$.direction in (&apos;D&apos;,&apos;R&apos;) and gps.period_number between gps.start_period_number+1 and gps.start_period_number+:$flex$.row_num or
:$flex$.direction in (&apos;U&apos;,&apos;L&apos;) and gps.period_number between gps.start_period_number-:$flex$.row_num and gps.start_period_number-1
)
order by
case when :$flex$.direction in (&apos;U&apos;,&apos;L&apos;) then -gps.period_number else gps.period_number end</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_DISCOVER_PERIOD_NAME</PARAMETER_NAME>
      <DESCRIPTION>DD</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>57</SORT_ORDER>
    <DISPLAY_SEQUENCE>-50</DISPLAY_SEQUENCE>
    <ANCHOR>:next_segment_value</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value id,
ffvv.description value,
ffvv.summary_flag||&apos;~&apos;||fifsgv.enabled_flag||&apos;~&apos;||xxen_util.meaning(substr(ffvv.compiled_value_attributes,5,1),&apos;ACCOUNT_TYPE&apos;,0) 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.application_column_name=:$flex$.gl_segment and
ffvv.flex_value&gt;:$flex$.segment_value and
:$flex$.direction=&apos;N&apos; and
rownum=1 and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
ffvv.enabled_flag=&apos;Y&apos; and
sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) 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
(
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; 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(+))
)
)
)
)
union all
select
ffvv.flex_value id,
ffvv.description value,
ffvv.summary_flag||&apos;~&apos;||fifsgv.enabled_flag||&apos;~&apos;||xxen_util.meaning(substr(ffvv.compiled_value_attributes,5,1),&apos;ACCOUNT_TYPE&apos;,0) 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.application_column_name=:$flex$.gl_segment and
ffvv.flex_value&lt;:$flex$.segment_value and
:$flex$.direction=&apos;P&apos; and
rownum=1 and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
ffvv.enabled_flag=&apos;Y&apos; and
sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) 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
(
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; 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(+))
)
)
)
)</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_NEXT_SEGMENT_VALUE</PARAMETER_NAME>
      <DESCRIPTION>Function</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>58</SORT_ORDER>
    <DISPLAY_SEQUENCE>-40</DISPLAY_SEQUENCE>
    <ANCHOR>:daily_rates</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gdr.conversion_rate id,
:$flex$.c value,
null description
from
gl_daily_conversion_types gdct,
gl_daily_rates gdr
where
gdr.from_currency=:$flex$.fc and
gdr.to_currency=:$flex$.tc and
gdct.user_conversion_type=:$flex$.ct and
gdr.conversion_date=:$flex$.cd and
gdct.conversion_type=gdr.conversion_type</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FN_DAILY_RATES</PARAMETER_NAME>
      <DESCRIPTION>Function</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>59</SORT_ORDER>
    <DISPLAY_SEQUENCE>-30</DISPLAY_SEQUENCE>
    <ANCHOR>:conversion_type</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
gdct.user_conversion_type id, 
gdct.user_conversion_type value, 
gdct.description
from
gl_daily_conversion_types gdct
order by 1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>CONVERSION_TYPE</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>60</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:period_year</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
gps.period_year id,
gps.period_year value,
null description
from
gl_period_statuses gps
where
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
order by
gps.period_year</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PERIOD_YEAR</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>61</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>:period_num</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
gps.period_num id,
gps.period_num value,
null description
from
gl_period_statuses gps
where
gps.ledger_id=(select gl.ledger_id from gl_ledgers gl where gl.name=:$flex$.ledger) and
gps.application_id=101
order by
gps.period_num</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>PERIOD_NUM</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>62</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:ledger</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gl.name id,
gl.name value,
gl.ledger_id||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv,
gl_access_set_norm_assign gasna, 
gl_ledger_set_norm_assign_v glsnav,
fnd_responsibility_vl frv
where 
(frv.responsibility_key=:$flex$.responsibility_key or (:$flex$.responsibility_key is null and frv.responsibility_id=fnd_global.resp_id)) and
gasna.access_set_id=fnd_profile.value_specific(&apos;GL_ACCESS_SET_ID&apos;,null,frv.responsibility_id,frv.application_id,null,null) and 
gasna.ledger_id=glsnav.ledger_set_id(+)and
gl.ledger_id = nvl(glsnav.ledger_id,gasna.ledger_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
id</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.default_ledger</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
      <DESCRIPTION>LOV</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
