<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: MRP Sourcing Rule Upload -->
 <REPORTS_ROW>
  <GUID>0BDB97CF103D6724E06362FB090508F8</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with sr_query as
(
select
 --
 -- sourcing rule
 xxen_util.meaning(mrs.sourcing_rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) rule_type,
 mrs.sourcing_rule_name rule_name,
 mrs.description rule_description,
 xxen_util.meaning(nvl2(mp.organization_code,&apos;2&apos;,&apos;1&apos;),&apos;INV_YES_NO&apos;,3) all_orgs,
 mp.organization_code  organization,
 xxen_util.meaning(mrs.status,&apos;INV_YES_NO&apos;,3) active,
 xxen_util.meaning(decode(mrs.planning_active,1,1,null),&apos;INV_YES_NO&apos;,3) planning_active,
 -- receiving organizations
 msrov.organization_code receipt_organization,
 msrov.customer          receipt_customer,
 msrov.address           receipt_address,
 msrov.effective_date    effective_date_from,
 msrov.disable_date      effective_date_to,
 -- shipping organization
 xxen_util.meaning(mssov.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) source_type,
 mssov.source_organization_code source_organization,
 asu.vendor_name supplier,
 asu.segment1 supplier_number,
 mssov.vendor_site supplier_site,
 haouv.name supplier_site_op_unit,
 mssov.allocation_percent,
 mssov.rank,
 mssov.ship_method,
 mssov.intransit_time,
 -- attributes
 xxen_util.display_flexfield_context(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category) rule_attribute_category,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE1&apos;,mrs.rowid,mrs.attribute1) sr_rule_attribute1,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE2&apos;,mrs.rowid,mrs.attribute2) sr_rule_attribute2,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE3&apos;,mrs.rowid,mrs.attribute3) sr_rule_attribute3,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE4&apos;,mrs.rowid,mrs.attribute4) sr_rule_attribute4,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE5&apos;,mrs.rowid,mrs.attribute5) sr_rule_attribute5,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE6&apos;,mrs.rowid,mrs.attribute6) sr_rule_attribute6,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE7&apos;,mrs.rowid,mrs.attribute7) sr_rule_attribute7,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE8&apos;,mrs.rowid,mrs.attribute8) sr_rule_attribute8,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE9&apos;,mrs.rowid,mrs.attribute9) sr_rule_attribute9,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE10&apos;,mrs.rowid,mrs.attribute10) sr_rule_attribute10,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE11&apos;,mrs.rowid,mrs.attribute11) sr_rule_attribute11,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE12&apos;,mrs.rowid,mrs.attribute12) sr_rule_attribute12,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE13&apos;,mrs.rowid,mrs.attribute13) sr_rule_attribute13,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE14&apos;,mrs.rowid,mrs.attribute14) sr_rule_attribute14,
 xxen_util.display_flexfield_value(704,&apos;MRP_SOURCING_RULES&apos;,mrs.attribute_category,&apos;ATTRIBUTE15&apos;,mrs.rowid,mrs.attribute15) sr_rule_attribute15,
 --
 xxen_util.display_flexfield_context(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category) receipt_attribute_category,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE1&apos;,msrov.row_id,msrov.attribute1) sr_receipt_attribute1,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE2&apos;,msrov.row_id,msrov.attribute2) sr_receipt_attribute2,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE3&apos;,msrov.row_id,msrov.attribute3) sr_receipt_attribute3,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE4&apos;,msrov.row_id,msrov.attribute4) sr_receipt_attribute4,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE5&apos;,msrov.row_id,msrov.attribute5) sr_receipt_attribute5,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE6&apos;,msrov.row_id,msrov.attribute6) sr_receipt_attribute6,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE7&apos;,msrov.row_id,msrov.attribute7) sr_receipt_attribute7,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE8&apos;,msrov.row_id,msrov.attribute8) sr_receipt_attribute8,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE9&apos;,msrov.row_id,msrov.attribute9) sr_receipt_attribute9,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE10&apos;,msrov.row_id,msrov.attribute10) sr_receipt_attribute10,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE11&apos;,msrov.row_id,msrov.attribute11) sr_receipt_attribute11,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE12&apos;,msrov.row_id,msrov.attribute12) sr_receipt_attribute12,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE13&apos;,msrov.row_id,msrov.attribute13) sr_receipt_attribute13,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE14&apos;,msrov.row_id,msrov.attribute14) sr_receipt_attribute14,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_RECEIPT_ORG&apos;,msrov.attribute_category,&apos;ATTRIBUTE15&apos;,msrov.row_id,msrov.attribute15) sr_receipt_attribute15,
 --
 xxen_util.display_flexfield_context(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category) ship_attribute_category,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE1&apos;,mssov.row_id,mssov.attribute1) sr_ship_attribute1,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE2&apos;,mssov.row_id,mssov.attribute2) sr_ship_attribute2,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE3&apos;,mssov.row_id,mssov.attribute3) sr_ship_attribute3,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE4&apos;,mssov.row_id,mssov.attribute4) sr_ship_attribute4,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE5&apos;,mssov.row_id,mssov.attribute5) sr_ship_attribute5,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE6&apos;,mssov.row_id,mssov.attribute6) sr_ship_attribute6,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE7&apos;,mssov.row_id,mssov.attribute7) sr_ship_attribute7,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE8&apos;,mssov.row_id,mssov.attribute8) sr_ship_attribute8,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE9&apos;,mssov.row_id,mssov.attribute9) sr_ship_attribute9,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE10&apos;,mssov.row_id,mssov.attribute10) sr_ship_attribute10,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE11&apos;,mssov.row_id,mssov.attribute11) sr_ship_attribute11,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE12&apos;,mssov.row_id,mssov.attribute12) sr_ship_attribute12,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE13&apos;,mssov.row_id,mssov.attribute13) sr_ship_attribute13,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE14&apos;,mssov.row_id,mssov.attribute14) sr_ship_attribute14,
 xxen_util.display_flexfield_value(704,&apos;MRP_SR_SOURCE_ORG&apos;,mssov.attribute_category,&apos;ATTRIBUTE15&apos;,mssov.row_id,mssov.attribute15) sr_ship_attribute15,
 -- ids
 mrs.sourcing_rule_id,
 msrov.sr_receipt_id,
 mssov.sr_source_id,
 --
 mssov.last_updated_by,
 mssov.last_update_date
from
 mrp_sourcing_rules mrs,
 mtl_parameters mp,
 mrp_sr_receipt_org_v msrov,
 mrp_sr_source_org_v mssov,
 ap_suppliers asu,
 ap_supplier_sites_all assa,
 hr_all_organization_units_vl haouv
where
 mp.organization_id (+) = mrs.organization_id and
 msrov.sourcing_rule_id (+) = mrs.sourcing_rule_id and
 mssov.sr_receipt_id (+) = msrov.sr_receipt_id and
 asu.vendor_id (+) = mssov.vendor_id and
 assa.vendor_site_id (+) = mssov.vendor_site_id and
 haouv.organization_id (+) = assa.org_id and
 (mrs.organization_id is null or
  mrs.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;)
 )
)
--
-- Main Query Starts Here
--
select /*+ push_pred(sr) */
 null action_,
 null status_,
 null message_,
 null request_id_,
 null modified_columns_,
 null sr_row_id,
 null ro_row_id,
 null so_row_id,
 :p_upload_mode upload_mode,
 :p_bypass_dff_validation bypass_dff_validation,
 -- sourcing rule
 sr.rule_name,
 sr.rule_description,
 sr.rule_type,
 sr.planning_active,
 sr.all_orgs,
 -- receiving organizations
 sr.receipt_organization,
 sr.receipt_customer,
 sr.receipt_address,
 sr.effective_date_from,
 sr.effective_date_to,
 -- shipping organization
 sr.source_type,
 sr.source_organization,
 sr.supplier,
 sr.supplier_number,
 sr.supplier_site,
 sr.supplier_site_op_unit,
 sr.allocation_percent,
 sr.rank,
 sr.ship_method,
 sr.intransit_time,
 -- attributes
 sr.rule_attribute_category,
 sr.sr_rule_attribute1,
 sr.sr_rule_attribute2,
 sr.sr_rule_attribute3,
 sr.sr_rule_attribute4,
 sr.sr_rule_attribute5,
 sr.sr_rule_attribute6,
 sr.sr_rule_attribute7,
 sr.sr_rule_attribute8,
 sr.sr_rule_attribute9,
 sr.sr_rule_attribute10,
 sr.sr_rule_attribute11,
 sr.sr_rule_attribute12,
 sr.sr_rule_attribute13,
 sr.sr_rule_attribute14,
 sr.sr_rule_attribute15,
 --
 sr.receipt_attribute_category,
 sr.sr_receipt_attribute1,
 sr.sr_receipt_attribute2,
 sr.sr_receipt_attribute3,
 sr.sr_receipt_attribute4,
 sr.sr_receipt_attribute5,
 sr.sr_receipt_attribute6,
 sr.sr_receipt_attribute7,
 sr.sr_receipt_attribute8,
 sr.sr_receipt_attribute9,
 sr.sr_receipt_attribute10,
 sr.sr_receipt_attribute11,
 sr.sr_receipt_attribute12,
 sr.sr_receipt_attribute13,
 sr.sr_receipt_attribute14,
 sr.sr_receipt_attribute15,
 --
 sr.ship_attribute_category,
 sr.sr_ship_attribute1,
 sr.sr_ship_attribute2,
 sr.sr_ship_attribute3,
 sr.sr_ship_attribute4,
 sr.sr_ship_attribute5,
 sr.sr_ship_attribute6,
 sr.sr_ship_attribute7,
 sr.sr_ship_attribute8,
 sr.sr_ship_attribute9,
 sr.sr_ship_attribute10,
 sr.sr_ship_attribute11,
 sr.sr_ship_attribute12,
 sr.sr_ship_attribute13,
 sr.sr_ship_attribute14,
 sr.sr_ship_attribute15,
 --
 null delete_option,
 -- ids
 sr.organization,
 sr.active,
 sr.sourcing_rule_id,
 sr.sr_receipt_id,
 sr.sr_source_id,
 to_number(null) group_id,
 to_number(null) upload_row
from
 sr_query sr
where
 :p_include_global = :p_include_global and
 1=1</SQL_TEXT>
  <VERSION_COMMENTS>Code style: redundant column aliases removed; hidden upload_row column added and the result ordered by upload row first.</VERSION_COMMENTS>
  <TYPE>U</TYPE>
  <UPLOAD_TYPE>A</UPLOAD_TYPE>
  <UPLOAD_OBJECT>xxen_mrp_upload.upload_sourcing_rule</UPLOAD_OBJECT>
  <UPLOAD_POST_PROCEDURE>xxen_mrp_upload.do_sourcing_rule_import</UPLOAD_POST_PROCEDURE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>MRP Sourcing Rule Upload</REPORT_NAME>
    <DESCRIPTION>MRP Sourcing Rule Upload
========================
- Upload new Sourcing Rules and Bills of Distribution
- Download, update and delete existing Sourcing Rules, their receiving organizations and their sources

Each row is one source (a shipping organization or a supplier) of one receiving organization of a sourcing rule. The rule and receiving organization columns repeat on every row of the rule. All rows of a rule are saved together through the Oracle sourcing rule API, so an error on one row rejects the whole rule.

Planning Active is set by the upload: Yes when the allocation percentages of each rank of each receiving organization add up to 100.

Delete Option
- Sourcing Rule: deletes the whole rule
- Shipping Org: deletes the source of the row
A receiving organization entry cannot be deleted by the upload, as the Oracle API rejects it; delete its sources, delete the whole rule, or remove it in the Sourcing Rule form.

Use Sourcing Rule Type, Sourcing Rule Organization and Include Global Sourcing Rules to select the rules to download.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</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_bypass_dff_validation</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_include_global</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_upload_mode</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_bypass_dff_validation</ANCHOR>
    <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>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Bypass DFF Validation</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</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</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>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>sr.rule_type = :p_rule_type</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
flvv.meaning value,
flvv.description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type = &apos;MRP_SOURCING_RULE_TYPE&apos; and
flvv.view_application_id = 700 and
flvv.security_group_id = fnd_global.security_group_id and
flvv.lookup_code in (1,2)
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.meaning(1,&apos;MRP_SOURCING_RULE_TYPE&apos;,700)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sourcing Rule Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>25</DISPLAY_SEQUENCE>
    <ANCHOR>:p_include_global</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
fl.lookup_code id,
fl.meaning value,
null description
from
fnd_lookups fl
where 
fl.lookup_type=&apos;YES_NO&apos; and
(nvl(xxen_util.lookup_code(:$flex$.sourcing_rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700),&apos;1&apos;) = &apos;1&apos; or
 fl.lookup_code = &apos;Y&apos;
)
order by 
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>Y</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Include Global Sourcing Rules</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>sr.organization is not null</SQL_TEXT>
    <MATCHING_VALUE>N</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Include Global Sourcing Rules</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>(sr.organization = :p_organization or
 (sr.organization is null and
  :p_include_global = &apos;Y&apos;
 )
)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select 
x.value,
x.description
from
(
select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;) and
nvl(ood.disable_date,sysdate)&gt;=sysdate and
(:$flex$.Sourcing_Rule_Type is null or xxen_util.lookup_code(:$flex$.Sourcing_Rule_Type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = 1)
) x
order by
x.value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
mp.organization_code
from 
mtl_parameters mp
where 
mp.organization_id = fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) and
xxen_util.lookup_code(:$flex$.Sourcing_Rule_Type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = 1</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sourcing Rule Organization</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>sr.rule_name = :p_rule_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <LOV_QUERY_DSP>select
mrs.sourcing_rule_name value,
mrs.description || 
&apos; (&apos; || xxen_util.meaning(mrs.sourcing_rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) || &apos;)&apos; ||
decode(mrs.sourcing_rule_type,1,&apos; (&apos; || nvl(mp.organization_code,&apos;All Orgs&apos;) || &apos;)&apos;) description
from
mrp_sourcing_rules mrs,
mtl_parameters mp
where
mp.organization_id (+) = mrs.organization_id and
(mrs.organization_id is null or
 mrs.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;) 
) and
(:$flex$.Sourcing_Rule_Type is null or
 xxen_util.contains(:$flex$.Sourcing_Rule_Type,xxen_util.meaning(mrs.sourcing_rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700)) = &apos;Y&apos; 
) and
(:$flex$.Sourcing_Rule_Organization is null or
 xxen_util.contains(:$flex$.Sourcing_Rule_Organization,nvl(mp.organization_code,&apos;*All Orgs*&apos;)) = &apos;Y&apos;
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sourcing Rule Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>lower(sr.rule_name) like lower(:p_rule_name_like)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Sourcing Rule Name Like</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>1DABEDDB582AA51BABA1B2EBF529774C</GUID>
    <TEMPLATE_NAME>Default</TEMPLATE_NAME>
    <OWNER>SYSADMIN</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ALLOCATION_PERCENT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ALL_ORGS</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>DELETE_OPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EFFECTIVE_DATE_FROM</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>EFFECTIVE_DATE_TO</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INTRANSIT_TIME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PLANNING_ACTIVE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RANK</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RECEIPT_ORGANIZATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RULE_DESCRIPTION</COLUMN_NAME>
      <FREEZE_PANES>Y</FREEZE_PANES>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RULE_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>RULE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SHIP_METHOD</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SOURCE_ORGANIZATION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SOURCE_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SUPPLIER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SUPPLIER_SITE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>SUPPLIER_SITE_OP_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </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>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_GUID>1DABEDDB582AA51BABA1B2EBF529774C</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>REQUEST_ID_</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>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>6</COLUMN_NUMBER>
    <COLUMN_NAME>SR_ROW_ID</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>7</COLUMN_NUMBER>
    <COLUMN_NAME>RO_ROW_ID</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>8</COLUMN_NUMBER>
    <COLUMN_NAME>SO_ROW_ID</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>9</COLUMN_NUMBER>
    <COLUMN_NAME>UPLOAD_MODE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>2000</DATA_LENGTH>
    <DEFAULT_VALUE>:$flex$.Upload_Mode</DEFAULT_VALUE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>10</COLUMN_NUMBER>
    <COLUMN_NAME>BYPASS_DFF_VALIDATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>2000</DATA_LENGTH>
    <DEFAULT_VALUE>:$flex$.Bypass_DFF_Validation</DEFAULT_VALUE>
    <READ_ONLY>Y</READ_ONLY>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>11</COLUMN_NUMBER>
    <COLUMN_NAME>RULE_NAME</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>50</DATA_LENGTH>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>12</COLUMN_NUMBER>
    <COLUMN_NAME>RULE_DESCRIPTION</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>13</COLUMN_NUMBER>
    <COLUMN_NAME>RULE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
ml.meaning value,
ml.description
from
mfg_lookups ml
where
ml.lookup_type = &apos;MRP_SOURCING_RULE_TYPE&apos; and
ml.lookup_code in (1,2)
order by
value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
lookup_code id,
meaning value
from
mfg_lookups
where
lookup_type = &apos;MRP_SOURCING_RULE_TYPE&apos;</VALUE_TO_ID_QUERY>
    <DEFAULT_VALUE>:$flex$.Sourcing_Rule_Type</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>14</COLUMN_NUMBER>
    <COLUMN_NAME>PLANNING_ACTIVE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
flvv.meaning value,
null description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type = &apos;INV_YES_NO&apos; and
flvv.view_application_id = 3 and
flvv.security_group_id = fnd_global.security_group_id and
flvv.lookup_code = 1
order by
value</LOV_QUERY_DSP>
    <COMMENTS>This column is display only. It will be updated automatically by the upload.</COMMENTS>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>15</COLUMN_NUMBER>
    <COLUMN_NAME>ALL_ORGS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
flvv.meaning value,
null description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type = &apos;INV_YES_NO&apos; and
flvv.view_application_id = 3 and
flvv.security_group_id = fnd_global.security_group_id and
(flvv.lookup_code = &apos;1&apos; or
 xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = &apos;1&apos;
)
order by
value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
lookup_code id,
meaning value
from
fnd_lookup_values_vl
where
lookup_type = &apos;INV_YES_NO&apos; and
view_application_id = 3 and
security_group_id = fnd_global.security_group_id</VALUE_TO_ID_QUERY>
    <REQUIRED>Y</REQUIRED>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>16</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_ORGANIZATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>3</DATA_LENGTH>
    <LOV_QUERY_DSP>select
x.value,
x.description
from
(
select
mp.organization_code value,
mrp_manager_pk.get_customer_name(hoi.org_information1) || nvl2(mrp_manager_pk.get_ship_address(hoi.org_information2),&apos; (&apos; || mrp_manager_pk.get_ship_address(hoi.org_information2) || &apos;)&apos;,null) description
from
mtl_parameters mp,
hr_organization_information hoi
where
hoi.organization_id (+)= mp.organization_id and
hoi.org_information_context(+) = &apos;Customer/Supplier Association&apos; and
(
 (xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = &apos;1&apos; and
  xxen_util.lookup_code(:$column$.all_orgs,&apos;INV_YES_NO&apos;,3) = &apos;2&apos; and
  mp.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type=&apos;INV&apos;)
 ) or
 xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = &apos;2&apos;
)
) x
order by
x.value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
organization_id id,
organization_code value
from
mtl_parameters</VALUE_TO_ID_QUERY>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>17</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_CUSTOMER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>360</DATA_LENGTH>
    <LOV_QUERY_DSP>select
 mrp_manager_pk.get_customer_name(hoi.org_information1) value,
 null description
from
 mtl_parameters mp,
 hr_organization_information hoi
where
 mp.organization_code = :$column$.receipt_organization and
 hoi.organization_id = mp.organization_id and
 hoi.org_information_context = &apos;Customer/Supplier Association&apos;</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
 mrp_manager_pk.get_customer_name(hoi.org_information1)
from
 mtl_parameters mp,
 hr_organization_information hoi
where
 mp.organization_code = :$column$.receipt_organization and
 hoi.organization_id = mp.organization_id and
 hoi.org_information_context = &apos;Customer/Supplier Association&apos;</DEFAULT_VALUE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>18</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_ADDRESS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <LOV_QUERY_DSP>select
 mrp_manager_pk.get_ship_address(hoi.org_information2) value,
 null description
from
 mtl_parameters mp,
 hr_organization_information hoi
where
 mp.organization_code = :$column$.receipt_organization and
 hoi.organization_id = mp.organization_id and
 hoi.org_information_context = &apos;Customer/Supplier Association&apos;</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
 mrp_manager_pk.get_ship_address(hoi.org_information2)
from
 mtl_parameters mp,
 hr_organization_information hoi
where
 mp.organization_code = :$column$.receipt_organization and
 hoi.organization_id = mp.organization_id and
 hoi.org_information_context = &apos;Customer/Supplier Association&apos;</DEFAULT_VALUE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>19</COLUMN_NUMBER>
    <COLUMN_NAME>EFFECTIVE_DATE_FROM</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <DEFAULT_VALUE>trunc(sysdate)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>20</COLUMN_NUMBER>
    <COLUMN_NAME>EFFECTIVE_DATE_TO</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>21</COLUMN_NUMBER>
    <COLUMN_NAME>SOURCE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
ml.meaning value,
ml.description
from
mfg_lookups ml
where
ml.lookup_type = &apos;MRP_SOURCE_TYPE&apos; and
(ml.lookup_code in (1,3) or
 (ml.lookup_code = 2 and 
  (xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = 2 or
   :$column$.receipt_organization != &apos;*All Orgs*&apos;
  )
 )
)
order by
value
</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
lookup_code id,
meaning value
from
mfg_lookups
where
lookup_type = &apos;MRP_SOURCE_TYPE&apos;</VALUE_TO_ID_QUERY>
    <REQUIRED>Y</REQUIRED>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>22</COLUMN_NUMBER>
    <COLUMN_NAME>SOURCE_ORGANIZATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>3</DATA_LENGTH>
    <LOV_QUERY_DSP>select 
x.value,
null description
from
(
select
 mps.organization_code value
from 
 mtl_parameters mpr,
 mtl_parameters mps,
 mtl_interorg_parameters mip
where
 mip.to_organization_id = mpr.organization_id and 
 mip.from_organization_id = mps.organization_id and
 mpr.organization_code = :$column$.receipt_organization and
 xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) = 1 and -- transfer from
 xxen_util.lookup_code(:$column$.all_orgs,&apos;INV_YES_NO&apos;,3) = &apos;2&apos;
union 
select 
 mp.organization_code value
from 
 mtl_parameters mp
where
(
 xxen_util.lookup_code(:$column$.all_orgs,&apos;INV_YES_NO&apos;,3) = &apos;1&apos; or
 (mp.organization_code = :$column$.receipt_organization and 
  xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) = 2 -- make at
 ) 
) and
  xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) != 3 -- buy from
) x
order by 
x.value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
organization_id id,
organization_code value
from
mtl_parameters</VALUE_TO_ID_QUERY>
    <DEFAULT_VALUE>select 
:$column$.receipt_organization
from dual
where
xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) = 2 and
xxen_util.lookup_code(:$column$.all_orgs,&apos;INV_YES_NO&apos;,3) = &apos;2&apos;</DEFAULT_VALUE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>23</COLUMN_NUMBER>
    <COLUMN_NAME>SUPPLIER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>240</DATA_LENGTH>
    <LOV_QUERY_DSP>select
aps.vendor_name value,
aps.segment1 description
from
ap_suppliers aps
where
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) = 3 -- buy from
order by
value</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>24</COLUMN_NUMBER>
    <COLUMN_NAME>SUPPLIER_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
aps.segment1 value,
aps.vendor_name description
from
ap_suppliers aps
where
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
aps.vendor_name = :$column$.supplier
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select
aps.segment1
from
ap_suppliers aps
where
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
aps.vendor_name = :$column$.supplier</DEFAULT_VALUE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>25</COLUMN_NUMBER>
    <COLUMN_NAME>SUPPLIER_SITE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>60</DATA_LENGTH>
    <LOV_QUERY_DSP>select distinct
assa.vendor_site_code value,
hou.name description
from
ap_suppliers aps,
ap_supplier_sites_all assa,
hr_operating_units hou
where
aps.vendor_id = assa.vendor_id and
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
sysdate &lt; nvl(assa.inactive_date, sysdate + 1) and
assa.purchasing_site_flag = &apos;Y&apos; and
nvl(assa.rfq_only_site_flag,&apos;N&apos;) != &apos;Y&apos; and
assa.org_id = hou.organization_id (+) and
aps.vendor_name = :$column$.supplier and
aps.segment1 = nvl(:$column$.supplier_number,aps.segment1)
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
x.value
from
(
select
assa.vendor_site_code value,
count(distinct assa.vendor_site_code) over () cnt
from
ap_suppliers aps,
ap_supplier_sites_all assa,
hr_operating_units hou
where
aps.vendor_id = assa.vendor_id and
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
sysdate &lt; nvl(assa.inactive_date, sysdate + 1) and
assa.purchasing_site_flag = &apos;Y&apos; and
nvl(assa.rfq_only_site_flag,&apos;N&apos;) != &apos;Y&apos; and
assa.org_id = hou.organization_id (+) and
aps.vendor_name = :$column$.supplier and
aps.segment1 = nvl(:$column$.supplier_number,aps.segment1)
) x
where
x.cnt = 1</DEFAULT_VALUE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>26</COLUMN_NUMBER>
    <COLUMN_NAME>SUPPLIER_SITE_OP_UNIT</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
hou.name value,
null description
from
ap_suppliers aps,
ap_supplier_sites_all assa,
hr_operating_units hou
where
aps.vendor_id = assa.vendor_id and
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
sysdate &lt; nvl(assa.inactive_date, sysdate + 1) and
assa.purchasing_site_flag = &apos;Y&apos; and
nvl(assa.rfq_only_site_flag,&apos;N&apos;) != &apos;Y&apos; and
assa.org_id = hou.organization_id (+) and
aps.vendor_name = :$column$.supplier and
aps.segment1 = nvl(:$column$.supplier_number,aps.segment1) and
assa.vendor_site_code = :$column$.supplier_site
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
x.value
from
(
select
hou.name value,
count(*) over () cnt
from
ap_suppliers aps,
ap_supplier_sites_all assa,
hr_operating_units hou
where
aps.vendor_id = assa.vendor_id and
nvl(aps.enabled_flag,&apos;N&apos;) = &apos;Y&apos; and
sysdate between nvl(aps.start_date_active, sysdate-1) and nvl(aps.end_date_active, sysdate+1) and
sysdate &lt; nvl(assa.inactive_date, sysdate + 1) and
assa.purchasing_site_flag = &apos;Y&apos; and
nvl(assa.rfq_only_site_flag,&apos;N&apos;) != &apos;Y&apos; and
assa.org_id = hou.organization_id (+) and
aps.vendor_name = :$column$.supplier and
aps.segment1 = nvl(:$column$.supplier_number,aps.segment1) and
assa.vendor_site_code = :$column$.supplier_site
) x
where
x.cnt = 1</DEFAULT_VALUE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>27</COLUMN_NUMBER>
    <COLUMN_NAME>ALLOCATION_PERCENT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>28</COLUMN_NUMBER>
    <COLUMN_NAME>RANK</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>29</COLUMN_NUMBER>
    <COLUMN_NAME>SHIP_METHOD</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>30</DATA_LENGTH>
    <LOV_QUERY_DSP>select 
mism.ship_method value,
null description
from 
mtl_interorg_ship_methods mism,
mtl_parameters mpr,
mtl_parameters mps
where
mism.to_organization_id = mpr.organization_id and
mism.from_organization_id = mps.organization_id and
mpr.organization_code = :$column$.receipt_organization and
mps.organization_code = :$column$.source_organization and
xxen_util.lookup_code(:$column$.source_type,&apos;MRP_SOURCE_TYPE&apos;,700) != 2 -- make at
order by
value</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>30</COLUMN_NUMBER>
    <COLUMN_NAME>INTRANSIT_TIME</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <LOV_QUERY_DSP>select 
mism.intransit_time value,
null description
from 
mtl_interorg_ship_methods mism,
mtl_parameters mpr,
mtl_parameters mps
where
mism.to_organization_id = mpr.organization_id and
mism.from_organization_id = mps.organization_id and
mpr.organization_code = :$column$.receipt_organization and
mps.organization_code = :$column$.source_organization and
mism.ship_method = :$column$.ship_method
order by
value</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
mism.intransit_time 
from 
mtl_interorg_ship_methods mism,
mtl_parameters mpr,
mtl_parameters mps
where
mism.to_organization_id = mpr.organization_id and
mism.from_organization_id = mps.organization_id and
mpr.organization_code = :$column$.receipt_organization and
mps.organization_code = :$column$.source_organization and
mism.ship_method = :$column$.ship_method
</DEFAULT_VALUE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>31</COLUMN_NUMBER>
    <COLUMN_NAME>RULE_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
fdfcv.application_id = fdfv.application_id and
fdfcv.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfcv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcv.descriptive_flex_context_code != &apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>32</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE1&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>33</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE2&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>34</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE3&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>35</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE4&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>36</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE5&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>37</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE6&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>38</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE7&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>39</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE8&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>40</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE9&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>41</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE10&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>42</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE11&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>43</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE12&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>44</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE13&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>45</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE14&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>46</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RULE_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SOURCING_RULES&apos;,
 p_context_name =&gt; :$column$.rule_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE15&apos;,
 p_attribute1   =&gt; :$column$.sr_rule_attribute1,
 p_attribute2   =&gt; :$column$.sr_rule_attribute2,
 p_attribute3   =&gt; :$column$.sr_rule_attribute3,
 p_attribute4   =&gt; :$column$.sr_rule_attribute4,
 p_attribute5   =&gt; :$column$.sr_rule_attribute5,
 p_attribute6   =&gt; :$column$.sr_rule_attribute6,
 p_attribute7   =&gt; :$column$.sr_rule_attribute7,
 p_attribute8   =&gt; :$column$.sr_rule_attribute8,
 p_attribute9   =&gt; :$column$.sr_rule_attribute9,
 p_attribute10  =&gt; :$column$.sr_rule_attribute10,
 p_attribute11  =&gt; :$column$.sr_rule_attribute11,
 p_attribute12  =&gt; :$column$.sr_rule_attribute12,
 p_attribute13  =&gt; :$column$.sr_rule_attribute13,
 p_attribute14  =&gt; :$column$.sr_rule_attribute14,
 p_attribute15  =&gt; :$column$.sr_rule_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SOURCING_RULES&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>47</COLUMN_NUMBER>
    <COLUMN_NAME>RECEIPT_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
fdfcv.application_id = fdfv.application_id and
fdfcv.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfcv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcv.descriptive_flex_context_code != &apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>48</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE1&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>49</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE2&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>50</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE3&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>51</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE4&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>52</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE5&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>53</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE6&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>54</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE7&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>55</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE8&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>56</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE9&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>57</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE10&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>58</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE11&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>59</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE12&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>60</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE13&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>61</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE14&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>62</COLUMN_NUMBER>
    <COLUMN_NAME>SR_RECEIPT_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_RECEIPT_ORG&apos;,
 p_context_name =&gt; :$column$.receipt_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE15&apos;,
 p_attribute1   =&gt; :$column$.sr_receipt_attribute1,
 p_attribute2   =&gt; :$column$.sr_receipt_attribute2,
 p_attribute3   =&gt; :$column$.sr_receipt_attribute3,
 p_attribute4   =&gt; :$column$.sr_receipt_attribute4,
 p_attribute5   =&gt; :$column$.sr_receipt_attribute5,
 p_attribute6   =&gt; :$column$.sr_receipt_attribute6,
 p_attribute7   =&gt; :$column$.sr_receipt_attribute7,
 p_attribute8   =&gt; :$column$.sr_receipt_attribute8,
 p_attribute9   =&gt; :$column$.sr_receipt_attribute9,
 p_attribute10  =&gt; :$column$.sr_receipt_attribute10,
 p_attribute11  =&gt; :$column$.sr_receipt_attribute11,
 p_attribute12  =&gt; :$column$.sr_receipt_attribute12,
 p_attribute13  =&gt; :$column$.sr_receipt_attribute13,
 p_attribute14  =&gt; :$column$.sr_receipt_attribute14,
 p_attribute15  =&gt; :$column$.sr_receipt_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_RECEIPT_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>63</COLUMN_NUMBER>
    <COLUMN_NAME>SHIP_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
fdfcv.application_id = fdfv.application_id and
fdfcv.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfcv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcv.descriptive_flex_context_code != &apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name
</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>64</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE1&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>65</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE2&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>66</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE3&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>67</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE4&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>68</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE5&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>69</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE6&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>70</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE7&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>71</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE8&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>72</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE9&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>73</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE10&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>74</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE11&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>75</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE12&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>76</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE13&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>77</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE14&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>78</COLUMN_NUMBER>
    <COLUMN_NAME>SR_SHIP_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; 704,
 p_descriptive_flexfield_name =&gt; &apos;MRP_SR_SOURCE_ORG&apos;,
 p_context_name =&gt; :$column$.ship_attribute_category,
 p_column_name  =&gt; &apos;ATTRIBUTE15&apos;,
 p_attribute1   =&gt; :$column$.sr_ship_attribute1,
 p_attribute2   =&gt; :$column$.sr_ship_attribute2,
 p_attribute3   =&gt; :$column$.sr_ship_attribute3,
 p_attribute4   =&gt; :$column$.sr_ship_attribute4,
 p_attribute5   =&gt; :$column$.sr_ship_attribute5,
 p_attribute6   =&gt; :$column$.sr_ship_attribute6,
 p_attribute7   =&gt; :$column$.sr_ship_attribute7,
 p_attribute8   =&gt; :$column$.sr_ship_attribute8,
 p_attribute9   =&gt; :$column$.sr_ship_attribute9,
 p_attribute10  =&gt; :$column$.sr_ship_attribute10,
 p_attribute11  =&gt; :$column$.sr_ship_attribute11,
 p_attribute12  =&gt; :$column$.sr_ship_attribute12,
 p_attribute13  =&gt; :$column$.sr_ship_attribute13,
 p_attribute14  =&gt; :$column$.sr_ship_attribute14,
 p_attribute15  =&gt; :$column$.sr_ship_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos; || initcap(fdfcuv.application_column_name) || &apos;: &apos; ||
listagg(decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,&apos;(Global)&apos;,&apos;(&apos; || fdfc.descriptive_flex_context_code || &apos;)&apos;) || &apos; &apos; || fdfcuv.form_left_prompt,&apos;, &apos;) within group (order by decode(fdfc.descriptive_flex_context_code,&apos;Global Data Elements&apos;,1,2),fdfc.descriptive_flex_context_code) over (partition by fdfcuv.application_column_name)
from
fnd_descriptive_flexs_vl     fdfv,
fnd_descr_flex_contexts      fdfc,
fnd_descr_flex_col_usage_vl  fdfcuv
where
fdfc.application_id = fdfv.application_id and
fdfc.descriptive_flexfield_name = fdfv.descriptive_flexfield_name and
fdfc.enabled_flag = &apos;Y&apos; and
fdfcuv.application_id = fdfc.application_id and
fdfcuv.descriptive_flexfield_name = fdfc.descriptive_flexfield_name and
fdfcuv.descriptive_flex_context_code = fdfc.descriptive_flex_context_code and
fdfcuv.enabled_flag = &apos;Y&apos; and
fdfv.application_id = 704 and
fdfv.descriptive_flexfield_name = &apos;MRP_SR_SOURCE_ORG&apos; and
fdfcuv.application_column_name = &apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>79</COLUMN_NUMBER>
    <COLUMN_NAME>DELETE_OPTION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select 
value, 
description
from
(
select &apos;Sourcing Rule&apos; value, &apos;Delete the Sourcing Rule&apos; description from dual
--union all
--#Due to a bug not allowing Receiving Org Delete Option. 
--#The API will throw as error as it checks for the the existance of Source Org lines even for a deleted Receiving Org
--#in MRP_SOURCING_RULE_PVT.PROCESS_SOURCING_RULE line Step 6. Perform Object group logic
--select &apos;Receiving Org&apos; value, &apos;Delete the Receiving Org entry&apos; description from dual 
union all
select &apos;Shipping Org&apos; value, &apos;Delete the Shipping Org entry&apos; description from dual
)
order by
value
</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>80</COLUMN_NUMBER>
    <COLUMN_NAME>ORGANIZATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DATA_LENGTH>3</DATA_LENGTH>
    <LOV_QUERY_DSP>select
x.value,
x.description
from
(
select
mp.organization_code value,
mrp_manager_pk.get_customer_name(hoi.org_information1) || nvl2(mrp_manager_pk.get_ship_address(hoi.org_information2),&apos; (&apos; || mrp_manager_pk.get_ship_address(hoi.org_information2) || &apos;)&apos;,null) description
from
mtl_parameters mp,
hr_organization_information hoi
where
hoi.organization_id (+)= mp.organization_id and
hoi.org_information_context(+) = &apos;Customer/Supplier Association&apos; and
xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) = &apos;1&apos; and
mp.organization_code = :$column$.receipt_organization
) x
order by
x.value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
organization_id id,
organization_code value
from
mtl_parameters</VALUE_TO_ID_QUERY>
    <DEFAULT_VALUE>case when xxen_util.lookup_code(:$column$.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700)=&apos;1&apos; then :$column$.receipt_organization end</DEFAULT_VALUE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>81</COLUMN_NUMBER>
    <COLUMN_NAME>ACTIVE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
flvv.meaning value,
null description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type = &apos;INV_YES_NO&apos; and
flvv.view_application_id = 3 and
flvv.security_group_id = fnd_global.security_group_id and
flvv.lookup_code = 1
order by
value</LOV_QUERY_DSP>
    <VALUE_TO_ID_QUERY>select
lookup_code id,
meaning value
from
fnd_lookup_values_vl
where
lookup_type = &apos;INV_YES_NO&apos; and
view_application_id = 3 and
security_group_id = fnd_global.security_group_id</VALUE_TO_ID_QUERY>
    <DEFAULT_VALUE>xxen_util.meaning(1,&apos;INV_YES_NO&apos;,3)</DEFAULT_VALUE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>82</COLUMN_NUMBER>
    <COLUMN_NAME>SOURCING_RULE_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>SR_RECEIPT_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>SR_SOURCE_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>85</COLUMN_NUMBER>
    <COLUMN_NAME>GROUP_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>86</COLUMN_NUMBER>
    <COLUMN_NAME>UPLOAD_ROW</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>action_</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>ACTION_CODE_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_upload_mode</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>UPLOAD_MODE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_sourcing_rule_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SOURCING_RULE_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_type</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RULE_TYPE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_name</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RULE_NAME</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_description</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RULE_DESCRIPTION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_all_orgs</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>ALL_ORGS</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_organization_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>ORGANIZATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_planning_active</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_status</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>ACTIVE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute_category</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RULE_ATTRIBUTE_CATEGORY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute1</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE1</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute2</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE2</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute3</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE3</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute4</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE4</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute5</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE5</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute6</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE6</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute7</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE7</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>19</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute8</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE8</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute9</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE9</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>21</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute10</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE10</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>22</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute11</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE11</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>23</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute12</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE12</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>24</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute13</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE13</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>25</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute14</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE14</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>26</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_rule_attribute15</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RULE_ATTRIBUTE15</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>27</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_sr_receipt_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>28</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_effective_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>EFFECTIVE_DATE_FROM</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>29</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_disable_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>EFFECTIVE_DATE_TO</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_organization_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RECEIPT_ORGANIZATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>31</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute_category</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RECEIPT_ATTRIBUTE_CATEGORY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>32</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute1</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE1</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>33</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute2</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE2</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>34</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute3</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE3</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>35</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute4</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE4</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>36</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute5</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE5</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>37</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute6</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE6</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>38</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute7</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE7</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>39</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute8</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE8</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute9</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE9</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>41</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute10</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE10</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>42</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute11</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE11</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>43</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute12</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE12</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>44</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute13</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE13</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>45</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute14</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE14</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>46</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_attribute15</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_RECEIPT_ATTRIBUTE15</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>47</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_sr_source_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SOURCE_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>48</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_source_type</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SOURCE_TYPE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>49</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_organization_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SOURCE_ORGANIZATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_secondary_inventory</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>51</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_supplier_name</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SUPPLIER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>52</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_supplier_number</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SUPPLIER_NUMBER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>53</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_supplier_site</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SUPPLIER_SITE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>54</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_supplier_site_ou</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SUPPLIER_SITE_OP_UNIT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>55</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_vendor_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>56</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_vendor_site_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>57</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_allocation_percent</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>ALLOCATION_PERCENT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>58</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_rank</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>RANK</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>59</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_ship_method</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SHIP_METHOD</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute_category</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SHIP_ATTRIBUTE_CATEGORY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>61</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute1</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE1</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>62</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute2</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE2</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>63</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute3</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE3</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>64</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute4</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE4</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>65</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute5</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE5</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>66</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute6</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE6</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>67</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute7</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE7</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>68</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute8</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE8</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>69</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute9</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE9</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute10</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE10</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>71</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute11</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE11</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>72</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute12</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE12</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>73</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute13</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE13</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>74</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute14</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE14</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>75</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_attribute15</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <DEFAULTED>Y</DEFAULTED>
    <COLUMN_NAME>SR_SHIP_ATTRIBUTE15</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>76</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_delete_option</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>DELETE_OPTION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>77</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_bypass_dff_validation</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>BYPASS_DFF_VALIDATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>78</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_sr_row_id</PARAMETER_NAME>
    <IN_OUT>in/out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>SR_ROW_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>79</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_ro_row_id</PARAMETER_NAME>
    <IN_OUT>in/out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>RO_ROW_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_so_row_id</PARAMETER_NAME>
    <IN_OUT>in/out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>SO_ROW_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>81</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>request_id_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>REQUEST_ID_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>82</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>status_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>STATUS_CODE_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>83</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>message_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>MESSAGE_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>P</SOURCE>
    <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_group_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>GROUP_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>P</SOURCE>
    <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>request_id_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>REQUEST_ID_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>P</SOURCE>
    <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>status_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>STATUS_CODE_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>P</SOURCE>
    <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>message_</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>MESSAGE_</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Order By</SQL_TYPE>
    <SQL_TEXT> x.upload_row,
 x.rule_type,
 x.rule_name,
 nvl2(x.organization,2,1),
 x.organization,
 x.receipt_organization,
 x.rank,
 x.source_organization,
 x.supplier</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Success SQL</SQL_TYPE>
    <SQL_TEXT>select /*+ ordered push_pred(sr) */
 xu.action_,
 case when xu.pstatus = xxen_upload.status_success
 then case
      when xu.delete_option is not null and sr.sourcing_rule_id is null
      then xxen_upload.status_meaning(xxen_upload.status_success)
      when sr.sourcing_rule_id is null
      then xxen_upload.status_meaning(xxen_upload.status_error)
      else xxen_upload.status_meaning(xu.pstatus)
      end
 else xxen_upload.status_meaning(xu.pstatus)
 end status_,
 case
 when xu.pstatus=xxen_upload.status_success and sr.sourcing_rule_id is null and xu.delete_option=&apos;Sourcing Rule&apos; then &apos;Sourcing rule deleted.&apos;
 when xu.pstatus=xxen_upload.status_success and sr.sourcing_rule_id is null and xu.delete_option=&apos;Shipping Org&apos; then &apos;Shipping org entry deleted.&apos;
 when xu.pstatus=xxen_upload.status_success and sr.sourcing_rule_id is not null and xu.delete_option is null then decode(xu.action_code_,xxen_upload.action_create,&apos;Shipping org entry created.&apos;,&apos;Shipping org entry updated.&apos;)
 else xu.pmsg
 end message_,
 xu.request_id_,
 xu.modified_columns_,
 xu.sr_row_id,
 xu.ro_row_id,
 xu.so_row_id,
 xu.upload_mode,
 xu.bypass_dff_validation,
 -- sourcing rule
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.rule_name else sr.rule_name end rule_name,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.rule_description else sr.rule_description end rule_description,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.rule_type else sr.rule_type end rule_type,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.planning_active else sr.planning_active end planning_active,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.all_orgs else xu.all_orgs end all_orgs, 
 -- receiving organizations
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.receipt_organization else sr.receipt_organization end receipt_organization,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.receipt_customer else sr.receipt_customer end receipt_customer,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.receipt_address else sr.receipt_address end receipt_address,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.effective_date_from else sr.effective_date_from end effective_date_from,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.effective_date_to else sr.effective_date_to end effective_date_to,
 -- shipping organization
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.source_type else sr.source_type end source_type,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.source_organization else sr.source_organization end source_organization,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.supplier else sr.supplier end supplier,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.supplier_number else sr.supplier_number end supplier_number,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.supplier_site else sr.supplier_site end supplier_site,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.supplier_site_op_unit else sr.supplier_site_op_unit end supplier_site_op_unit,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.allocation_percent else sr.allocation_percent end allocation_percent,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.rank else sr.rank end rank,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.ship_method else sr.ship_method end ship_method,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.intransit_time else sr.intransit_time end intransit_time,
 -- attributes
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.rule_attribute_category else sr.rule_attribute_category end rule_attribute_category,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute1 else sr.sr_rule_attribute1 end sr_rule_attribute1,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute2 else sr.sr_rule_attribute2 end sr_rule_attribute2,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute3 else sr.sr_rule_attribute3 end sr_rule_attribute3,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute4 else sr.sr_rule_attribute4 end sr_rule_attribute4,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute5 else sr.sr_rule_attribute5 end sr_rule_attribute5,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute6 else sr.sr_rule_attribute6 end sr_rule_attribute6,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute7 else sr.sr_rule_attribute7 end sr_rule_attribute7,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute8 else sr.sr_rule_attribute8 end sr_rule_attribute8,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute9 else sr.sr_rule_attribute9 end sr_rule_attribute9,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute10 else sr.sr_rule_attribute10 end sr_rule_attribute10,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute11 else sr.sr_rule_attribute11 end sr_rule_attribute11,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute12 else sr.sr_rule_attribute12 end sr_rule_attribute12,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute13 else sr.sr_rule_attribute13 end sr_rule_attribute13,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute14 else sr.sr_rule_attribute14 end sr_rule_attribute14,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_rule_attribute15 else sr.sr_rule_attribute15 end sr_rule_attribute15,
 --
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.receipt_attribute_category else sr.receipt_attribute_category end receipt_attribute_category,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute1 else sr.sr_receipt_attribute1 end sr_receipt_attribute1,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute2 else sr.sr_receipt_attribute2 end sr_receipt_attribute2,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute3 else sr.sr_receipt_attribute3 end sr_receipt_attribute3,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute4 else sr.sr_receipt_attribute4 end sr_receipt_attribute4,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute5 else sr.sr_receipt_attribute5 end sr_receipt_attribute5,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute6 else sr.sr_receipt_attribute6 end sr_receipt_attribute6,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute7 else sr.sr_receipt_attribute7 end sr_receipt_attribute7,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute8 else sr.sr_receipt_attribute8 end sr_receipt_attribute8,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute9 else sr.sr_receipt_attribute9 end sr_receipt_attribute9,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute10 else sr.sr_receipt_attribute10 end sr_receipt_attribute10,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute11 else sr.sr_receipt_attribute11 end sr_receipt_attribute11,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute12 else sr.sr_receipt_attribute12 end sr_receipt_attribute12,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute13 else sr.sr_receipt_attribute13 end sr_receipt_attribute13,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute14 else sr.sr_receipt_attribute14 end sr_receipt_attribute14,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_attribute15 else sr.sr_receipt_attribute15 end sr_receipt_attribute15,
 --
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.ship_attribute_category else sr.ship_attribute_category end ship_attribute_category,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute1 else sr.sr_ship_attribute1 end sr_ship_attribute1,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute2 else sr.sr_ship_attribute2 end sr_ship_attribute2,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute3 else sr.sr_ship_attribute3 end sr_ship_attribute3,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute4 else sr.sr_ship_attribute4 end sr_ship_attribute4,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute5 else sr.sr_ship_attribute5 end sr_ship_attribute5,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute6 else sr.sr_ship_attribute6 end sr_ship_attribute6,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute7 else sr.sr_ship_attribute7 end sr_ship_attribute7,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute8 else sr.sr_ship_attribute8 end sr_ship_attribute8,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute9 else sr.sr_ship_attribute9 end sr_ship_attribute9,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute10 else sr.sr_ship_attribute10 end sr_ship_attribute10,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute11 else sr.sr_ship_attribute11 end sr_ship_attribute11,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute12 else sr.sr_ship_attribute12 end sr_ship_attribute12,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute13 else sr.sr_ship_attribute13 end sr_ship_attribute13,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute14 else sr.sr_ship_attribute14 end sr_ship_attribute14,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_ship_attribute15 else sr.sr_ship_attribute15 end sr_ship_attribute15,
 --
 xu.delete_option,
 -- ids
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.organization else sr.organization end organization,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.active else sr.active end active,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sourcing_rule_id else sr.sourcing_rule_id end sourcing_rule_id,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_receipt_id else sr.sr_receipt_id end sr_receipt_id,
 case when xu.pstatus = xxen_upload.status_error or sr.sourcing_rule_id is null then xu.sr_source_id else sr.sr_source_id end sr_source_id,
 xu.group_id,
 xu.upload_row
from
 (select
  case 
  when xu.status_code_ in (xxen_upload.status_error,xxen_upload.status_valid) 
  then xxen_upload.status_error
  when xxen_mrp_upload.get_status_(xu.request_id_,xu.sr_row_id) = xxen_upload.status_error
    or xxen_mrp_upload.get_status_(xu.request_id_,xu.ro_row_id) = xxen_upload.status_error 
    or xxen_mrp_upload.get_status_(xu.request_id_,xu.so_row_id) = xxen_upload.status_error
  then xxen_upload.status_error
  else xxen_upload.status_success
  end  pstatus,
  case 
  when xu.status_code_ = xxen_upload.status_error
  then xu.message_
  when xu.status_code_ = xxen_upload.status_valid
  then &apos;Post Processing Failed&apos;
  else coalesce(xxen_mrp_upload.get_message_(xu.request_id_,xu.so_row_id),
                xxen_mrp_upload.get_message_(xu.request_id_,xu.ro_row_id),
                xxen_mrp_upload.get_message_(xu.request_id_,xu.sr_row_id)
               )
  end  pmsg,
  xu.*
  from
  xxen_mrp_sourcing_rule_2203_u xu
 ) xu,
 sr_query sr
where
 -- rule
 sr.rule_name (+) = xu.rule_name and
 nvl(sr.organization (+),&apos;*All Orgs*&apos;) = case xxen_util.lookup_code(xu.rule_type,&apos;MRP_SOURCING_RULE_TYPE&apos;,700) when &apos;1&apos; then coalesce(xu.organization,xu.receipt_organization,&apos;*All Orgs*&apos;) else &apos;*All Orgs*&apos; end and
 -- rcv org
 nvl(sr.receipt_organization (+),&apos;*All Orgs*&apos;) = nvl(xu.receipt_organization,&apos;*All Orgs*&apos;) and
 sr.effective_date_from (+) = trunc(xu.effective_date_from) and
 -- shp org
 nvl(sr.source_organization (+),&apos;#null#&apos;) = nvl(xu.source_organization,&apos;#null#&apos;) and
 nvl(sr.supplier (+),&apos;#null#&apos;) = nvl(xu.supplier,&apos;#null#&apos;) and
 nvl(sr.supplier_number,nvl(xu.supplier_number,&apos;#null#&apos;)) = nvl(xu.supplier_number,nvl(sr.supplier_number,&apos;#null#&apos;)) and
 nvl(sr.supplier_site (+),&apos;#null#&apos;) = nvl(xu.supplier_site,&apos;#null#&apos;) and
 --
 --
 sr.last_updated_by (+) =  fnd_global.user_id and
 sr.last_update_date  (+) &gt;= sysdate - 0.08


</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
