<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: PSB Budget Revisions Transaction Report By Responsibility -->
 <REPORTS_ROW>
  <GUID>82288223F4343869E053B46B63588994</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select a.budget_revision_id,
       b.budget_group_name,
       e.set_of_books_id,
       a.code_combination_id,
       a.account_type,
       a.currency_code,
       a.gl_period_name,
       a.gl_budget_version_id,
       c.concatenated_segments,
       c.description,
       d.start_date,
       b.submission_date,
      fl.meaning transaction_type,
       nvl(decode(a.revision_type, &apos;I&apos;, decode(a.revision_value_type, &apos;A&apos;,
           a.revision_amount, a.budget_balance*a.revision_amount/100),
           -(decode(a.revision_value_type, &apos;A&apos;,a.revision_amount, 
           a.budget_balance*a.revision_amount/100))), 0) revision_value, 
	PSB_PSBRPBRT_XMLP_PKG.cf_open_balanceformula(a.code_combination_id, a.gl_budget_version_id, e.set_of_books_id, a.currency_code) CF_open_balance, 
	--PSB_PSBRPBRT_XMLP_PKG.cf_end_balanceformula(:CF_open_balance, :cs_revision_value) CF_end_balance, 
	PSB_PSBRPBRT_XMLP_PKG.cf_acct_flex_descformula(a.code_combination_id) CF_Acct_Flex_Desc,
	PSB_PSBRPBRT_XMLP_PKG.CP_open_balance_p CP_open_balance,
	PSB_PSBRPBRT_XMLP_PKG.CP_end_balance_p CP_end_balance
from psb_budget_revision_accounts_v a,
      psb_budget_revisions_v b,
      gl_code_combinations_kfv c,
      gl_period_statuses d,
      psb_gl_budget_sets e,
      fnd_lookups fl
where a.budget_group_id in (SELECT budget_group_id
		                 FROM psb_budget_groups
                                                   WHERE budget_group_type = &apos;R&apos;
                                                   START WITH budget_group_id = :p_budget_group_id
                                                   CONNECT BY PRIOR budget_group_id = parent_budget_group_id)
and  a.gl_budget_version_id LIKE NVL(:p_gl_budget_version_id, a.gl_budget_version_id)
and   b.submission_status  =  &apos;A&apos;
and   a.gl_period_name = d.period_name
and   d.start_date &gt;= :Input_period_start_date
and   d.end_date  &lt;= :Input_period_end_date
and   a.budget_revision_id = b.budget_revision_id
and   b.gl_budget_set_id = e.gl_budget_set_id
and   e.set_of_books_id = d.set_of_books_id   
and   d.application_id = 101
and   a.code_combination_id = c.code_combination_id
and   fl.lookup_type=&apos;PSB_REVISION_TRANSACTION_TYPES&apos;
and   fl.enabled_flag = &apos;Y&apos;
and   fl.lookup_code = b.transaction_type
ORDER BY 8 ASC,11 ASC,6 ASC,5 ASC,3 ASC,2 ASC,9 ASC,7 ASC,10 ASC,4 ASC , code_combination_id , submission_date , budget_revision_id
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>PSB</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>PSBRRBRT_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PSB Budget Revisions Transaction Report By Responsibility</REPORT_NAME>
    <DESCRIPTION>Application: Public Sector Budgeting (Obsolete)
Source: Budget Revisions Transaction Report By Responsibility (XML)
Short Name: PSBRRBRT_XML
DB package: PSB_PSBRPBRT_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:input_period_end_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:input_period_start_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_budget_group_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gl_budget_version_id</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_budget_group_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PSB_BUDGET_GROUPS_BY_RESP</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
budget_group_id id,
short_name value,
name description
from
psb_budget_groups
where budget_group_type=&apos;R&apos; and budget_group_id in
(select b.budget_group_id from psb_budget_groups b where b.budget_group_type=&apos;R&apos; and sysdate between effective_start_date and nvl(effective_end_date,sysdate) start with budget_group_id in (select c.budget_group_id from psb_budget_group_resp c where c.responsibility_id=fnd_global.resp_id) connect by prior b.budget_group_id=b.parent_budget_group_id)
order by short_name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Budget Group Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_start_period</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PSB_REVISION_PERIOD_BY_RESP</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
period_name id,
period_name value,
null description
from
gl_period_statuses
where application_id=101 and set_of_books_id=(select nvl(b.set_of_books_id,b.root_set_of_books_id) from psb_budget_groups_v b where b.budget_group_id=:$flex$.psb_budget_groups_by_resp) and closing_status!=&apos;C&apos; order by start_date</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Beginning Accounting Period</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_end_period</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PSB_REVISION_PERIOD_BY_RESP</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
period_name id,
period_name value,
null description
from
gl_period_statuses
where application_id=101 and set_of_books_id=(select nvl(b.set_of_books_id,b.root_set_of_books_id) from psb_budget_groups_v b where b.budget_group_id=:$flex$.psb_budget_groups_by_resp) and closing_status!=&apos;C&apos; order by start_date</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ending Accounting Period</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>
