<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: Blitz Upload Mode -->
 <LOVS_ROW>
  <GUID>E811F942597A2075E0530100007FF4F2</GUID>
  <LOV_NAME>Blitz Upload Mode</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>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>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: HR Operating Unit -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB979D2E0530100007F1FF2</GUID>
  <LOV_NAME>HR Operating Unit</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY>
  <VERSION_COMMENTS>Fixed where clause duplication</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>وحدة التشغيل مقيدة بالتحكم في الوصول متعدد المنظمات (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Bedieneinheit eingeschränkt durch Multi Org Access Control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Unidad operativa restringida por el control de acceso multiorgánico (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Unité opérationnelle restreinte par un contrôle d&apos;accès multi-organismes (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Unità operativa limitata dal controllo di accesso multiorgano (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>多機関アクセス制御(MOAC)で制限された操作ユニット</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>다중 조직 액세스 제어 (MOAC)에 의해 제한되는 운영 단위</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Unidade operacional restrita por controle de acesso multi org (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Операционное устройство, ограниченное мультиорганизованным контролем доступа (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Styrenhet begränsad av multi-org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Çoklu kuruluş erişim kontrolü (MOAC) tarafından kısıtlanan işletim birimi</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Operating unit restricted by multi org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>受多机构访问控制（MOAC）限制的操作单元。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: OKS Service Contract Line Upload -->
 <REPORTS_ROW>
  <GUID>5E943C0CCCD7454C84FC8251D8B4F47E</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
to_char(null) action_,
to_char(null) status_,
to_char(null) message_,
null modified_columns_,
haouv.name operating_unit,
okhab.contract_number,
okhab.contract_number_modifier contract_modifier,
osv.meaning contract_status,
okhab.currency_code,
coalesce(hca_h.account_number,
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_hb.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id),
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_hs.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id)
) header_bill_to_account,
hcsua_hb.location header_bill_to_location,
hcsua_hs.location header_ship_to_location,
okht.comments header_comments,
obpv.profile_number billing_profile,
(
select
xxen_util.meaning(okpr.rle_code,&apos;OKC_ROLE&apos;,0)
from
okc_k_party_roles_b okpr
where
okpr.id=(select min(okpr2.id) from okc_k_party_roles_b okpr2 where okpr2.chr_id=okhab.id and okpr2.cle_id is null and okpr2.rle_code not in (&apos;CUSTOMER&apos;,&apos;VENDOR&apos;))
) additional_party_role,
(
select
hp.party_name||&apos; - &apos;||hp.party_number
from
okc_k_party_roles_b okpr,
hz_parties hp
where
okpr.id=(select min(okpr2.id) from okc_k_party_roles_b okpr2 where okpr2.chr_id=okhab.id and okpr2.cle_id is null and okpr2.rle_code not in (&apos;CUSTOMER&apos;,&apos;VENDOR&apos;)) and
to_number(okpr.object1_id1)=hp.party_id
) additional_party,
xxen_util.display_flexfield_context(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category) hdr_attribute_category,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE1&apos;,okhab.rowid,okhab.attribute1) hdr_attribute1,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE2&apos;,okhab.rowid,okhab.attribute2) hdr_attribute2,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE3&apos;,okhab.rowid,okhab.attribute3) hdr_attribute3,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE4&apos;,okhab.rowid,okhab.attribute4) hdr_attribute4,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE5&apos;,okhab.rowid,okhab.attribute5) hdr_attribute5,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE6&apos;,okhab.rowid,okhab.attribute6) hdr_attribute6,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE7&apos;,okhab.rowid,okhab.attribute7) hdr_attribute7,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE8&apos;,okhab.rowid,okhab.attribute8) hdr_attribute8,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE9&apos;,okhab.rowid,okhab.attribute9) hdr_attribute9,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE10&apos;,okhab.rowid,okhab.attribute10) hdr_attribute10,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE11&apos;,okhab.rowid,okhab.attribute11) hdr_attribute11,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE12&apos;,okhab.rowid,okhab.attribute12) hdr_attribute12,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE13&apos;,okhab.rowid,okhab.attribute13) hdr_attribute13,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE14&apos;,okhab.rowid,okhab.attribute14) hdr_attribute14,
xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE15&apos;,okhab.rowid,okhab.attribute15) hdr_attribute15,
nvl2(oklb.cle_id,oklb_p.line_number||&apos;.&apos;,null)||oklb.line_number line_number,
oklb_p.line_number parent_line_number,
(select olsv.name from okc_line_styles_v olsv where olsv.id=decode(nvl(oklb_p.lse_id,oklb.lse_id),12,12,1)) line_type,
(
select
case
when oki.jtot_object1_code in (&apos;OKX_SERVICE&apos;,&apos;OKX_USAGE&apos;) then (select msiv.concatenated_segments from mtl_system_items_vl msiv where to_number(oki.object1_id1)=msiv.inventory_item_id and to_number(oki.object1_id2)=msiv.organization_id)
end
from
okc_k_items oki
where
oklb.id=oki.cle_id and
rownum=1
) item,
(select olv.item_description from okc_k_lines_v olv where oklb.id=olv.id) line_description,
case when oklb.cle_id is null then oklb.start_date end line_start_date,
case when oklb.cle_id is null then oklb.end_date end line_end_date,
osv_l.meaning line_status,
coalesce(hca_l.account_number,
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_lb.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id),
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_ls.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id)
) line_bill_to_account,
hcsua_lb.location line_bill_to_location,
hcsua_ls.location line_ship_to_location,
(select olv.comments from okc_k_lines_v olv where oklb.id=olv.id) line_comments,
xxen_util.meaning(oksl.usage_type,&apos;OKS_USAGE_TYPES&apos;,0) usage_type,
oklb.price_unit unit_price,
oklb.price_negotiated negotiated_amount,
oksl.minimum_quantity,
(select muomv.unit_of_measure_tl from mtl_units_of_measure_vl muomv where oksl.usage_period=muomv.uom_code) usage_period,
(
select
case
when oki.jtot_object1_code=&apos;OKX_CUSTPROD&apos; then (select cii.instance_number from csi_item_instances cii where to_number(oki.object1_id1)=cii.instance_id)
when oki.jtot_object1_code=&apos;OKX_COUNTER&apos; then (select ccv.name from csi_counters_vl ccv where to_number(oki.object1_id1)=ccv.counter_id)
end
from
okc_k_items oki
where
oklb.id=oki.cle_id and
rownum=1
) covered_product,
case when oklb.cle_id is not null then oklb.start_date end covered_start_date,
case when oklb.cle_id is not null then oklb.end_date end covered_end_date,
oki_q.number_of_items quantity,
(select muom.unit_of_measure from mtl_units_of_measure_vl muom where oki_q.uom_code=muom.uom_code) uom,
oksl.fixed_quantity,
oksl.default_quantity,
oksl.base_reading,
xxen_util.display_flexfield_context(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category) line_attribute_category,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE1&apos;,oklb.rowid,oklb.attribute1) line_attribute1,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE2&apos;,oklb.rowid,oklb.attribute2) line_attribute2,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE3&apos;,oklb.rowid,oklb.attribute3) line_attribute3,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE4&apos;,oklb.rowid,oklb.attribute4) line_attribute4,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE5&apos;,oklb.rowid,oklb.attribute5) line_attribute5,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE6&apos;,oklb.rowid,oklb.attribute6) line_attribute6,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE7&apos;,oklb.rowid,oklb.attribute7) line_attribute7,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE8&apos;,oklb.rowid,oklb.attribute8) line_attribute8,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE9&apos;,oklb.rowid,oklb.attribute9) line_attribute9,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE10&apos;,oklb.rowid,oklb.attribute10) line_attribute10,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE11&apos;,oklb.rowid,oklb.attribute11) line_attribute11,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE12&apos;,oklb.rowid,oklb.attribute12) line_attribute12,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE13&apos;,oklb.rowid,oklb.attribute13) line_attribute13,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE14&apos;,oklb.rowid,oklb.attribute14) line_attribute14,
xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE15&apos;,oklb.rowid,oklb.attribute15) line_attribute15,
to_char(okhab.id) chr_id,
to_char(oklb.id) cle_id,
null upload_row
from
okc_k_headers_all_b okhab,
okc_k_headers_tl okht,
oks_k_headers_b okhb,
oks_billing_profiles_v obpv,
hr_all_organization_units_vl haouv,
okc_statuses_v osv,
hz_cust_accounts hca_h,
hz_cust_site_uses_all hcsua_hb,
hz_cust_site_uses_all hcsua_hs,
okc_k_lines_b oklb,
okc_k_lines_b oklb_p,
oks_k_lines_b oksl,
okc_k_items oki_q,
okc_statuses_v osv_l,
hz_cust_accounts hca_l,
hz_cust_site_uses_all hcsua_lb,
hz_cust_site_uses_all hcsua_ls
where
1=1 and
okhab.scs_code=&apos;SERVICE&apos; and
okhab.authoring_org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
okhab.id=okht.id and
okht.language=userenv(&apos;lang&apos;) and
okhab.id=okhb.chr_id(+) and
okhb.billing_profile_id=obpv.id(+) and
okhab.authoring_org_id=haouv.organization_id and
okhab.sts_code=osv.code and
okhab.cust_acct_id=hca_h.cust_account_id(+) and
okhab.bill_to_site_use_id=hcsua_hb.site_use_id(+) and
okhab.ship_to_site_use_id=hcsua_hs.site_use_id(+) and
okhab.id=oklb.dnz_chr_id and
oklb.lse_id in (1,7,8,9,10,11,12,13,14,35) and
oklb.cle_id=oklb_p.id(+) and
oklb.id=oksl.cle_id(+) and
oklb.id=oki_q.cle_id(+) and
oklb.sts_code=osv_l.code and
oklb.cust_acct_id=hca_l.cust_account_id(+) and
oklb.bill_to_site_use_id=hcsua_lb.site_use_id(+) and
oklb.ship_to_site_use_id=hcsua_ls.site_use_id(+)</SQL_TEXT>
  <VERSION_COMMENTS>Merged the OKS Contract Line Creation Upload into this upload: one definition now updates contract headers and lines and creates service and usage lines and covered level sublines through xxen_oks_upload.process_contract_line, which routes each row by the presence of the Line Number and the line creation columns.</VERSION_COMMENTS>
  <TYPE>U</TYPE>
  <UPLOAD_TYPE>A</UPLOAD_TYPE>
  <UPLOAD_OBJECT>xxen_oks_upload.process_contract_line</UPLOAD_OBJECT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>OKS Service Contract Line Upload</REPORT_NAME>
    <DESCRIPTION>This upload maintains the lines of existing Oracle Service Contracts through the standard Service Contracts public APIs: it updates header and line level values, adds new service and usage lines, and adds covered product or counter sublines.

Each row is one contract line or subline. Rows identified by the Line Number column update that line; sublines use the parent.child format, for example 1.2 for the second covered product of service line 1. Rows without a Line Number create a new line: leave Parent Line Number empty and enter Line Type, Item and the line dates for a top line, or enter a Parent Line Number, the Covered Product and the covered dates for a subline. A subline can reference a top line created by an earlier row of the same file. Header level values repeat on every row of a contract and are applied once.

Usage lines need a Usage Type, and a Usage Period for all types except Negotiated per Period. Actual per Period and Actual by Quantity lines are invoiced in arrears, which the upload sets automatically, and their sublines need a Default Quantity and a Base Reading.

Prices are written as entered. Changing the negotiated amount or unit price does not reprice the line through the price list and does not regenerate an existing billing schedule, and lines cannot be removed by this upload.

Updates are validated by the Service Contracts APIs, so changes not allowed for the current contract or line status are rejected with the corresponding API message.</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>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>:p_upload_mode like &apos;%&apos; || xxen_upload.action_update</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Blitz Upload Mode</LOV_NAME>
    <LOV_GUID>E811F942597A2075E0530100007FF4F2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select xxen_upload.action_create id, xxen_upload.action_meaning(xxen_upload.action_create) value, null description from dual union all
select xxen_upload.action_create || &apos;,&apos; || xxen_upload.action_update id, xxen_upload.action_meaning(xxen_upload.action_create)||&apos;, &apos;||xxen_upload.action_meaning(xxen_upload.action_update) value, null description from dual
</LOV_QUERY_DSP>
    <DEFAULT_VALUE>C,U</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Upload Mode</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>haouv.name=:operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>okhab.contract_number=:contract_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
okhab.contract_number value,
okht.short_description description
from
okc_k_headers_all_b okhab,
okc_k_headers_tl okht
where
okhab.scs_code=&apos;SERVICE&apos; and
okhab.authoring_org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
okhab.id=okht.id and
okht.language=userenv(&apos;lang&apos;)
order by
okhab.contract_number</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Contract Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>okhab.sts_code=:contract_status</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
osv.code id,
osv.meaning value,
null description
from
okc_statuses_v osv
order by
osv.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Contract Status</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>oklb.sts_code=:line_status</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
osv.code id,
osv.meaning value,
null description
from
okc_statuses_v osv
order by
osv.meaning</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Line Status</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>1</COLUMN_NUMBER>
    <COLUMN_NAME>ACTION_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>2</COLUMN_NUMBER>
    <COLUMN_NAME>STATUS_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>3</COLUMN_NUMBER>
    <COLUMN_NAME>MESSAGE_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>4</COLUMN_NUMBER>
    <COLUMN_NAME>MODIFIED_COLUMNS_</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>5</COLUMN_NUMBER>
    <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DEFAULT_VALUE>select haouv.name from okc_k_headers_all_b okhab, hr_all_organization_units_vl haouv where okhab.contract_number=:$column$.contract_number and nvl(okhab.contract_number_modifier,chr(1))=nvl(:$column$.contract_modifier,chr(1)) and okhab.authoring_org_id=haouv.organization_id</DEFAULT_VALUE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>6</COLUMN_NUMBER>
    <COLUMN_NAME>CONTRACT_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
okhab.contract_number value,
okht.short_description description
from
okc_k_headers_all_b okhab,
okc_k_headers_tl okht
where
okhab.scs_code=&apos;SERVICE&apos; and
okhab.authoring_org_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat) and
okhab.id=okht.id and
okht.language=userenv(&apos;lang&apos;)
order by
okhab.contract_number</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>7</COLUMN_NUMBER>
    <COLUMN_NAME>CONTRACT_MODIFIER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <COMMENTS>Only needed when the contract number exists more than once with different modifiers.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>8</COLUMN_NUMBER>
    <COLUMN_NAME>CONTRACT_STATUS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>9</COLUMN_NUMBER>
    <COLUMN_NAME>CURRENCY_CODE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DEFAULT_VALUE>select okhab.currency_code from okc_k_headers_all_b okhab where okhab.contract_number=:$column$.contract_number and nvl(okhab.contract_number_modifier,chr(1))=nvl(:$column$.contract_modifier,chr(1))</DEFAULT_VALUE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>10</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_BILL_TO_ACCOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hca.cust_account_id id,
hca.account_number value,
hp.party_name||nvl2(hca.account_name,&apos; - &apos;||hca.account_name,null) description
from
hz_cust_accounts hca,
hz_parties hp
where
hca.status=&apos;A&apos; and
hca.party_id=hp.party_id
order by
hca.account_number</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>11</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_BILL_TO_LOCATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hcsua.site_use_id id,
hcsua.location value,
hl.address1||nvl2(hl.city,&apos;, &apos;||hl.city,null) description
from
hz_cust_accounts hca,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua,
hz_party_sites hps,
hz_locations hl
where
hca.account_number=:$column$.header_bill_to_account and
hca.cust_account_id=hcasa.cust_account_id and
hcasa.status=&apos;A&apos; and
hcasa.cust_acct_site_id=hcsua.cust_acct_site_id and
hcsua.site_use_code=&apos;BILL_TO&apos; and
hcsua.status=&apos;A&apos; and
hcsua.org_id=(select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit) and
hcasa.party_site_id=hps.party_site_id and
hps.location_id=hl.location_id
order by
hcsua.location</LOV_QUERY_DSP>
    <COMMENTS>Enter the Header Bill To Account first. The list shows the bill to locations of that account for the contract operating unit.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>12</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_SHIP_TO_LOCATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hcsua.site_use_id id,
hcsua.location value,
hl.address1||nvl2(hl.city,&apos;, &apos;||hl.city,null) description
from
hz_cust_accounts hca,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua,
hz_party_sites hps,
hz_locations hl
where
hca.account_number=:$column$.header_bill_to_account and
hca.cust_account_id=hcasa.cust_account_id and
hcasa.status=&apos;A&apos; and
hcasa.cust_acct_site_id=hcsua.cust_acct_site_id and
hcsua.site_use_code=&apos;SHIP_TO&apos; and
hcsua.status=&apos;A&apos; and
hcsua.org_id=(select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit) and
hcasa.party_site_id=hps.party_site_id and
hps.location_id=hl.location_id
order by
hcsua.location</LOV_QUERY_DSP>
    <COMMENTS>Enter the Header Bill To Account first. The list shows the ship to locations of that account for the contract operating unit.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>13</COLUMN_NUMBER>
    <COLUMN_NAME>HEADER_COMMENTS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>14</COLUMN_NUMBER>
    <COLUMN_NAME>BILLING_PROFILE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
to_char(obpv.id) id,
obpv.profile_number value,
obpv.description
from
oks_billing_profiles_v obpv
order by
obpv.profile_number</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>15</COLUMN_NUMBER>
    <COLUMN_NAME>ADDITIONAL_PARTY_ROLE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
fl.lookup_code id,
fl.meaning value,
null description
from
fnd_lookups fl
where
fl.lookup_type=&apos;OKC_ROLE&apos; and
fl.lookup_code&lt;&gt;&apos;VENDOR&apos; and
fl.lookup_code in (select osr.rle_code from okc_subclass_roles osr where osr.scs_code in (select okhab.scs_code from okc_k_headers_all_b okhab where okhab.contract_number=:$column$.contract_number))
order by
fl.meaning</LOV_QUERY_DSP>
    <COMMENTS>Additional party role such as Third Party. The role is added to the contract when it does not exist yet, otherwise the party of the existing role row is updated.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>16</COLUMN_NUMBER>
    <COLUMN_NAME>ADDITIONAL_PARTY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hp.party_id id,
hp.party_name||&apos; - &apos;||hp.party_number value,
hp.address1||nvl2(hp.city,&apos;, &apos;||hp.city,null) description
from
hz_parties hp
where
hp.status=&apos;A&apos; and
hp.party_id in (select hca.party_id from hz_cust_accounts hca where hca.status=&apos;A&apos;)
order by
hp.party_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>17</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE_CATEGORY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcv.descriptive_flex_context_code&lt;&gt;&apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>18</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE1</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE1&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>19</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE2</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE2&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>20</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE3</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE3&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>21</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE4</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE4&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>22</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE5</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE5&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>23</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE6</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE6&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>24</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE7</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE7&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>25</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE8</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE8&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>26</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE9</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE9&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>27</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE10</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE10&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>28</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE11</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE11&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>29</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE12</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE12&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>30</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE13</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE13&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>31</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE14</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE14&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>32</COLUMN_NUMBER>
    <COLUMN_NAME>HDR_ATTRIBUTE15</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_HEADERS_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.hdr_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE15&apos;,
 p_attribute1=&gt;:$column$.hdr_attribute1,
 p_attribute2=&gt;:$column$.hdr_attribute2,
 p_attribute3=&gt;:$column$.hdr_attribute3,
 p_attribute4=&gt;:$column$.hdr_attribute4,
 p_attribute5=&gt;:$column$.hdr_attribute5,
 p_attribute6=&gt;:$column$.hdr_attribute6,
 p_attribute7=&gt;:$column$.hdr_attribute7,
 p_attribute8=&gt;:$column$.hdr_attribute8,
 p_attribute9=&gt;:$column$.hdr_attribute9,
 p_attribute10=&gt;:$column$.hdr_attribute10,
 p_attribute11=&gt;:$column$.hdr_attribute11,
 p_attribute12=&gt;:$column$.hdr_attribute12,
 p_attribute13=&gt;:$column$.hdr_attribute13,
 p_attribute14=&gt;:$column$.hdr_attribute14,
 p_attribute15=&gt;:$column$.hdr_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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_HEADERS_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>33</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <COMMENTS>Contract line or subline to update. Sublines use the parent.child format, for example 1.2 for the second covered product of service line 1. Leave blank on rows that create a new line - Oracle assigns the number - and on rows carrying header level changes only.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>34</COLUMN_NUMBER>
    <COLUMN_NAME>PARENT_LINE_NUMBER</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <LOV_QUERY_DSP>select
oklv.line_number value,
olst.name||nvl2(oklv.item_description,&apos; - &apos;||oklv.item_description,null) description
from
okc_k_headers_all_b okhab,
okc_k_lines_v oklv,
okc_line_styles_tl olst
where
okhab.contract_number=:$column$.contract_number and
nvl(okhab.contract_number_modifier,chr(1))=nvl(:$column$.contract_modifier,chr(1)) and
okhab.id=oklv.dnz_chr_id and
oklv.cle_id is null and
oklv.lse_id in (1,12) and
oklv.lse_id=olst.id and
olst.language=userenv(&apos;lang&apos;)
order by
to_number(oklv.line_number)</LOV_QUERY_DSP>
    <COMMENTS>Only entered when creating a subline: the number of the service or usage line to create it under. The list shows the lines that exist on the contract today; a line created by an earlier row of this file can be entered as well.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>35</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
olsv.id,
olsv.name value,
olsv.description
from
okc_line_styles_v olsv
where
olsv.id in (1,12)
order by
olsv.name</LOV_QUERY_DSP>
    <COMMENTS>Required to create a top line.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>36</COLUMN_NUMBER>
    <COLUMN_NAME>ITEM</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
osiv.description value,
osiv.name description
from
okx_system_items_v osiv
where
osiv.organization_id=(select to_number(oe_profile.value(&apos;OE_ORGANIZATION_ID&apos;,haouv.organization_id)) from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit) and
(:$column$.line_type=(select olsv.name from okc_line_styles_v olsv where olsv.id=12) and osiv.usage_item_flag=&apos;Y&apos; or nvl(:$column$.line_type,&apos;x&apos;)&lt;&gt;(select olsv.name from okc_line_styles_v olsv where olsv.id=12) and osiv.service_item_flag=&apos;Y&apos;)
order by
osiv.description</LOV_QUERY_DSP>
    <COMMENTS>Required to create a top line. Enter the Line Type first: the list shows the service or usage items of the operating unit item validation organization.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>37</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_DESCRIPTION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <DEFAULT_VALUE>select osiv.name from okx_system_items_v osiv where osiv.description=:$column$.item and osiv.organization_id=(select to_number(oe_profile.value(&apos;OE_ORGANIZATION_ID&apos;,haouv.organization_id)) from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit)</DEFAULT_VALUE>
    <COMMENTS>Defaults from the item on a new line. Also used as the covered product description on a new subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>38</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_START_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Required to create a top line and must fall within the contract dates.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>39</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_END_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Required to create a top line and must fall within the contract dates.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>40</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_STATUS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <READ_ONLY>Y</READ_ONLY>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>41</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_BILL_TO_ACCOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
hca.cust_account_id id,
hca.account_number value,
hp.party_name||nvl2(hca.account_name,&apos; - &apos;||hca.account_name,null) description
from
hz_cust_accounts hca,
hz_parties hp
where
hca.status=&apos;A&apos; and
hca.party_id=hp.party_id
order by
hca.account_number</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>42</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_BILL_TO_LOCATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hcsua.site_use_id id,
hcsua.location value,
hl.address1||nvl2(hl.city,&apos;, &apos;||hl.city,null) description
from
hz_cust_accounts hca,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua,
hz_party_sites hps,
hz_locations hl
where
hca.account_number=:$column$.line_bill_to_account and
hca.cust_account_id=hcasa.cust_account_id and
hcasa.status=&apos;A&apos; and
hcasa.cust_acct_site_id=hcsua.cust_acct_site_id and
hcsua.site_use_code=&apos;BILL_TO&apos; and
hcsua.status=&apos;A&apos; and
hcsua.org_id=(select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit) and
hcasa.party_site_id=hps.party_site_id and
hps.location_id=hl.location_id
order by
hcsua.location</LOV_QUERY_DSP>
    <COMMENTS>Enter the Line Bill To Account first. The list shows the bill to locations of that account for the contract operating unit.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>43</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_SHIP_TO_LOCATION</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hcsua.site_use_id id,
hcsua.location value,
hl.address1||nvl2(hl.city,&apos;, &apos;||hl.city,null) description
from
hz_cust_accounts hca,
hz_cust_acct_sites_all hcasa,
hz_cust_site_uses_all hcsua,
hz_party_sites hps,
hz_locations hl
where
hca.account_number=:$column$.line_bill_to_account and
hca.cust_account_id=hcasa.cust_account_id and
hcasa.status=&apos;A&apos; and
hcasa.cust_acct_site_id=hcsua.cust_acct_site_id and
hcsua.site_use_code=&apos;SHIP_TO&apos; and
hcsua.status=&apos;A&apos; and
hcsua.org_id=(select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:$column$.operating_unit) and
hcasa.party_site_id=hps.party_site_id and
hps.location_id=hl.location_id
order by
hcsua.location</LOV_QUERY_DSP>
    <COMMENTS>Enter the Line Bill To Account first. The list shows the ship to locations of that account for the contract operating unit.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>44</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_COMMENTS</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>45</COLUMN_NUMBER>
    <COLUMN_NAME>USAGE_TYPE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
flvv.lookup_code id,
flvv.meaning value,
flvv.description
from
fnd_lookup_values_vl flvv
where
flvv.lookup_type=&apos;OKS_USAGE_TYPES&apos; and
flvv.view_application_id=0 and
flvv.security_group_id=0 and
flvv.enabled_flag=&apos;Y&apos;
order by
flvv.meaning</LOV_QUERY_DSP>
    <COMMENTS>Required to create a usage line.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>46</COLUMN_NUMBER>
    <COLUMN_NAME>UNIT_PRICE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>47</COLUMN_NUMBER>
    <COLUMN_NAME>NEGOTIATED_AMOUNT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Negotiated amount of the line or subline. The amount is written as entered and does not reprice the line or regenerate an existing billing schedule. Required to create a Negotiated per Period usage subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>48</COLUMN_NUMBER>
    <COLUMN_NAME>MINIMUM_QUANTITY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Minimum quantity of a usage line or usage counter subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>49</COLUMN_NUMBER>
    <COLUMN_NAME>USAGE_PERIOD</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
muomv.uom_code id,
muomv.unit_of_measure_tl value,
muomv.description
from
mtl_units_of_measure_vl muomv
where
muomv.uom_code in (select otcuv.uom_code from okc_time_code_units_v otcuv where otcuv.active_flag=&apos;Y&apos;)
order by
muomv.unit_of_measure_tl</LOV_QUERY_DSP>
    <COMMENTS>Required to create a usage line of all usage types except Negotiated per Period.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>50</COLUMN_NUMBER>
    <COLUMN_NAME>COVERED_PRODUCT</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
x.value,
x.description
from
(
select
cii.instance_number value,
msiv.concatenated_segments||nvl2(cii.serial_number,&apos; / &apos;||cii.serial_number,null) description
from
csi_item_instances cii,
mtl_system_items_vl msiv
where
&apos;Service&apos;=(select case when oklb.lse_id=12 then &apos;Usage&apos; else &apos;Service&apos; end from okc_k_headers_all_b okhab, okc_k_lines_b oklb where okhab.contract_number=:$column$.contract_number and nvl(okhab.contract_number_modifier,chr(1))=nvl(:$column$.contract_modifier,chr(1)) and okhab.id=oklb.dnz_chr_id and oklb.cle_id is null and oklb.line_number=:$column$.parent_line_number) and
cii.inventory_item_id=msiv.inventory_item_id and
cii.inv_master_organization_id=msiv.organization_id and
nvl(cii.active_end_date,sysdate+1)&gt;sysdate
union all
select
ccv.name value,
ccv.description
from
csi_counters_vl ccv
where
&apos;Usage&apos;=(select case when oklb.lse_id=12 then &apos;Usage&apos; else &apos;Service&apos; end from okc_k_headers_all_b okhab, okc_k_lines_b oklb where okhab.contract_number=:$column$.contract_number and nvl(okhab.contract_number_modifier,chr(1))=nvl(:$column$.contract_modifier,chr(1)) and okhab.id=oklb.dnz_chr_id and oklb.cle_id is null and oklb.line_number=:$column$.parent_line_number)
) x
order by
x.value</LOV_QUERY_DSP>
    <COMMENTS>Required to create a subline. Enter the Parent Line Number first: the list shows customer products under a service line and counters under a usage line. Under a line created by an earlier row of this file the list is empty, so enter the instance number or counter name directly.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>51</COLUMN_NUMBER>
    <COLUMN_NAME>COVERED_START_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Required to create a subline and must fall within the line dates.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>52</COLUMN_NUMBER>
    <COLUMN_NAME>COVERED_END_DATE</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Date</COLUMN_TYPE_DSP>
    <DATA_TYPE>date</DATA_TYPE>
    <COMMENTS>Required to create a subline and must fall within the line dates.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>53</COLUMN_NUMBER>
    <COLUMN_NAME>QUANTITY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>54</COLUMN_NUMBER>
    <COLUMN_NAME>UOM</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
muom.uom_code id,
muom.unit_of_measure value,
muom.description
from
mtl_units_of_measure_vl muom
where
nvl(muom.disable_date,sysdate+1)&gt;sysdate
order by
muom.unit_of_measure</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>55</COLUMN_NUMBER>
    <COLUMN_NAME>FIXED_QUANTITY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Required to create a Fixed per Period usage subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>56</COLUMN_NUMBER>
    <COLUMN_NAME>DEFAULT_QUANTITY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Required to create an Actual per Period or Actual by Quantity usage subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>57</COLUMN_NUMBER>
    <COLUMN_NAME>BASE_READING</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Number</COLUMN_TYPE_DSP>
    <DATA_TYPE>number</DATA_TYPE>
    <COMMENTS>Required to create an Actual per Period or Actual by Quantity usage subline.</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>58</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE_CATEGORY</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcv.descriptive_flex_context_code&lt;&gt;&apos;Global Data Elements&apos;
order by
fdfcv.descriptive_flex_context_name</LOV_QUERY_DSP>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>59</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE1</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE1&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE1&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>60</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE2</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE2&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE2&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>61</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE3</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE3&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE3&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>62</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE4</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE4&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE4&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>63</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE5</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE5&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE5&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>64</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE6</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE6&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE6&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>65</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE7</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE7&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE7&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>66</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE8</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE8&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE8&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>67</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE9</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE9&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE9&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>68</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE10</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE10&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE10&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>69</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE11</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE11&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE11&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>70</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE12</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE12&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE12&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>71</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE13</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE13&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE13&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>72</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE14</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE14&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE14&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>73</COLUMN_NUMBER>
    <COLUMN_NAME>LINE_ATTRIBUTE15</COLUMN_NAME>
    <COLUMN_TYPE_DSP>LOV custom</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <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;510,
 p_descriptive_flexfield_name=&gt;&apos;OKC_LINES_DESC_FLEX&apos;,
 p_context_name=&gt;:$column$.line_attribute_category,
 p_column_name=&gt;&apos;ATTRIBUTE15&apos;,
 p_attribute1=&gt;:$column$.line_attribute1,
 p_attribute2=&gt;:$column$.line_attribute2,
 p_attribute3=&gt;:$column$.line_attribute3,
 p_attribute4=&gt;:$column$.line_attribute4,
 p_attribute5=&gt;:$column$.line_attribute5,
 p_attribute6=&gt;:$column$.line_attribute6,
 p_attribute7=&gt;:$column$.line_attribute7,
 p_attribute8=&gt;:$column$.line_attribute8,
 p_attribute9=&gt;:$column$.line_attribute9,
 p_attribute10=&gt;:$column$.line_attribute10,
 p_attribute11=&gt;:$column$.line_attribute11,
 p_attribute12=&gt;:$column$.line_attribute12,
 p_attribute13=&gt;:$column$.line_attribute13,
 p_attribute14=&gt;:$column$.line_attribute14,
 p_attribute15=&gt;:$column$.line_attribute15
)
) lov
order by
value</LOV_QUERY_DSP>
    <COMMENTS>select distinct
&apos;(Context) &apos;||initcap(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=510 and
fdfv.descriptive_flexfield_name=&apos;OKC_LINES_DESC_FLEX&apos; and
fdfcuv.application_column_name=&apos;ATTRIBUTE15&apos;</COMMENTS>
   </UPLOAD_COLUMNS_ROW>
   <UPLOAD_COLUMNS_ROW>
    <COLUMN_NUMBER>74</COLUMN_NUMBER>
    <COLUMN_NAME>CHR_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>75</COLUMN_NUMBER>
    <COLUMN_NAME>CLE_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>76</COLUMN_NUMBER>
    <COLUMN_NAME>UPLOAD_ROW</COLUMN_NAME>
    <COLUMN_TYPE_DSP>Char</COLUMN_TYPE_DSP>
    <DATA_TYPE>varchar2</DATA_TYPE>
    <HIDDEN>Y</HIDDEN>
   </UPLOAD_COLUMNS_ROW>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>10</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>20</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_contract_number</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CONTRACT_NUMBER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_contract_modifier</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CONTRACT_MODIFIER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_cust_acct_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>HEADER_BILL_TO_ACCOUNT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_bill_to_site_use_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>HEADER_BILL_TO_LOCATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_ship_to_site_use_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>HEADER_SHIP_TO_LOCATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_comments</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HEADER_COMMENTS</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_billing_profile_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>BILLING_PROFILE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_party_role</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>ADDITIONAL_PARTY_ROLE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_party_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>ADDITIONAL_PARTY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute_category</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE_CATEGORY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute1</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE1</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute2</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE2</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute3</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE3</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>150</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute4</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE4</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>160</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute5</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE5</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>170</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute6</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE6</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>180</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute7</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE7</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>190</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute8</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE8</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>200</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute9</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE9</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>210</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute10</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE10</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>220</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute11</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE11</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>230</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute12</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE12</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>240</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute13</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE13</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>250</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute14</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE14</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>260</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_hdr_attribute15</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>HDR_ATTRIBUTE15</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>270</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_number</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_NUMBER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>280</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_parent_line_number</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>PARENT_LINE_NUMBER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>290</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_type</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_TYPE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>300</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_item</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>ITEM</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>310</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_description</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_DESCRIPTION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>320</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_start_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_START_DATE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>330</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_end_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_END_DATE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>340</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_cust_acct_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_BILL_TO_ACCOUNT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>350</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_bill_to_site_use_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_BILL_TO_LOCATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>360</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_ship_to_site_use_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_SHIP_TO_LOCATION</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>370</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_comments</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_COMMENTS</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>380</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_usage_type</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>USAGE_TYPE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>390</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_price_unit</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>UNIT_PRICE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>400</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_price_negotiated</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>NEGOTIATED_AMOUNT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>410</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_minimum_quantity</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>MINIMUM_QUANTITY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>420</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_usage_period</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>USAGE_PERIOD</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>430</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_covered_product</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>COVERED_PRODUCT</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>440</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_covered_start_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <COLUMN_NAME>COVERED_START_DATE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>450</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_covered_end_date</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Date</PARAMETER_TYPE>
    <COLUMN_NAME>COVERED_END_DATE</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>460</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_quantity</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>QUANTITY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>470</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_uom</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>UOM</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>480</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_fixed_quantity</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>FIXED_QUANTITY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>490</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_default_quantity</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>DEFAULT_QUANTITY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>500</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_base_reading</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Number</PARAMETER_TYPE>
    <COLUMN_NAME>BASE_READING</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>510</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute_category</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE_CATEGORY</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>520</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute1</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE1</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>530</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute2</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE2</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>540</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute3</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE3</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>550</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute4</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE4</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>560</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute5</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE5</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>570</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute6</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE6</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>580</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute7</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE7</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>590</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute8</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE8</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>600</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute9</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE9</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>610</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute10</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE10</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>620</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute11</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE11</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>630</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute12</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE12</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>640</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute13</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE13</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>650</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute14</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE14</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>660</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_attribute15</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_ATTRIBUTE15</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>670</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_chr_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CHR_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>680</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_cle_id</PARAMETER_NAME>
    <IN_OUT>in</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CLE_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>690</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_chr_id_out</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CHR_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>700</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_cle_id_out</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>CLE_ID</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>710</DISPLAY_SEQUENCE>
    <PARAMETER_NAME>p_line_number_out</PARAMETER_NAME>
    <IN_OUT>out</IN_OUT>
    <PARAMETER_TYPE>Char</PARAMETER_TYPE>
    <COLUMN_NAME>LINE_NUMBER</COLUMN_NAME>
   </UPLOAD_PARAMETERS_ROW>
   <UPLOAD_PARAMETERS_ROW>
    <SOURCE>U</SOURCE>
    <DISPLAY_SEQUENCE>720</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>730</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>Error SQL</SQL_TYPE>
   </UPLOAD_SQLS_ROW>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Order By</SQL_TYPE>
    <SQL_TEXT>upload_row, contract_number, contract_modifier, to_number(regexp_substr(line_number,&apos;\d+&apos;)), nvl(to_number(regexp_substr(line_number,&apos;\d+&apos;,1,2)),0)</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
   <UPLOAD_SQLS_ROW>
    <SQL_TYPE>Success SQL</SQL_TYPE>
    <SQL_TEXT>select
xu.action_,
xu.status_,
xu.message_,
xu.modified_columns_,
nvl(haouv.name,xu.operating_unit) operating_unit,
nvl(okhab.contract_number,xu.contract_number) contract_number,
nvl(okhab.contract_number_modifier,xu.contract_modifier) contract_modifier,
nvl(osv.meaning,xu.contract_status) contract_status,
nvl(okhab.currency_code,xu.currency_code) currency_code,
nvl(coalesce(hca_h.account_number,
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_hb.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id),
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_hs.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id)
),xu.header_bill_to_account) header_bill_to_account,
nvl(hcsua_hb.location,xu.header_bill_to_location) header_bill_to_location,
nvl(hcsua_hs.location,xu.header_ship_to_location) header_ship_to_location,
nvl(okht.comments,xu.header_comments) header_comments,
nvl(obpv.profile_number,xu.billing_profile) billing_profile,
nvl((
select
xxen_util.meaning(okpr.rle_code,&apos;OKC_ROLE&apos;,0)
from
okc_k_party_roles_b okpr
where
okpr.id=(select min(okpr2.id) from okc_k_party_roles_b okpr2 where okpr2.chr_id=okhab.id and okpr2.cle_id is null and okpr2.rle_code not in (&apos;CUSTOMER&apos;,&apos;VENDOR&apos;))
),xu.additional_party_role) additional_party_role,
nvl((
select
hp.party_name||&apos; - &apos;||hp.party_number
from
okc_k_party_roles_b okpr,
hz_parties hp
where
okpr.id=(select min(okpr2.id) from okc_k_party_roles_b okpr2 where okpr2.chr_id=okhab.id and okpr2.cle_id is null and okpr2.rle_code not in (&apos;CUSTOMER&apos;,&apos;VENDOR&apos;)) and
to_number(okpr.object1_id1)=hp.party_id
),xu.additional_party) additional_party,
nvl(xxen_util.display_flexfield_context(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category),xu.hdr_attribute_category) hdr_attribute_category,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE1&apos;,okhab.rowid,okhab.attribute1),xu.hdr_attribute1) hdr_attribute1,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE2&apos;,okhab.rowid,okhab.attribute2),xu.hdr_attribute2) hdr_attribute2,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE3&apos;,okhab.rowid,okhab.attribute3),xu.hdr_attribute3) hdr_attribute3,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE4&apos;,okhab.rowid,okhab.attribute4),xu.hdr_attribute4) hdr_attribute4,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE5&apos;,okhab.rowid,okhab.attribute5),xu.hdr_attribute5) hdr_attribute5,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE6&apos;,okhab.rowid,okhab.attribute6),xu.hdr_attribute6) hdr_attribute6,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE7&apos;,okhab.rowid,okhab.attribute7),xu.hdr_attribute7) hdr_attribute7,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE8&apos;,okhab.rowid,okhab.attribute8),xu.hdr_attribute8) hdr_attribute8,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE9&apos;,okhab.rowid,okhab.attribute9),xu.hdr_attribute9) hdr_attribute9,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE10&apos;,okhab.rowid,okhab.attribute10),xu.hdr_attribute10) hdr_attribute10,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE11&apos;,okhab.rowid,okhab.attribute11),xu.hdr_attribute11) hdr_attribute11,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE12&apos;,okhab.rowid,okhab.attribute12),xu.hdr_attribute12) hdr_attribute12,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE13&apos;,okhab.rowid,okhab.attribute13),xu.hdr_attribute13) hdr_attribute13,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE14&apos;,okhab.rowid,okhab.attribute14),xu.hdr_attribute14) hdr_attribute14,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_HEADERS_DESC_FLEX&apos;,okhab.attribute_category,&apos;ATTRIBUTE15&apos;,okhab.rowid,okhab.attribute15),xu.hdr_attribute15) hdr_attribute15,
nvl(nvl2(oklb.cle_id,oklb_p.line_number||&apos;.&apos;,null)||oklb.line_number,xu.line_number) line_number,
nvl(oklb_p.line_number,xu.parent_line_number) parent_line_number,
nvl((select olsv.name from okc_line_styles_v olsv where olsv.id=decode(nvl(oklb_p.lse_id,oklb.lse_id),12,12,1)),xu.line_type) line_type,
nvl(
(
select
case
when oki.jtot_object1_code in (&apos;OKX_SERVICE&apos;,&apos;OKX_USAGE&apos;) then (select msiv.concatenated_segments from mtl_system_items_vl msiv where to_number(oki.object1_id1)=msiv.inventory_item_id and to_number(oki.object1_id2)=msiv.organization_id)
end
from
okc_k_items oki
where
oklb.id=oki.cle_id and
rownum=1
),xu.item) item,
nvl((select olv.item_description from okc_k_lines_v olv where oklb.id=olv.id),xu.line_description) line_description,
nvl(case when oklb.cle_id is null then oklb.start_date end,xu.line_start_date) line_start_date,
nvl(case when oklb.cle_id is null then oklb.end_date end,xu.line_end_date) line_end_date,
nvl(osv_l.meaning,xu.line_status) line_status,
nvl(coalesce(hca_l.account_number,
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_lb.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id),
(select hca2.account_number from hz_cust_acct_sites_all hcasa2, hz_cust_accounts hca2 where hcsua_ls.cust_acct_site_id=hcasa2.cust_acct_site_id and hcasa2.cust_account_id=hca2.cust_account_id)
),xu.line_bill_to_account) line_bill_to_account,
nvl(hcsua_lb.location,xu.line_bill_to_location) line_bill_to_location,
nvl(hcsua_ls.location,xu.line_ship_to_location) line_ship_to_location,
nvl((select olv.comments from okc_k_lines_v olv where oklb.id=olv.id),xu.line_comments) line_comments,
nvl(xxen_util.meaning(oksl.usage_type,&apos;OKS_USAGE_TYPES&apos;,0),xu.usage_type) usage_type,
nvl(oklb.price_unit,xu.unit_price) unit_price,
nvl(oklb.price_negotiated,xu.negotiated_amount) negotiated_amount,
nvl(oksl.minimum_quantity,xu.minimum_quantity) minimum_quantity,
nvl((select muomv.unit_of_measure_tl from mtl_units_of_measure_vl muomv where oksl.usage_period=muomv.uom_code),xu.usage_period) usage_period,
nvl(
(
select
case
when oki.jtot_object1_code=&apos;OKX_CUSTPROD&apos; then (select cii.instance_number from csi_item_instances cii where to_number(oki.object1_id1)=cii.instance_id)
when oki.jtot_object1_code=&apos;OKX_COUNTER&apos; then (select ccv.name from csi_counters_vl ccv where to_number(oki.object1_id1)=ccv.counter_id)
end
from
okc_k_items oki
where
oklb.id=oki.cle_id and
rownum=1
),xu.covered_product) covered_product,
nvl(case when oklb.cle_id is not null then oklb.start_date end,xu.covered_start_date) covered_start_date,
nvl(case when oklb.cle_id is not null then oklb.end_date end,xu.covered_end_date) covered_end_date,
nvl(oki_q.number_of_items,xu.quantity) quantity,
nvl((select muom.unit_of_measure from mtl_units_of_measure_vl muom where oki_q.uom_code=muom.uom_code),xu.uom) uom,
nvl(oksl.fixed_quantity,xu.fixed_quantity) fixed_quantity,
nvl(oksl.default_quantity,xu.default_quantity) default_quantity,
nvl(oksl.base_reading,xu.base_reading) base_reading,
nvl(xxen_util.display_flexfield_context(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category),xu.line_attribute_category) line_attribute_category,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE1&apos;,oklb.rowid,oklb.attribute1),xu.line_attribute1) line_attribute1,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE2&apos;,oklb.rowid,oklb.attribute2),xu.line_attribute2) line_attribute2,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE3&apos;,oklb.rowid,oklb.attribute3),xu.line_attribute3) line_attribute3,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE4&apos;,oklb.rowid,oklb.attribute4),xu.line_attribute4) line_attribute4,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE5&apos;,oklb.rowid,oklb.attribute5),xu.line_attribute5) line_attribute5,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE6&apos;,oklb.rowid,oklb.attribute6),xu.line_attribute6) line_attribute6,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE7&apos;,oklb.rowid,oklb.attribute7),xu.line_attribute7) line_attribute7,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE8&apos;,oklb.rowid,oklb.attribute8),xu.line_attribute8) line_attribute8,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE9&apos;,oklb.rowid,oklb.attribute9),xu.line_attribute9) line_attribute9,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE10&apos;,oklb.rowid,oklb.attribute10),xu.line_attribute10) line_attribute10,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE11&apos;,oklb.rowid,oklb.attribute11),xu.line_attribute11) line_attribute11,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE12&apos;,oklb.rowid,oklb.attribute12),xu.line_attribute12) line_attribute12,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE13&apos;,oklb.rowid,oklb.attribute13),xu.line_attribute13) line_attribute13,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE14&apos;,oklb.rowid,oklb.attribute14),xu.line_attribute14) line_attribute14,
nvl(xxen_util.display_flexfield_value(510,&apos;OKC_LINES_DESC_FLEX&apos;,oklb.attribute_category,&apos;ATTRIBUTE15&apos;,oklb.rowid,oklb.attribute15),xu.line_attribute15) line_attribute15,
xu.chr_id,
xu.cle_id,
xu.upload_row
from
xxen_oks_service_contra_7252_u xu,
okc_k_headers_all_b okhab,
okc_k_headers_tl okht,
oks_k_headers_b okhb,
oks_billing_profiles_v obpv,
hr_all_organization_units_vl haouv,
okc_statuses_v osv,
hz_cust_accounts hca_h,
hz_cust_site_uses_all hcsua_hb,
hz_cust_site_uses_all hcsua_hs,
okc_k_lines_b oklb,
okc_k_lines_b oklb_p,
oks_k_lines_b oksl,
okc_k_items oki_q,
okc_statuses_v osv_l,
hz_cust_accounts hca_l,
hz_cust_site_uses_all hcsua_ls,
hz_cust_site_uses_all hcsua_lb
where
xu.status_code_=xxen_upload.status_success and
to_number(xu.chr_id)=okhab.id(+) and
okhab.id=okht.id(+) and
okht.language(+)=userenv(&apos;lang&apos;) and
okhab.id=okhb.chr_id(+) and
okhb.billing_profile_id=obpv.id(+) and
okhab.authoring_org_id=haouv.organization_id(+) and
okhab.sts_code=osv.code(+) and
okhab.cust_acct_id=hca_h.cust_account_id(+) and
okhab.bill_to_site_use_id=hcsua_hb.site_use_id(+) and
okhab.ship_to_site_use_id=hcsua_hs.site_use_id(+) and
to_number(xu.cle_id)=oklb.id(+) and
oklb.cle_id=oklb_p.id(+) and
oklb.id=oksl.cle_id(+) and
oklb.id=oki_q.cle_id(+) and
oklb.sts_code=osv_l.code(+) and
oklb.cust_acct_id=hca_l.cust_account_id(+) and
oklb.bill_to_site_use_id=hcsua_lb.site_use_id(+) and
oklb.ship_to_site_use_id=hcsua_ls.site_use_id(+)</SQL_TEXT>
   </UPLOAD_SQLS_ROW>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
