<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: GL Balancing -->
 <LOVS_ROW>
  <GUID>F26C78167A214EFBE0530100007F336B</GUID>
  <LOV_NAME>GL Balancing</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
(fifsgv.application_id, fifsgv.id_flex_code, fifsgv.id_flex_num, fifsgv.application_column_name) in (select fsav.application_id, fsav.id_flex_code, fsav.id_flex_num, fsav.application_column_name from fnd_segment_attribute_values fsav where fsav.segment_attribute_type=&apos;GL_BALANCING&apos; and fsav.attribute_value=&apos;Y&apos;) and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
(:$flex$.chart_of_accounts_id is not null or :$flex$.chart_of_accounts is not null or :$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null or :$flex$.book is not null) 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
(
fifsv.id_flex_num=:$flex$.chart_of_accounts_id or
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or
(:$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null) and
fifsgv.id_flex_num in
(
select
gl.chart_of_accounts_id
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and
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(+))
)
) or
fifsgv.id_flex_num in (select fbc.accounting_flex_structure from fa_book_controls fbc where xxen_util.contains(:$flex$.book,fbc.book_type_code)=&apos;Y&apos;)
)
)
order by
ffvv.flex_value</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: APL: AR Transaction Register -->
 <REPORTS_ROW>
  <GUID>382972533FD4AC4EE0633D74000A9B93</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
rx.organization_name                   ledger,
haouv.name                             operating_unit,
rx.rec_postable_flag                   postable,
rx.rec_balance                         &quot;&amp;bal_segment_p&quot;,
rx.rec_balance_desc                    &quot;&amp;bal_segment_d&quot;,
rx.trx_currency                        currency,
arpt_sql_func_util.get_lookup_meaning(&apos;INV/CM&apos;,trx_types.type) class,
rx.trx_number                          invoice_number,
rx.doc_sequence_value                  document_number,
trx_types.name                         &quot;Type&quot;,
substrb(bill_to_party.party_name,1,50) customer_name,
bill_to.account_number                 customer_number,
bill_to_site.location                  customer_site,
rx.trx_date                            invoice_date,
rx.receivables_gl_date                 gl_date,
rx.trx_amount                          entered_amount,
rx.trx_acctd_amount                    functional_amount,
rx.trx_amount-arpt_sql_func_util.get_sum_of_trx_lines(rx.customer_trx_id,&apos;TAX&apos;) total_line_amount,
rx.trx_amount-arpt_sql_func_util.get_sum_of_trx_lines(rx.customer_trx_id,&apos;FREIGHT&apos;) total_freight_amount,
arpt_sql_func_util.get_sum_of_trx_lines(rx.customer_trx_id,&apos;TAX&apos;) total_tax_amount,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv,
jai_reporting_associations_v jrav
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;IGST&apos; and
jtlv.tax_type_name like &apos;IGST_%&apos; and
jtlv.tax_type_name not like &apos;IGST_EXP_R%&apos; and
jtlv.tax_type_name&lt;&gt;&apos;IGST_EOU_RFD&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;)
else (select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv, 
jai_reporting_associations_v jrav 
where 
jtlv.trx_id=rx.customer_trx_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;IGST&apos; and
jtlv.tax_type_name like &apos;IGST_%&apos; and
jtlv.tax_type_name not like &apos;IGST_EXP_R%&apos; and
jtlv.tax_type_name&lt;&gt;&apos;IGST_EOU_RFD&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;) end) &quot;IGST&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv,
jai_reporting_associations_v jrav
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CGST&apos; and
jtlv.tax_type_name like &apos;CGST_%&apos; and
jtlv.tax_type_name not like &apos;CGST_EOU_R%&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;)
else (select sum(jtlv.rounded_tax_amt_fun_curr) from jai_tax_lines_v jtlv, jai_reporting_associations_v jrav 
where 
jtlv.trx_id=rx.customer_trx_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CGST&apos; and
jtlv.tax_type_name like &apos;CGST_%&apos; and
jtlv.tax_type_name not like &apos;CGST_EOU_R%&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;) end) &quot;CGST&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv,
jai_reporting_associations_v jrav
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;SGST&apos; and
jtlv.tax_type_name like &apos;SGST_%&apos; and
jtlv.tax_type_name not like &apos;SGST_EOU_R%&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;)
else (select sum(jtlv.rounded_tax_amt_fun_curr) from jai_tax_lines_v jtlv, jai_reporting_associations_v jrav 
where 
jtlv.trx_id=rx.customer_trx_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;SGST&apos; and
jtlv.tax_type_name like &apos;SGST_%&apos; and
jtlv.tax_type_name not like &apos;SGST_EOU_R%&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;) end ) &quot;SGST&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv,
jai_reporting_associations_v jrav
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CESS&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;)
else (select sum(jtlv.rounded_tax_amt_fun_curr) from jai_tax_lines_v jtlv, jai_reporting_associations_v jrav 
where 
jtlv.trx_id=rx.customer_trx_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CESS&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;) end) &quot;Compensation CESS&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv,
jai_reporting_associations_v jrav
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CUSTOMS&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;)
else (select sum(jtlv.rounded_tax_amt_fun_curr) from jai_tax_lines_v jtlv, jai_reporting_associations_v jrav 
where 
jtlv.trx_id=rx.customer_trx_id and
jrav.entity_id=jtlv.tax_type_id and
jrav.reporting_code=&apos;CUSTOMS&apos; and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jrav.entity_code=&apos;TAX_TYPE&apos; and
jrav.reporting_type_code=&apos;TAX_TYPES_CLASSIFICATION&apos;) end)  custom,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;SGST_EOU_R%&apos;)
else (
select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv
where 
rx.customer_trx_id=jtlv.trx_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;SGST_EOU_R%&apos;) end) &quot;SGST Refund on Deemed Exports&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;CGST_EOU_R%&apos;)
else (
select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv
where 
rx.customer_trx_id=jtlv.trx_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;CGST_EOU_R%&apos;) end) &quot;CGST Refund on Deemed Exports&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;TCS%&apos;)
else (
select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv
where 
rx.customer_trx_id=jtlv.trx_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jtlv.tax_type_code like &apos;TCS%&apos;) end) &quot;Tax Collected Source (TCS)&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
jtlv.tax_type_code=&apos;SAL_OTHER_CHARGES_BCD&apos;)
else (
select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv
where 
rx.customer_trx_id=jtlv.trx_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
jtlv.tax_type_code=&apos;SAL_OTHER_CHARGES_BCD&apos;) end) &quot;BCD&quot;,
(case when trx_types.type=&apos;CM&apos; then -1*(
select
sum((case when jtlv.event_class_code=&apos;CREDIT_MEMO&apos; then -1 else 1 end)*jtlv.rounded_tax_amt_fun_curr)
from 
ra_customer_trx_lines_all rctl,
jai_tax_lines_v jtlv
where
rx.customer_trx_id=rctl.customer_trx_id and
rctl.line_type=&apos;LINE&apos; and
nvl(rctl.previous_customer_trx_id,rctl.customer_trx_id)=jtlv.trx_id and
nvl(rctl.previous_customer_trx_line_id,rctl.customer_trx_line_id)=jtlv.trx_line_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code in (&apos;INVOICE&apos;,&apos;CREDIT_MEMO&apos;) and
jtlv.application_id=222 and
(jtlv.tax_type_name like &apos;IGST_EXP_R%&apos; or jtlv.tax_type_name=&apos;IGST_EOU_RFD&apos;))
else (
select sum(jtlv.rounded_tax_amt_fun_curr) 
from 
jai_tax_lines_v jtlv
where 
rx.customer_trx_id=jtlv.trx_id and
jtlv.entity_code=&apos;TRANSACTIONS&apos; and
jtlv.event_class_code=&apos;INVOICE&apos; and
jtlv.application_id=222 and
(jtlv.tax_type_name like &apos;IGST_EXP_R%&apos; or jtlv.tax_type_name=&apos;IGST_EOU_RFD&apos;)) end) &quot;IGST Export Refund&quot;,
rx.rec_natacct                         receivables_account,
rx.rec_natacct_desc                    receivables_account_desc,
rx.rec_account                         receivables_account_full,
rx.rec_account_desc                    receivables_account_full_desc,
rx.functional_currency_code            functional_currency,
rx.exchange_type                       exchange_rate_type,
rx.exchange_date                       exchange_rate_date,
rx.exchange_rate                       exchange_rate,
gdct.user_conversion_type exchange_rate_type,
terms.name                             payment_terms,
rx.trx_due_date                        invoice_due_date,
methods.name                           payment_method,
arpt_sql_func_util.get_lookup_meaning(&apos;YES/NO&apos;, nvl(bill_to_site.tax_header_level_flag, nvl(bill_to.tax_header_level_flag, rx.tax_header_level_flag))) tax_calculation_level,
bas.name                               batch_source,
ba.name                                batch_name,
rx.cons_bill_number                    consolidated_bill_number,
doc_seq.name                           document_sequence_name,
substrb(ship_to_party.party_name,1,50) ship_to_customer_name,
ship_to.account_number                 ship_to_customer_number,
ship_to_site.location                  ship_to_customer_site,
(select
jprl_.registration_number
from
ra_customer_trx_lines_all rctla,
jai_party_regs jpr_,
jai_party_reg_lines jprl_
where
rctla.customer_trx_Id=rx.customer_trx_id and
rctla.line_type=&apos;LINE&apos; and
jpr_.party_id=rctla.warehouse_id and
jpr_.party_reg_id=jprl_.party_reg_id and
jpr_.party_type_code=&apos;IO&apos; and
jprl_.registration_type_code=&apos;GST&apos; and
jprl_.effective_to is null and
rownum=1
) warehouse_registration_number,
(select 
jprl_.registration_number
from
jai_party_regs jpr_,
jai_party_reg_lines jprl_,
hz_cust_accounts hca,
ra_customer_trx_all rcta
where
jpr_.party_reg_id=jprl_.party_reg_id and
jpr_.party_type_code=&apos;THIRD_PARTY_SITE&apos; and
jprl_.registration_type_code=&apos;GST&apos; and
jprl_.effective_to is null and
rcta.customer_trx_id=rx.customer_trx_id and
rcta.sold_to_customer_id=hca.cust_account_id and
to_char(jpr_.party_id)=hca.orig_system_reference and
jpr_.customer_flag=&apos;Y&apos; and
jpr_.party_site_id in (select cust_acct_site_id from hz_cust_site_uses_all hcsu where hcsu.site_use_id=rcta.bill_to_site_use_id and
hcsu.status=&apos;A&apos;) and
rownum=1
) customer_registration_number
from
ar_transactions_rep_itf rx,
ra_terms terms,
gl_daily_conversion_types gdct,
fnd_document_sequences doc_seq,
hz_cust_accounts ship_to,
hz_parties ship_to_party,
hz_cust_accounts bill_to,
hz_parties bill_to_party,
hz_cust_site_uses_all ship_to_site,
hz_cust_site_uses_all bill_to_site,
ra_cust_trx_types_all trx_types,
ar_receipt_methods methods,
ra_batches_all ba,
ra_batch_sources_all bas,
hr_all_organization_units_vl haouv
where
1=1 and
rx.ship_to_customer_id=ship_to.cust_account_id(+) and
rx.exchange_type=gdct.conversion_type(+) and
ship_to.party_id=ship_to_party.party_id(+) and
rx.ship_to_site_use_id=ship_to_site.site_use_id(+) and
rx.bill_to_customer_id=bill_to.cust_account_id and
bill_to.party_id=bill_to_party.party_id and
rx.bill_to_site_use_id=bill_to_site.site_use_id and
rx.cust_trx_type_id=trx_types.cust_trx_type_id and
rx.term_id=terms.term_id(+) and
rx.doc_sequence_id=doc_seq.doc_sequence_id(+) and
rx.receipt_method_id=methods.receipt_method_id(+) and
nvl(rx.org_id, -99)=nvl(trx_types.org_id, -99) and
rx.batch_id=ba.batch_id(+) and
rx.batch_source_id=bas.batch_source_id(+) and
nvl(rx.org_id, -99)=nvl(bas.org_id, -99) and
rx.request_id=fnd_global.conc_request_id and
rx.org_id=haouv.organization_id (+)
order by
rx.organization_name,
rx.rec_balance,
rx.rec_postable_flag,
rx.trx_currency,
arpt_sql_func_util.get_lookup_meaning(&apos;INV/CM&apos;,trx_types.type),
rx.trx_number,
rx.doc_sequence_value</SQL_TEXT>
  <NUMBER_FORMAT>#,##0.000;[Red]-#,##0.000</NUMBER_FORMAT>
  <COPIED_FROM_GUID>B054531DF5620463E0530100007F09D5</COPIED_FROM_GUID>
  <DB_PACKAGE>XXEN_AR</DB_PACKAGE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>APL: AR Transaction Register</REPORT_NAME>
    <DESCRIPTION>Application: Receivables
Source: Transaction Register
Short Name: ARRXINVR

The report has now been enhanced to allow multiple accessible Ledgers or Operating Units to be selected in the Reporting Context parameter. Additionally, the Reporting Context parameter has been made optional. Leaving it null will allow the report to be run across all accessible Ledgers or Operating Units.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;bal_segment_d</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>&amp;bal_segment_p</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_adjustment_type_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_adjustment_type_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_application_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_attribute_set</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_bal_seg_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_bal_seg_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_batch_source_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_coa_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_concurrent_program_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_document_sequence_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_document_sequence_num_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_document_sequence_num_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_entered_currency_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_entered_currency_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gl_account_flex_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gl_account_flex_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gl_date_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gl_date_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_ledger_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_out_of_balance_only</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_output_format</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_period_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_reporting_entity_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_reporting_entity_name</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_reporting_level</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_request_type</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_summary_account</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_class</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_date_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_date_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_due_date_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_due_date_low</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_type_high</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_type_low</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-80</DISPLAY_SEQUENCE>
    <ANCHOR>:p_request_type</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>SUBMIT</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Request Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>-70</DISPLAY_SEQUENCE>
    <ANCHOR>:p_application_name</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>AR</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FARX_APP_NAME</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>-60</DISPLAY_SEQUENCE>
    <ANCHOR>:p_concurrent_program_name</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>RXARINVR</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FARX_CONC_NAME</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>-50</DISPLAY_SEQUENCE>
    <ANCHOR>:p_report_id</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select distinct report_id from fa_rx_reports r, fnd_concurrent_programs c, fnd_application a where r.application_id = a.application_id and r.application_id = c.application_id and r.concurrent_program_id = c.concurrent_program_id and a.application_short_name = :$FLEX$.FARX_APP_NAME and c.concurrent_program_name = :$FLEX$.FARX_CONC_NAME</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FARX_REPORT_ID</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>-40</DISPLAY_SEQUENCE>
    <ANCHOR>:p_output_format</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>TEXT</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Output Format</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>-30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_coa_id</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>select
gsob.chart_of_accounts_id
from
gl_sets_of_books gsob,
ar_system_parameters asp,
hr_all_organization_units haou
where
gsob.set_of_books_id=asp.set_of_books_id and
asp.org_id=haou.organization_id and
(
:$flex$.reporting_context is null or
:$flex$.reporting_level=&apos;1000&apos; and xxen_util.contains(:$flex$.reporting_context,gsob.name)=&apos;Y&apos; or
:$flex$.reporting_level=&apos;3000&apos; and xxen_util.contains(:$flex$.reporting_context,haou.name)=&apos;Y&apos;
) and
rownum=1</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Accounts Id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <ANCHOR>&amp;bal_segment_d</ANCHOR>
    <SQL_TEXT>select fifsv.form_left_prompt || &apos; Desc&apos;
  from   fnd_segment_attribute_values fsav
     ,   fnd_id_flex_segments_vl      fifsv
  where  fsav.application_id    = 101
  and    fsav.id_flex_code      = &apos;GL#&apos;
  and    fsav.segment_attribute_type = &apos;GL_BALANCING&apos; 
  and    fsav.id_flex_num       = :p_coa_id
  and    fsav.attribute_value   = &apos;Y&apos;
  and    fifsv.application_id   = fsav.application_id
  and    fifsv.id_flex_code     = fsav.id_flex_code
  and    fifsv.id_flex_num      = fsav.id_flex_num
  and    fifsv.application_column_name = fsav.application_column_name</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Accounts Id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <ANCHOR>&amp;bal_segment_p</ANCHOR>
    <SQL_TEXT>select fifsv.form_left_prompt 
  from   fnd_segment_attribute_values fsav
     ,   fnd_id_flex_segments_vl      fifsv
  where  fsav.application_id    = 101
  and    fsav.id_flex_code      = &apos;GL#&apos;
  and    fsav.segment_attribute_type = &apos;GL_BALANCING&apos; 
  and    fsav.id_flex_num       = :p_coa_id
  and    fsav.attribute_value   = &apos;Y&apos;
  and    fifsv.application_id   = fsav.application_id
  and    fifsv.id_flex_code     = fsav.id_flex_code
  and    fifsv.id_flex_num      = fsav.id_flex_num
  and    fifsv.application_column_name = fsav.application_column_name</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Chart of Accounts Id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_attribute_set</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FARX_ATTRIBUTE_SET</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
attr.attribute_set id,
attr.attribute_set value,
attr.user_attribute_set description
from
fa_rx_attrsets_vl attr
where
attr.report_id=:$flex$.farx_report_id and
(attr.public_flag=&apos;Y&apos; or
fnd_global.resp_id in
(select sec.responsibility_id from fa_rx_security sec
where sec.report_id=attr.report_id and
sec.attribute_set=attr.attribute_set))
order by
decode(attr.attribute_set,&apos;DEFAULT&apos;,0,1),
attr.user_attribute_set,
attr.attribute_set</LOV_QUERY_DSP>
    <DEFAULT_VALUE>DEFAULT</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>FARX_ATTRIBUTE_SET</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_report_code</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>ARRXINVR</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_reporting_level</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>FND_MO_REPORTING_LEVEL</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
lookup_code id,
meaning value,
null description
from
fnd_lookups
where lookup_type=&apos;FND_MO_REPORTING_LEVEL&apos;
and lookup_code in (1000,3000)
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>1000</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Reporting Level</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>decode(:p_reporting_level,&apos;1000&apos;,rx.organization_name,&apos;3000&apos;,haouv.name,null) = :p_reporting_entity_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
entity_name value,
null description
from
fnd_mo_reporting_entities_v
where 
reporting_level=:$flex$.fnd_mo_reporting_level and
(
:$flex$.fnd_mo_reporting_level=&apos;1000&apos; and ledger_category_code=&apos;PRIMARY&apos; or 
:$flex$.fnd_mo_reporting_level=&apos;3000&apos;
) 
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>SELECT entity_name FROM FND_MO_REPORTING_ENTITIES_V WHERE reporting_level = :$flex$.fnd_mo_reporting_level and rownum=1</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Reporting Context</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_bal_seg_low</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Balancing</LOV_NAME>
    <LOV_GUID>F26C78167A214EFBE0530100007F336B</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
(fifsgv.application_id, fifsgv.id_flex_code, fifsgv.id_flex_num, fifsgv.application_column_name) in (select fsav.application_id, fsav.id_flex_code, fsav.id_flex_num, fsav.application_column_name from fnd_segment_attribute_values fsav where fsav.segment_attribute_type=&apos;GL_BALANCING&apos; and fsav.attribute_value=&apos;Y&apos;) and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
(:$flex$.chart_of_accounts_id is not null or :$flex$.chart_of_accounts is not null or :$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null or :$flex$.book is not null) 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
(
fifsv.id_flex_num=:$flex$.chart_of_accounts_id or
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or
(:$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null) and
fifsgv.id_flex_num in
(
select
gl.chart_of_accounts_id
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and
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(+))
)
) or
fifsgv.id_flex_num in (select fbc.accounting_flex_structure from fa_book_controls fbc where xxen_util.contains(:$flex$.book,fbc.book_type_code)=&apos;Y&apos;)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Company Segment Low</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>:p_bal_seg_high</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Balancing</LOV_NAME>
    <LOV_GUID>F26C78167A214EFBE0530100007F336B</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ffvv.flex_value value,
ffvv.description||case when ffvv.enabled_flag=&apos;Y&apos; and sysdate between nvl(ffvv.start_date_active,sysdate) and nvl(ffvv.end_date_active,sysdate) then null else &apos; (inactive)&apos; end description
from
fnd_id_flex_segments_vl fifsgv,
fnd_flex_values_vl ffvv
where
xxen_util.flex_value_accessible(fnd_global.resp_appl_id,fnd_global.resp_id,ffvv.flex_value_set_id,ffvv.flex_value)=&apos;Y&apos; and
fifsgv.application_id=101 and
fifsgv.id_flex_code=&apos;GL#&apos; and
fifsgv.enabled_flag=&apos;Y&apos; and
(fifsgv.application_id, fifsgv.id_flex_code, fifsgv.id_flex_num, fifsgv.application_column_name) in (select fsav.application_id, fsav.id_flex_code, fsav.id_flex_num, fsav.application_column_name from fnd_segment_attribute_values fsav where fsav.segment_attribute_type=&apos;GL_BALANCING&apos; and fsav.attribute_value=&apos;Y&apos;) and
fifsgv.flex_value_set_id=ffvv.flex_value_set_id and
(:$flex$.chart_of_accounts_id is not null or :$flex$.chart_of_accounts is not null or :$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null or :$flex$.book is not null) 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
(
fifsv.id_flex_num=:$flex$.chart_of_accounts_id or
xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos; or
(:$flex$.operating_unit is not null or :$flex$.ledger is not null or :$flex$.ledger_category is not null) and
fifsgv.id_flex_num in
(
select
gl.chart_of_accounts_id
from
gl_ledgers gl
where
(:$flex$.operating_unit is null or gl.ledger_id in (select hou.set_of_books_id from hr_operating_units hou where xxen_util.contains(:$flex$.operating_unit,hou.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;) and
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(+))
)
) or
fifsgv.id_flex_num in (select fbc.accounting_flex_structure from fa_book_controls fbc where xxen_util.contains(:$flex$.book,fbc.book_type_code)=&apos;Y&apos;)
)
)
order by
ffvv.flex_value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.company_segment_low</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Company Segment High</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>:p_gl_date_from</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>trunc(sysdate,&apos;MON&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>:p_gl_date_to</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>last_day(:$flex$.gl_date_From)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>GL Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>17</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>:p_gl_account_flex_low</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
 gcck.concatenated_segments value
,null description
from gl_code_combinations_kfv gcck
where
    gcck.chart_of_accounts_id = :$flex$.chart_of_accounts_id
and gcck.enabled_flag = &apos;Y&apos;
and gcck.detail_posting_allowed = &apos;Y&apos;
and gcck.summary_flag = &apos;N&apos;
order by gcck.concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Receivables Account Low</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>18</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>:p_gl_account_flex_high</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
 gcck.concatenated_segments value
,null description
from gl_code_combinations_kfv gcck
where
    gcck.chart_of_accounts_id = :$flex$.chart_of_accounts_id
and gcck.enabled_flag = &apos;Y&apos;
and gcck.detail_posting_allowed = &apos;Y&apos;
and gcck.summary_flag = &apos;N&apos;
order by gcck.concatenated_segments</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.Receivables_Account_low</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Receivables Account High</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>19</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>:p_entered_currency_low</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR_SRS_CURRENCY</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
currency_code id,
currency_code value,
name description
from
fnd_currencies_vl
where currency_flag=&apos;Y&apos;
and enabled_flag in (&apos;Y&apos;,&apos;N&apos;)
order by currency_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Entered Currency Low</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>20</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>:p_entered_currency_high</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR_SRS_CURRENCY</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
currency_code id,
currency_code value,
name description
from
fnd_currencies_vl
where currency_flag=&apos;Y&apos;
and enabled_flag in (&apos;Y&apos;,&apos;N&apos;)
order by currency_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.entered_currency_low</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Entered Currency High</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>21</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>:p_transaction_date_low</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date Low</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>22</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>:p_transaction_date_high</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>:$flex$.transaction_date_low</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Date High</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>23</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>:p_batch_source_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
name id,
name value,
null description
from
ra_batch_sources_all
where nvl(org_id,-99) in
(select -99 from dual union
 select hou.organization_id from hr_operating_units hou, gl_sets_of_books gsob where :$flex$.reporting_level = &apos;1000&apos; and to_number(hou.set_of_books_id) = gsob.set_of_books_id and xxen_util.contains(:$flex$.reporting_context,gsob.name) = &apos;Y&apos; union
 select haouv.organization_id from hr_all_organization_units_vl haouv where :$flex$.reporting_level = &apos;3000&apos; and xxen_util.contains(:$flex$.reporting_context,haouv.name) = &apos;Y&apos;
)
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Batch Source Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>24</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>:p_transaction_type_low</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
name id,
name value,
null description
from
ra_cust_trx_types_all
where nvl(org_id,-99) in
(select -99 from dual union
 select hou.organization_id from hr_operating_units hou, gl_sets_of_books gsob where :$flex$.reporting_level = &apos;1000&apos; and to_number(hou.set_of_books_id) = gsob.set_of_books_id and xxen_util.contains(:$flex$.reporting_context,gsob.name) = &apos;Y&apos; union
 select haouv.organization_id from hr_all_organization_units_vl haouv where :$flex$.reporting_level = &apos;3000&apos; and xxen_util.contains(:$flex$.reporting_context,haouv.name) = &apos;Y&apos;
)
order by
value, description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Type Low</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>25</SORT_ORDER>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <ANCHOR>:p_transaction_type_high</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
name id,
name value,
null description
from
ra_cust_trx_types_all
where nvl(org_id,-99) in
(select -99 from dual union
 select hou.organization_id from hr_operating_units hou, gl_sets_of_books gsob where :$flex$.reporting_level = &apos;1000&apos; and to_number(hou.set_of_books_id) = gsob.set_of_books_id and xxen_util.contains(:$flex$.reporting_context,gsob.name) = &apos;Y&apos; union
 select haouv.organization_id from hr_all_organization_units_vl haouv where :$flex$.reporting_level = &apos;3000&apos; and xxen_util.contains(:$flex$.reporting_context,haouv.name) = &apos;Y&apos;
)
order by
value, description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.transaction_type_low</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Type High</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>26</SORT_ORDER>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <ANCHOR>:p_transaction_class</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>AR_INVOICE_CLASS</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
lookup_code id,
meaning value,
null description
from
ar_lookups
where lookup_code in (&apos;INV&apos;,&apos;DEP&apos;,&apos;CM&apos;,&apos;GUAR&apos;,&apos;DM&apos;,&apos;CB&apos;)
and lookup_type=&apos;INV/CM&apos;
order by meaning,lookup_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Transaction Class</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>27</SORT_ORDER>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <ANCHOR>:p_document_sequence_name</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
doc_sequence_id id,
name value,
null description
from
fnd_document_sequences
where doc_sequence_id in
(select 
 distinct doc_sequence_id
 from 
 fnd_doc_sequence_assignments
 where 
 application_id=222 and 
 set_of_books_id in
 (select gsob.set_of_books_id from gl_sets_of_books gsob where :$flex$.reporting_level = &apos;1000&apos; and xxen_util.contains(:$flex$.reporting_context,gsob.name) = &apos;Y&apos; union
  select aspa.set_of_books_id from hr_all_organization_units_vl haouv, ar_system_parameters_all aspa where :$flex$.reporting_level = &apos;3000&apos; and aspa.org_id = haouv.organization_id and xxen_util.contains(:$flex$.reporting_context,haouv.name) = &apos;Y&apos; 
 )
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Document Sequence Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>28</SORT_ORDER>
    <DISPLAY_SEQUENCE>180</DISPLAY_SEQUENCE>
    <ANCHOR>:p_document_sequence_num_low</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
doc_sequence_value id,
doc_sequence_value value,
null description
from
ar_doc_sequence_audit
where doc_sequence_id=:$flex$.Document_Sequence_Name
and :$flex$.Document_Sequence_Name is not null
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Document Sequence Number From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>29</SORT_ORDER>
    <DISPLAY_SEQUENCE>190</DISPLAY_SEQUENCE>
    <ANCHOR>:p_document_sequence_num_high</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
doc_sequence_value id,
doc_sequence_value value,
null description
from
ar_doc_sequence_audit
where doc_sequence_id=:$flex$.Document_Sequence_Name
and :$flex$.Document_Sequence_Name is not null
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.document_sequence_number_from</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Document Sequence Number To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
