<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: AP Expense Report Upload -->
 <REPORTS_ROW>
  <GUID>470AFB13A1804A1A91860A140B407BF7</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
null action_,
null status_,
null message_,
null modified_columns_,
haouv.name operating_unit,
ppx.full_name employee_name,
nvl(ppx.employee_number,ppx.npw_number) employee_number,
aerha.week_end_date report_date,
aerha.invoice_num,
aerha.default_currency_code currency,
aerha.total amount,
aerha.description,
(select alc.displayed_field from ap_lookup_codes alc where alc.lookup_type=&apos;HOLD CODE&apos; and aerha.hold_lookup_code=alc.lookup_code) hold,
xxen_util.meaning(aerha.expense_check_address_flag,&apos;HOME_OFFICE&apos;,3) send_to,
gcck_h.concatenated_segments gl_account,
aera.report_type template,
gdct.user_conversion_type exchange_rate_type,
aerha.default_exchange_date exchange_date,
aerha.default_exchange_rate exchange_rate,
aag_h.name withholding_tax_group,
xxen_util.yes(case when aerha.vouchno&lt;&gt;0 then &apos;Y&apos; end) exported,
aerha.reject_code export_rejection,
xxen_util.display_flexfield_context(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category) header_attribute_category,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE1&apos;,aerha.rowid,aerha.attribute1) header_attribute1,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE2&apos;,aerha.rowid,aerha.attribute2) header_attribute2,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE3&apos;,aerha.rowid,aerha.attribute3) header_attribute3,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE4&apos;,aerha.rowid,aerha.attribute4) header_attribute4,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE5&apos;,aerha.rowid,aerha.attribute5) header_attribute5,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE6&apos;,aerha.rowid,aerha.attribute6) header_attribute6,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE7&apos;,aerha.rowid,aerha.attribute7) header_attribute7,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE8&apos;,aerha.rowid,aerha.attribute8) header_attribute8,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE9&apos;,aerha.rowid,aerha.attribute9) header_attribute9,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE10&apos;,aerha.rowid,aerha.attribute10) header_attribute10,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE11&apos;,aerha.rowid,aerha.attribute11) header_attribute11,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE12&apos;,aerha.rowid,aerha.attribute12) header_attribute12,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE13&apos;,aerha.rowid,aerha.attribute13) header_attribute13,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE14&apos;,aerha.rowid,aerha.attribute14) header_attribute14,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE15&apos;,aerha.rowid,aerha.attribute15) header_attribute15,
aerla.distribution_line_number line_number,
aerla.item_description item,
aerla.amount line_amount,
gcck_l.concatenated_segments line_gl_account,
aerla.vat_code tax_code,
aag_l.name line_withholding_tax_group,
aerla.merchant_name,
aerla.merchant_document_number,
aerla.merchant_tax_reg_number,
aerla.merchant_taxpayer_id,
aerla.start_expense_date receipt_date,
ftv.territory_short_name country_of_supply,
aerla.merchant_reference reference,
aerla.receipt_currency_code receipt_currency,
aerla.receipt_conversion_rate receipt_exchange_rate,
aerla.receipt_currency_amount receipt_amount,
aerla.justification,
xxen_util.yes(aerla.receipt_verified_flag) receipt_verified,
xxen_util.yes(aerla.receipt_required_flag) receipt_required,
xxen_util.yes(aerla.receipt_missing_flag) receipt_missing,
ppa.segment1 project,
pt.task_number task,
aerla.expenditure_type,
haouv_exp.name expenditure_organization,
aerla.expenditure_item_date,
xxen_util.display_flexfield_context(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category) line_attribute_category,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE1&apos;,aerla.rowid,aerla.attribute1) line_attribute1,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE2&apos;,aerla.rowid,aerla.attribute2) line_attribute2,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE3&apos;,aerla.rowid,aerla.attribute3) line_attribute3,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE4&apos;,aerla.rowid,aerla.attribute4) line_attribute4,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE5&apos;,aerla.rowid,aerla.attribute5) line_attribute5,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE6&apos;,aerla.rowid,aerla.attribute6) line_attribute6,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE7&apos;,aerla.rowid,aerla.attribute7) line_attribute7,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE8&apos;,aerla.rowid,aerla.attribute8) line_attribute8,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE9&apos;,aerla.rowid,aerla.attribute9) line_attribute9,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE10&apos;,aerla.rowid,aerla.attribute10) line_attribute10,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE11&apos;,aerla.rowid,aerla.attribute11) line_attribute11,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE12&apos;,aerla.rowid,aerla.attribute12) line_attribute12,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE13&apos;,aerla.rowid,aerla.attribute13) line_attribute13,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE14&apos;,aerla.rowid,aerla.attribute14) line_attribute14,
xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE15&apos;,aerla.rowid,aerla.attribute15) line_attribute15,
null delete_line,
:p_submit_export submit_export,
aerha.report_header_id,
aerla.report_line_id,
null upload_row
from
ap_expense_report_headers_all aerha,
hr_all_organization_units_vl haouv,
per_people_x ppx,
gl_code_combinations_kfv gcck_h,
ap_expense_reports_all aera,
gl_daily_conversion_types gdct,
ap_awt_groups aag_h,
ap_expense_report_lines_all aerla,
gl_code_combinations_kfv gcck_l,
ap_awt_groups aag_l,
fnd_territories_vl ftv,
pa_projects_all ppa,
pa_tasks pt,
hr_all_organization_units_vl haouv_exp
where
1=1 and
aerha.source=&apos;XpenseXpress&apos; and
aerha.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
aerha.org_id=haouv.organization_id and
aerha.employee_id=ppx.person_id(+) and
aerha.employee_ccid=gcck_h.code_combination_id(+) and
aerha.expense_report_id=aera.expense_report_id(+) and
aerha.default_exchange_rate_type=gdct.conversion_type(+) and
aerha.awt_group_id=aag_h.group_id(+) and
aerha.report_header_id=aerla.report_header_id(+) and
nvl(aerla.itemization_parent_id(+),0)&lt;&gt;-1 and
aerla.code_combination_id=gcck_l.code_combination_id(+) and
aerla.awt_group_id=aag_l.group_id(+) and
aerla.country_of_supply=ftv.territory_code(+) and
aerla.project_id=ppa.project_id(+) and
aerla.task_id=pt.task_id(+) and
aerla.expenditure_organization_id=haouv_exp.organization_id(+)</SQL_TEXT>
  <VERSION_COMMENTS>Initial version: create and update expense reports and lines, delete lines, as in the Payables Expense Reports form, and transfer them to Payables with Expense Report Export.</VERSION_COMMENTS>
  <TYPE>U</TYPE>
  <UPLOAD_TYPE>A</UPLOAD_TYPE>
  <UPLOAD_OBJECT>xxen_ap_upload.upload_expense_report</UPLOAD_OBJECT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>AP Expense Report Upload</REPORT_NAME>
    <DESCRIPTION>Creates and updates expense reports - the Excel equivalent of the Payables Expense Reports form (Invoices &gt; Entry &gt; Expense Reports) - and transfers them to Payables invoices with Expense Report Export.

Each row is one expense report line, with the expense report header columns repeated on every line. The header values are taken from the first row of each expense report. An expense report is identified by Employee and Invoice Num.

Each expense report is processed as a whole: when any of its rows fails validation, none of its rows are saved. The Amount must equal the total of the lines; leave it unchanged to set it to the total of the lines.

The account of a line defaults from the GL Account of the expense report, overlaid with the account segments of the expense item, as in the form. Set Delete Line to Yes to delete a line.

With Submit Expense Report Export set to Yes, Expense Report Export runs for the operating units of the uploaded expense reports and creates the Payables invoices. As in Payables, it transfers every expense report pending export in the operating unit, also those not in the upload file. Rows of an expense report that it did not transfer (rejected, or on hold) show the reason as an error, and the expense report can be corrected and uploaded again. An exported expense report cannot be changed.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Upload</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_submit_export</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>:p_upload_mode like &apos;%&apos; || xxen_upload.action_update</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Blitz Upload Mode</LOV_NAME>
    <LOV_GUID>E811F942597A2075E0530100007FF4F2</LOV_GUID>
    <LOV_QUERY_DSP>select xxen_upload.action_create id, xxen_upload.action_meaning(xxen_upload.action_create) value, null description from dual union all
select xxen_upload.action_create||&apos;,&apos;||xxen_upload.action_update id, xxen_upload.action_meaning(xxen_upload.action_create)||&apos;, &apos;||xxen_upload.action_meaning(xxen_upload.action_update) value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>C,U</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Upload Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_submit_export</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes_No</LOV_NAME>
    <LOV_QUERY_DSP>select
lookup_code id,
meaning value,
null description
from
fnd_lookups
where fnd_lookups.lookup_type=&apos;YES_NO&apos;
order by value,description</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Submit Expense Report Export</PARAMETER_NAME>
      <DESCRIPTION>Runs Expense Report Export for the uploaded expense reports, which creates the Payables invoices.</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;OU&apos;)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.default_operating_unit,xxen_util.previous_parameter_value(:parameter_id))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>ppx.full_name=:employee_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select distinct
ppx.full_name value,
nvl(ppx.employee_number,ppx.npw_number) description
from
ap_expense_report_headers_all aerha,
per_people_x ppx
where
aerha.source=&apos;XpenseXpress&apos; and
aerha.org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
aerha.employee_id=ppx.person_id
order by
ppx.full_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Employee Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aerha.invoice_num=:invoice_num</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Invoice Num</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aerha.week_end_date&gt;=:report_date_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Date From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aerha.week_end_date&lt;:report_date_to+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Report Date To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>aerha.vouchno=0</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Not Exported Only</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>BFB158995E7544DCBD5291B970E2EEBD</GUID>
    <TEMPLATE_NAME>Default</TEMPLATE_NAME>
    <DESCRIPTION>All columns except the descriptive flexfield attributes.</DESCRIPTION>
    <OWNER>ENGINATICS</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>AMOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COUNTRY_OF_SUPPLY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CURRENCY</COLUMN_NAME>
      <FREEZE_PANES>Y</FREEZE_PANES>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>44</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DELETE_LINE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EMPLOYEE_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EMPLOYEE_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXCHANGE_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXCHANGE_RATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXCHANGE_RATE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>43</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPENDITURE_ITEM_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>42</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPENDITURE_ORGANIZATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>41</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPENDITURE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPORTED</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPORT_REJECTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>GL_ACCOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>HOLD</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INVOICE_NUM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ITEM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>35</DISPLAY_SEQUENCE>
      <COLUMN_NAME>JUSTIFICATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>21</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_AMOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>22</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_GL_ACCOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>24</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_WITHHOLDING_TAX_GROUP</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>26</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MERCHANT_DOCUMENT_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>25</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MERCHANT_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>28</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MERCHANT_TAXPAYER_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>27</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MERCHANT_TAX_REG_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>39</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PROJECT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>34</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_AMOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>32</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_CURRENCY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>29</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>33</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_EXCHANGE_RATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>38</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_MISSING</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>37</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_REQUIRED</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>36</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_VERIFIED</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>31</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REFERENCE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SEND_TO</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TASK</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>23</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TAX_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TEMPLATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>WITHHOLDING_TAX_GROUP</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
     <TEMPLATE_PARAMETER_DEFAULTS_ROW>
      <PARAMETER_NAME>Upload Mode</PARAMETER_NAME>
      <DEFAULT_VALUE>C,U</DEFAULT_VALUE>
     </TEMPLATE_PARAMETER_DEFAULTS_ROW>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
    <TEMPLATE_CONDITIONS>
    </TEMPLATE_CONDITIONS>
   </TEMPLATES_ROW>
   <TEMPLATES_ROW>
    <GUID>4A78BB20710D4A04A0703358F1320873</GUID>
    <TEMPLATE_NAME>New Expense Reports</TEMPLATE_NAME>
    <DESCRIPTION>Enters new expense reports, one row per expense line, with the columns of the Expense Reports window.

The line account defaults from the employee and the expense item.</DESCRIPTION>
    <OWNER>ENGINATICS</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>CURRENCY</COLUMN_NAME>
      <FREEZE_PANES>Y</FREEZE_PANES>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EMPLOYEE_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EMPLOYEE_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPENDITURE_ORGANIZATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EXPENDITURE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INVOICE_NUM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ITEM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>JUSTIFICATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_AMOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LINE_GL_ACCOUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>MERCHANT_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PROJECT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_CURRENCY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_EXCHANGE_RATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_DATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TASK</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>TEMPLATE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
     <TEMPLATE_PARAMETER_DEFAULTS_ROW>
      <PARAMETER_NAME>Upload Mode</PARAMETER_NAME>
      <DEFAULT_VALUE>C</DEFAULT_VALUE>
      <LOCKED>Y</LOCKED>
     </TEMPLATE_PARAMETER_DEFAULTS_ROW>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Employee Name</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Invoice Num</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Not Exported Only</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Report Date From</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
     <PARAMETER_EXCLUSION_ROW>
      <PARAMETER_NAME>Report Date To</PARAMETER_NAME>
     </PARAMETER_EXCLUSION_ROW>
    </PARAMETER_EXCLUSION>
    <TEMPLATE_CONDITIONS>
    </TEMPLATE_CONDITIONS>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_GUID>BFB158995E7544DCBD5291B970E2EEBD</TEMPLATE_GUID>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>1</COLUMN_NUMBER>
    <COLUMN_NAME>ACTION_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>2</COLUMN_NUMBER>
    <COLUMN_NAME>STATUS_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>3</COLUMN_NUMBER>
    <COLUMN_NAME>MESSAGE_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>4</COLUMN_NUMBER>
    <COLUMN_NAME>MODIFIED_COLUMNS_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>5</COLUMN_NUMBER>
    <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <LOV_NAME>HR Operating Unit for Upload</LOV_NAME>
    <LOV_GUID>F263DDA3FBF60F8FE0530100007F75CD</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.organization_id id,
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.operating_unit is null or hou.name=:$flex$.operating_unit) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>:$flex$.operating_unit</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>6</COLUMN_NUMBER>
    <COLUMN_NAME>EMPLOYEE_NAME</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <LOV_QUERY_DSP>select
pex.full_name value,
pex.employee_num description
from
hr_operating_units hou,
financials_system_params_all fspa,
per_employees_x pex
where
hou.name=:$column$.operating_unit and
hou.organization_id=fspa.org_id and
fspa.business_group_id=pex.business_group_id
order by
pex.full_name</LOV_QUERY_DSP>
    <COMMENTS>The employee the expense report is for. Together with Invoice Num, it identifies the expense report.</COMMENTS>
    <REQUIRED>Y</REQUIRED>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>7</COLUMN_NUMBER>
    <COLUMN_NAME>EMPLOYEE_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>30</DATA_LENGTH>
    <LOV_QUERY_DSP>select
pex.employee_num value,
pex.full_name description
from
hr_operating_units hou,
financials_system_params_all fspa,
per_employees_x pex
where
hou.name=:$column$.operating_unit and
hou.organization_id=fspa.org_id and
fspa.business_group_id=pex.business_group_id and
(:$column$.employee_name is null or pex.full_name=:$column$.employee_name)
order by
pex.employee_num</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select pex.employee_num from hr_operating_units hou, financials_system_params_all fspa, per_employees_x pex where hou.name=:$column$.operating_unit and hou.organization_id=fspa.org_id and fspa.business_group_id=pex.business_group_id and pex.full_name=:$column$.employee_name</DEFAULT_VALUE>
    <COMMENTS>Identifies the employee when several employees share the same name.</COMMENTS>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>8</COLUMN_NUMBER>
    <COLUMN_NAME>REPORT_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Expense report date. Defaults the receipt date of the lines.</COMMENTS>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>9</COLUMN_NUMBER>
    <COLUMN_NAME>INVOICE_NUM</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>50</DATA_LENGTH>
    <COMMENTS>Invoice number of the expense report, unique per employee.</COMMENTS>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>10</COLUMN_NUMBER>
    <COLUMN_NAME>CURRENCY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>15</DATA_LENGTH>
    <LOV_NAME>FND Currency</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9079D2E0530100007F1FF2</LOV_GUID>
    <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>
    <DEFAULT_VALUE>select aspa.invoice_currency_code from hr_operating_units hou, ap_system_parameters_all aspa where hou.name=:$column$.operating_unit and hou.organization_id=aspa.org_id</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>11</COLUMN_NUMBER>
    <COLUMN_NAME>AMOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Control total of the expense report. Leave it unchanged to set it to the total of the lines. An entered amount must equal the total of the lines.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>12</COLUMN_NUMBER>
    <COLUMN_NAME>DESCRIPTION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>13</COLUMN_NUMBER>
    <COLUMN_NAME>HOLD</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_QUERY_DSP>select
alc.displayed_field value,
ahc.description
from
ap_lookup_codes alc,
ap_hold_codes ahc
where
alc.lookup_type=&apos;HOLD CODE&apos; and
alc.lookup_code=ahc.hold_lookup_code and
ahc.hold_type=&apos;INVOICE HOLD REASON&apos; and
ahc.hold_lookup_code&lt;&gt;&apos;INVALID PO&apos; and
nvl(ahc.inactive_date,sysdate+1)&gt;=sysdate
order by
alc.displayed_field</LOV_QUERY_DSP>
    <COMMENTS>Expense Report Export does not transfer an expense report on hold.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>14</COLUMN_NUMBER>
    <COLUMN_NAME>SEND_TO</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_QUERY_DSP>select hl.meaning value, null description from hr_lookups hl where hl.lookup_type=&apos;HOME_OFFICE&apos; and hl.lookup_code in (&apos;H&apos;,&apos;O&apos;) order by hl.lookup_code</LOV_QUERY_DSP>
    <COMMENTS>Defaults from the employee.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>15</COLUMN_NUMBER>
    <COLUMN_NAME>GL_ACCOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>2000</DATA_LENGTH>
    <FREE_TEXT>Y</FREE_TEXT>
    <LOV_QUERY_DSP>select
gcck.concatenated_segments value,
xxen_util.segments_description(gcck.code_combination_id) description
from
hr_operating_units hou,
gl_ledgers gl,
gl_code_combinations_kfv gcck
where
hou.name=:$column$.operating_unit and
to_number(hou.set_of_books_id)=gl.ledger_id and
gl.chart_of_accounts_id=gcck.chart_of_accounts_id and
gcck.enabled_flag=&apos;Y&apos; and
gcck.summary_flag=&apos;N&apos; and
gcck.detail_posting_allowed=&apos;Y&apos; and
trunc(sysdate) between nvl(gcck.start_date_active,trunc(sysdate)) and nvl(gcck.end_date_active,trunc(sysdate))
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select gcck.concatenated_segments from hr_operating_units hou, financials_system_params_all fspa, per_employees_x pex, gl_code_combinations_kfv gcck where hou.name=:$column$.operating_unit and hou.organization_id=fspa.org_id and fspa.business_group_id=pex.business_group_id and pex.employee_num=:$column$.employee_number and pex.default_code_combination_id=gcck.code_combination_id</DEFAULT_VALUE>
    <COMMENTS>Defaults from the employee&apos;s default expense account. The account of each line defaults from it, overlaid with the account segments of the expense item.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>16</COLUMN_NUMBER>
    <COLUMN_NAME>TEMPLATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>25</DATA_LENGTH>
    <LOV_QUERY_DSP>select
aera.report_type value,
aera.description
from
hr_operating_units hou,
ap_expense_reports_all aera
where
hou.name=:$column$.operating_unit and
hou.organization_id=aera.org_id and
nvl(aera.inactive_date,sysdate+1)&gt;sysdate
order by
aera.report_type</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select aera.report_type from hr_operating_units hou, ap_expense_reports_all aera where hou.name=:$column$.operating_unit and hou.organization_id=aera.org_id and nvl(aera.inactive_date,sysdate+1)&gt;sysdate and 1=(select count(*) from ap_expense_reports_all aera2 where aera2.org_id=hou.organization_id and nvl(aera2.inactive_date,sysdate+1)&gt;sysdate)</DEFAULT_VALUE>
    <COMMENTS>Expense report template, which determines the expense items of the lines.</COMMENTS>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>17</COLUMN_NUMBER>
    <COLUMN_NAME>EXCHANGE_RATE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>30</DATA_LENGTH>
    <LOV_NAME>GL Currency Conversion Type</LOV_NAME>
    <LOV_GUID>91D3167A335F1204E053BB6B63585EE3</LOV_GUID>
    <LOV_QUERY_DSP>select
gdct.conversion_type id,
gdct.user_conversion_type value,
gdct.description
from
gl_daily_conversion_types gdct
order by
gdct.user_conversion_type</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select gdct.user_conversion_type from ap_system_parameters_all aspa, gl_daily_conversion_types gdct where aspa.org_id=(select hou.organization_id from hr_operating_units hou where hou.name=:$column$.operating_unit) and aspa.base_currency_code&lt;&gt;:$column$.currency and aspa.default_exchange_rate_type=gdct.conversion_type</DEFAULT_VALUE>
    <COMMENTS>Required for a foreign currency expense report.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>18</COLUMN_NUMBER>
    <COLUMN_NAME>EXCHANGE_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Defaults to the report date for a foreign currency expense report.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>19</COLUMN_NUMBER>
    <COLUMN_NAME>EXCHANGE_RATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Required for the User rate type, derived from the daily rates otherwise.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>20</COLUMN_NUMBER>
    <COLUMN_NAME>WITHHOLDING_TAX_GROUP</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>25</DATA_LENGTH>
    <LOV_QUERY_DSP>select
aag.name value,
aag.description
from
ap_awt_groups aag
where
nvl(aag.inactive_date,sysdate+1)&gt;sysdate
order by
aag.name</LOV_QUERY_DSP>
    <COMMENTS>Defaults from the employee supplier.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>21</COLUMN_NUMBER>
    <COLUMN_NAME>EXPORTED</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <COMMENTS>Yes when Expense Report Export has transferred the expense report to Payables. An exported expense report cannot be changed.</COMMENTS>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>22</COLUMN_NUMBER>
    <COLUMN_NAME>EXPORT_REJECTION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <COMMENTS>The reason why Expense Report Export rejected the expense report.</COMMENTS>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>23</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE_CATEGORY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select distinct
fdfcv.descriptive_flex_context_name value,
fdfcv.description
from
fnd_descriptive_flexs_vl fdfv,
fnd_descr_flex_contexts_vl fdfcv
where
fdfv.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
fdfv.application_id=200 and
fdfv.application_id=fdfcv.application_id and
fdfv.descriptive_flexfield_name=fdfcv.descriptive_flexfield_name and
fdfcv.enabled_flag=&apos;Y&apos; and
fdfcv.descriptive_flex_context_code&lt;&gt;&apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>24</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE1</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE1&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>25</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE2</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE2&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>26</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE3</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE3&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>27</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE4</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE4&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>28</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE5</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE5&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>29</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE6</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE6&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>30</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE7</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE7&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>31</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE8</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE8&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>32</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE9</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE9&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>33</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE10</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE10&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>34</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE11</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE11&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>35</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE12</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE12&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>36</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE13</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE13&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>37</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE14</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE14&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>38</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_ATTRIBUTE15</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_HEADERS&apos;,
 p_context_name =&gt; :$column$.header_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE15&apos;,
 p_attribute1  =&gt; :$column$.header_attribute1,
 p_attribute2  =&gt; :$column$.header_attribute2,
 p_attribute3  =&gt; :$column$.header_attribute3,
 p_attribute4  =&gt; :$column$.header_attribute4,
 p_attribute5  =&gt; :$column$.header_attribute5,
 p_attribute6  =&gt; :$column$.header_attribute6,
 p_attribute7  =&gt; :$column$.header_attribute7,
 p_attribute8  =&gt; :$column$.header_attribute8,
 p_attribute9  =&gt; :$column$.header_attribute9,
 p_attribute10 =&gt; :$column$.header_attribute10,
 p_attribute11 =&gt; :$column$.header_attribute11,
 p_attribute12 =&gt; :$column$.header_attribute12,
 p_attribute13 =&gt; :$column$.header_attribute13,
 p_attribute14 =&gt; :$column$.header_attribute14,
 p_attribute15 =&gt; :$column$.header_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_HEADERS&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>39</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Identifies the line within the expense report. Leave it blank on a new line to add it as the next line number.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>40</COLUMN_NUMBER>
    <COLUMN_NAME>ITEM</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_QUERY_DSP>select
aerpa.prompt value,
alc.displayed_field description
from
hr_operating_units hou,
ap_expense_reports_all aera,
ap_expense_report_params_all aerpa,
ap_lookup_codes alc
where
hou.name=:$column$.operating_unit and
hou.organization_id=aera.org_id and
aera.report_type=:$column$.template and
aera.expense_report_id=aerpa.expense_report_id and
trunc(sysdate)&lt;=nvl(aerpa.end_date,trunc(sysdate)) and
alc.lookup_type=&apos;INVOICE DISTRIBUTION TYPE&apos; and
aerpa.line_type_lookup_code=alc.lookup_code
order by
aerpa.prompt</LOV_QUERY_DSP>
    <COMMENTS>Expense item of the template.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>41</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_AMOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>42</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_GL_ACCOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>2000</DATA_LENGTH>
    <FREE_TEXT>Y</FREE_TEXT>
    <LOV_QUERY_DSP>select
gcck.concatenated_segments value,
xxen_util.segments_description(gcck.code_combination_id) description
from
hr_operating_units hou,
gl_ledgers gl,
gl_code_combinations_kfv gcck
where
hou.name=:$column$.operating_unit and
to_number(hou.set_of_books_id)=gl.ledger_id and
gl.chart_of_accounts_id=gcck.chart_of_accounts_id and
gcck.enabled_flag=&apos;Y&apos; and
gcck.summary_flag=&apos;N&apos; and
gcck.detail_posting_allowed=&apos;Y&apos; and
trunc(sysdate) between nvl(gcck.start_date_active,trunc(sysdate)) and nvl(gcck.end_date_active,trunc(sysdate))
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select xxen_ap_upload.expense_line_account(:$column$.operating_unit,:$column$.template,:$column$.item,:$column$.gl_account) from dual</DEFAULT_VALUE>
    <COMMENTS>Defaults from the GL Account of the expense report, overlaid with the account segments of the expense item.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>43</COLUMN_NUMBER>
    <COLUMN_NAME>TAX_CODE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>30</DATA_LENGTH>
    <LOV_QUERY_DSP>select distinct
zwcv.lookup_code value,
zwcv.description
from
hr_operating_units hou,
zx_webexp_classifications_v zwcv
where
hou.name=:$column$.operating_unit and
zwcv.org_id in (hou.organization_id,-99) and
zwcv.enabled_flag=&apos;Y&apos; and
sysdate between zwcv.start_date_active and nvl(zwcv.end_date_active,sysdate)
order by
zwcv.lookup_code</LOV_QUERY_DSP>
    <COMMENTS>Tax classification of the line. Defaults from the expense item.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>44</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_WITHHOLDING_TAX_GROUP</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>25</DATA_LENGTH>
    <LOV_QUERY_DSP>select
aag.name value,
aag.description
from
ap_awt_groups aag
where
nvl(aag.inactive_date,sysdate+1)&gt;sysdate
order by
aag.name</LOV_QUERY_DSP>
    <COMMENTS>Defaults from the Withholding Tax Group of the expense report.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>45</COLUMN_NUMBER>
    <COLUMN_NAME>MERCHANT_NAME</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>46</COLUMN_NUMBER>
    <COLUMN_NAME>MERCHANT_DOCUMENT_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>47</COLUMN_NUMBER>
    <COLUMN_NAME>MERCHANT_TAX_REG_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>48</COLUMN_NUMBER>
    <COLUMN_NAME>MERCHANT_TAXPAYER_ID</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>49</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Defaults to the report date.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>50</COLUMN_NUMBER>
    <COLUMN_NAME>COUNTRY_OF_SUPPLY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_NAME>Country</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8379D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
ftv.territory_code id,
ftv.territory_short_name value,
ftv.territory_code||&apos;: &apos;||ftv.description description
from
fnd_territories_vl ftv
order by
ftv.territory_short_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>51</COLUMN_NUMBER>
    <COLUMN_NAME>REFERENCE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>52</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_CURRENCY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>15</DATA_LENGTH>
    <LOV_NAME>FND Currency</LOV_NAME>
    <LOV_GUID>8E2FF36EDE9079D2E0530100007F1FF2</LOV_GUID>
    <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>
    <COMMENTS>Defaults to the currency of the expense report.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>53</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_EXCHANGE_RATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Rate from the receipt currency to the currency of the expense report. Required when the currencies differ.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>54</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_AMOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Line amount in the receipt currency, derived from the amount and the receipt exchange rate.</COMMENTS>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>55</COLUMN_NUMBER>
    <COLUMN_NAME>JUSTIFICATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>56</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_VERIFIED</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>57</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_REQUIRED</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>58</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_MISSING</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>59</COLUMN_NUMBER>
    <COLUMN_NAME>PROJECT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>25</DATA_LENGTH>
    <LOV_NAME>PO Project</LOV_NAME>
    <LOV_GUID>DEC9ED99A17F5BE8E0530100007FC601</LOV_GUID>
    <LOV_QUERY_DSP>select
ppev.project_id id,
ppev.project_number value,
ppev.project_name description
from
pa_projects_expend_v ppev</LOV_QUERY_DSP>
    <COMMENTS>Project, Task, Expenditure Type and Expenditure Organization are entered together for a project related line.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>60</COLUMN_NUMBER>
    <COLUMN_NAME>TASK</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>25</DATA_LENGTH>
    <LOV_QUERY_DSP>select
ptev.task_number value,
ptev.task_name description
from
pa_projects_expend_v ppev,
pa_tasks_expend_v ptev
where
ppev.project_number=:$column$.project and
ppev.project_id=ptev.project_id
order by
ptev.wbs_sort_order</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>61</COLUMN_NUMBER>
    <COLUMN_NAME>EXPENDITURE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>30</DATA_LENGTH>
    <LOV_QUERY_DSP>select
petev.expenditure_type value,
petev.description
from
pa_expenditure_types_expend_v petev
where
petev.system_linkage_function=&apos;ER&apos; and
sysdate between petev.expnd_typ_start_date_active and nvl(petev.expnd_typ_end_date_active,sysdate) and
sysdate between petev.sys_link_start_date_active and nvl(petev.sys_link_end_date_active,sysdate)
order by
petev.expenditure_type</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>62</COLUMN_NUMBER>
    <COLUMN_NAME>EXPENDITURE_ORGANIZATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <LOV_QUERY_DSP>select distinct
poev.name value,
null description
from
hr_operating_units hou,
financials_system_params_all fspa,
pa_organizations_expend_v poev
where
hou.name=:$column$.operating_unit and
hou.organization_id=fspa.org_id and
fspa.business_group_id=poev.business_group_id and
poev.active_flag=&apos;Y&apos; and
sysdate between poev.date_from and nvl(poev.date_to,sysdate+1)
order by
poev.name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>63</COLUMN_NUMBER>
    <COLUMN_NAME>EXPENDITURE_ITEM_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Defaults to the receipt date for a project related line.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>64</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE_CATEGORY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select distinct
fdfcv.descriptive_flex_context_name value,
fdfcv.description
from
fnd_descriptive_flexs_vl fdfv,
fnd_descr_flex_contexts_vl fdfcv
where
fdfv.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
fdfv.application_id=200 and
fdfv.application_id=fdfcv.application_id and
fdfv.descriptive_flexfield_name=fdfcv.descriptive_flexfield_name and
fdfcv.enabled_flag=&apos;Y&apos; and
fdfcv.descriptive_flex_context_code&lt;&gt;&apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>65</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE1</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE1&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>66</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE2</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE2&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>67</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE3</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE3&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>68</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE4</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE4&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>69</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE5</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE5&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>70</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE6</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE6&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>71</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE7</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE7&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>72</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE8</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE8&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>73</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE9</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE9&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>74</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE10</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE10&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>75</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE11</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE11&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>76</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE12</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE12&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>77</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE13</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE13&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>78</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE14</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE14&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>79</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE15</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
substrb(lov.column_value,1,instrb(lov.column_value,&apos;~&apos;,1,1)-1) value,
substrb(lov.column_value,instrb(lov.column_value,&apos;~&apos;,1,1)+1,lengthb(lov.column_value)) description
from
table(
xxen_util.dff_attribute_lov
(p_application_id =&gt; 200,
 p_descriptive_flexfield_name =&gt; &apos;AP_EXPENSE_REPORT_LINES&apos;,
 p_context_name =&gt; :$column$.line_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE15&apos;,
 p_attribute1  =&gt; :$column$.line_attribute1,
 p_attribute2  =&gt; :$column$.line_attribute2,
 p_attribute3  =&gt; :$column$.line_attribute3,
 p_attribute4  =&gt; :$column$.line_attribute4,
 p_attribute5  =&gt; :$column$.line_attribute5,
 p_attribute6  =&gt; :$column$.line_attribute6,
 p_attribute7  =&gt; :$column$.line_attribute7,
 p_attribute8  =&gt; :$column$.line_attribute8,
 p_attribute9  =&gt; :$column$.line_attribute9,
 p_attribute10 =&gt; :$column$.line_attribute10,
 p_attribute11 =&gt; :$column$.line_attribute11,
 p_attribute12 =&gt; :$column$.line_attribute12,
 p_attribute13 =&gt; :$column$.line_attribute13,
 p_attribute14 =&gt; :$column$.line_attribute14,
 p_attribute15 =&gt; :$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(dffcu.application_column_name) || &apos;: &apos; ||
listagg(decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || dffcx.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || dffcu.form_left_prompt,&apos;, &apos;) within group (order by decode(dffcx.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),dffcx.descriptive_flex_context_code) over (partition by dffcu.application_column_name)
from
fnd_descriptive_flexs_vl dff,
fnd_descr_flex_contexts dffcx,
fnd_descr_flex_col_usage_vl dffcu
where
dffcx.application_id=dff.application_id and
dffcx.descriptive_flexfield_name=dff.descriptive_flexfield_name and
dffcx.enabled_flag=&apos;Y&apos; and
dffcu.application_id=dffcx.application_id and
dffcu.descriptive_flexfield_name=dffcx.descriptive_flexfield_name and
dffcu.descriptive_flex_context_code=dffcx.descriptive_flex_context_code and
dffcu.enabled_flag=&apos;Y&apos; and
dff.application_id=200 and
dff.descriptive_flexfield_name=&apos;AP_EXPENSE_REPORT_LINES&apos; and
dffcu.application_column_name=&apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>80</COLUMN_NUMBER>
    <COLUMN_NAME>DELETE_LINE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>80</DATA_LENGTH>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual where :$column$.report_header_id is not null and :$column$.line_number is not null</LOV_QUERY_DSP>
    <COMMENTS>Deletes the line from the expense report.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>81</COLUMN_NUMBER>
    <COLUMN_NAME>SUBMIT_EXPORT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>1</DATA_LENGTH>
    <DEFAULT_VALUE>:$flex$.submit_expense_report_export</DEFAULT_VALUE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>82</COLUMN_NUMBER>
    <COLUMN_NAME>REPORT_HEADER_ID</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>83</COLUMN_NUMBER>
    <COLUMN_NAME>REPORT_LINE_ID</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>84</COLUMN_NUMBER>
    <COLUMN_NAME>UPLOAD_ROW</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Error SQL</SQL_TYPE>
   </UPLOAD_SQLS_ROW>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Order By</SQL_TYPE>
    <SQL_TEXT>upload_row, operating_unit, employee_name, invoice_num, line_number</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Success SQL</SQL_TYPE>
    <SQL_TEXT>select
xu.action_,
xu.status_,
xu.message_,
xu.modified_columns_,
nvl(haouv.name,xu.operating_unit) operating_unit,
nvl(ppx.full_name,xu.employee_name) employee_name,
nvl(nvl(ppx.employee_number,ppx.npw_number),xu.employee_number) employee_number,
nvl(aerha.week_end_date,xu.report_date) report_date,
nvl(aerha.invoice_num,xu.invoice_num) invoice_num,
nvl(aerha.default_currency_code,xu.currency) currency,
nvl(aerha.total,xu.amount) amount,
nvl(aerha.description,xu.description) description,
nvl((select alc.displayed_field from ap_lookup_codes alc where alc.lookup_type=&apos;HOLD CODE&apos; and aerha.hold_lookup_code=alc.lookup_code),xu.hold) hold,
nvl(xxen_util.meaning(aerha.expense_check_address_flag,&apos;HOME_OFFICE&apos;,3),xu.send_to) send_to,
nvl(gcck_h.concatenated_segments,xu.gl_account) gl_account,
nvl(aera.report_type,xu.template) template,
nvl(gdct.user_conversion_type,xu.exchange_rate_type) exchange_rate_type,
nvl(aerha.default_exchange_date,xu.exchange_date) exchange_date,
nvl(aerha.default_exchange_rate,xu.exchange_rate) exchange_rate,
nvl(aag_h.name,xu.withholding_tax_group) withholding_tax_group,
nvl(xxen_util.yes(case when aerha.vouchno&lt;&gt;0 then &apos;Y&apos; end),xu.exported) exported,
nvl(aerha.reject_code,xu.export_rejection) export_rejection,
nvl(xxen_util.display_flexfield_context(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category),xu.header_attribute_category) header_attribute_category,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE1&apos;,aerha.rowid,aerha.attribute1),xu.header_attribute1) header_attribute1,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE2&apos;,aerha.rowid,aerha.attribute2),xu.header_attribute2) header_attribute2,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE3&apos;,aerha.rowid,aerha.attribute3),xu.header_attribute3) header_attribute3,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE4&apos;,aerha.rowid,aerha.attribute4),xu.header_attribute4) header_attribute4,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE5&apos;,aerha.rowid,aerha.attribute5),xu.header_attribute5) header_attribute5,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE6&apos;,aerha.rowid,aerha.attribute6),xu.header_attribute6) header_attribute6,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE7&apos;,aerha.rowid,aerha.attribute7),xu.header_attribute7) header_attribute7,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE8&apos;,aerha.rowid,aerha.attribute8),xu.header_attribute8) header_attribute8,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE9&apos;,aerha.rowid,aerha.attribute9),xu.header_attribute9) header_attribute9,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE10&apos;,aerha.rowid,aerha.attribute10),xu.header_attribute10) header_attribute10,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE11&apos;,aerha.rowid,aerha.attribute11),xu.header_attribute11) header_attribute11,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE12&apos;,aerha.rowid,aerha.attribute12),xu.header_attribute12) header_attribute12,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE13&apos;,aerha.rowid,aerha.attribute13),xu.header_attribute13) header_attribute13,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE14&apos;,aerha.rowid,aerha.attribute14),xu.header_attribute14) header_attribute14,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_HEADERS&apos;,aerha.attribute_category,&apos;ATTRIBUTE15&apos;,aerha.rowid,aerha.attribute15),xu.header_attribute15) header_attribute15,
nvl(aerla.distribution_line_number,xu.line_number) line_number,
nvl(aerla.item_description,xu.item) item,
nvl(aerla.amount,xu.line_amount) line_amount,
nvl(gcck_l.concatenated_segments,xu.line_gl_account) line_gl_account,
nvl(aerla.vat_code,xu.tax_code) tax_code,
nvl(aag_l.name,xu.line_withholding_tax_group) line_withholding_tax_group,
nvl(aerla.merchant_name,xu.merchant_name) merchant_name,
nvl(aerla.merchant_document_number,xu.merchant_document_number) merchant_document_number,
nvl(aerla.merchant_tax_reg_number,xu.merchant_tax_reg_number) merchant_tax_reg_number,
nvl(aerla.merchant_taxpayer_id,xu.merchant_taxpayer_id) merchant_taxpayer_id,
nvl(aerla.start_expense_date,xu.receipt_date) receipt_date,
nvl(ftv.territory_short_name,xu.country_of_supply) country_of_supply,
nvl(aerla.merchant_reference,xu.reference) reference,
nvl(aerla.receipt_currency_code,xu.receipt_currency) receipt_currency,
nvl(aerla.receipt_conversion_rate,xu.receipt_exchange_rate) receipt_exchange_rate,
nvl(aerla.receipt_currency_amount,xu.receipt_amount) receipt_amount,
nvl(aerla.justification,xu.justification) justification,
nvl(xxen_util.yes(aerla.receipt_verified_flag),xu.receipt_verified) receipt_verified,
nvl(xxen_util.yes(aerla.receipt_required_flag),xu.receipt_required) receipt_required,
nvl(xxen_util.yes(aerla.receipt_missing_flag),xu.receipt_missing) receipt_missing,
nvl(ppa.segment1,xu.project) project,
nvl(pt.task_number,xu.task) task,
nvl(aerla.expenditure_type,xu.expenditure_type) expenditure_type,
nvl(haouv_exp.name,xu.expenditure_organization) expenditure_organization,
nvl(aerla.expenditure_item_date,xu.expenditure_item_date) expenditure_item_date,
nvl(xxen_util.display_flexfield_context(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category),xu.line_attribute_category) line_attribute_category,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE1&apos;,aerla.rowid,aerla.attribute1),xu.line_attribute1) line_attribute1,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE2&apos;,aerla.rowid,aerla.attribute2),xu.line_attribute2) line_attribute2,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE3&apos;,aerla.rowid,aerla.attribute3),xu.line_attribute3) line_attribute3,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE4&apos;,aerla.rowid,aerla.attribute4),xu.line_attribute4) line_attribute4,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE5&apos;,aerla.rowid,aerla.attribute5),xu.line_attribute5) line_attribute5,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE6&apos;,aerla.rowid,aerla.attribute6),xu.line_attribute6) line_attribute6,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE7&apos;,aerla.rowid,aerla.attribute7),xu.line_attribute7) line_attribute7,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE8&apos;,aerla.rowid,aerla.attribute8),xu.line_attribute8) line_attribute8,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE9&apos;,aerla.rowid,aerla.attribute9),xu.line_attribute9) line_attribute9,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE10&apos;,aerla.rowid,aerla.attribute10),xu.line_attribute10) line_attribute10,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE11&apos;,aerla.rowid,aerla.attribute11),xu.line_attribute11) line_attribute11,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE12&apos;,aerla.rowid,aerla.attribute12),xu.line_attribute12) line_attribute12,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE13&apos;,aerla.rowid,aerla.attribute13),xu.line_attribute13) line_attribute13,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE14&apos;,aerla.rowid,aerla.attribute14),xu.line_attribute14) line_attribute14,
nvl(xxen_util.display_flexfield_value(200,&apos;AP_EXPENSE_REPORT_LINES&apos;,aerla.attribute_category,&apos;ATTRIBUTE15&apos;,aerla.rowid,aerla.attribute15),xu.line_attribute15) line_attribute15,
xu.delete_line,
xu.submit_export,
xu.report_header_id,
xu.report_line_id,
xu.upload_row
from
xxen_ap_expense_report_8009_u xu,
ap_expense_report_headers_all aerha,
hr_all_organization_units_vl haouv,
per_people_x ppx,
gl_code_combinations_kfv gcck_h,
ap_expense_reports_all aera,
gl_daily_conversion_types gdct,
ap_awt_groups aag_h,
ap_expense_report_lines_all aerla,
gl_code_combinations_kfv gcck_l,
ap_awt_groups aag_l,
fnd_territories_vl ftv,
pa_projects_all ppa,
pa_tasks pt,
hr_all_organization_units_vl haouv_exp
where
xu.status_code_=xxen_upload.status_success and
xu.report_header_id=aerha.report_header_id(+) and
xu.report_line_id=aerla.report_line_id(+) and
aerha.org_id=haouv.organization_id(+) and
aerha.employee_id=ppx.person_id(+) and
aerha.employee_ccid=gcck_h.code_combination_id(+) and
aerha.expense_report_id=aera.expense_report_id(+) and
aerha.default_exchange_rate_type=gdct.conversion_type(+) and
aerha.awt_group_id=aag_h.group_id(+) and
aerha.report_header_id=aerla.report_header_id(+) and
nvl(aerla.itemization_parent_id(+),0)&lt;&gt;-1 and
aerla.code_combination_id=gcck_l.code_combination_id(+) and
aerla.awt_group_id=aag_l.group_id(+) and
aerla.country_of_supply=ftv.territory_code(+) and
aerla.project_id=ppa.project_id(+) and
aerla.task_id=pt.task_id(+) and
aerla.expenditure_organization_id=haouv_exp.organization_id(+)</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
