<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: INV Category Set -->
 <LOVS_ROW>
  <GUID>8E2FF36EDECA79D2E0530100007F1FF2</GUID>
  <LOV_NAME>INV Category Set</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Item (master, costing enabled only) -->
 <LOVS_ROW>
  <GUID>91D022B15B12FFB9E053BB6B63587F0B</GUID>
  <LOV_NAME>INV Item (master, costing enabled only)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <FILTER_BEFORE_DISPLAY>Y</FILTER_BEFORE_DISPLAY>
  <LOV_QUERY>select
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv
where
msiv.organization_id=(
select
max(mp.master_organization_id) master_organization_id
from
mtl_parameters mp
where
mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or
fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) is null and
mp.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id)
) and
msiv.costing_enabled_flag=&apos;Y&apos;
order by
msiv.concatenated_segments</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All costing enabled items from item master org</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: CAC Intercompany SO Price List -->
 <REPORTS_ROW>
  <GUID>92DADAD6B55BA363E053BB6B6358D65B</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select /*+ leading(price_lists)*/  
 -- Revision for version 1.10
 flv.meaning Price_List_Type, -- Intercompany
 qlh_tl.name Price_List_Name,
 qlh_tl.description Price_List_Description,
 qlh_b.currency_code Currency_Code,
 msiv.concatenated_segments Item_Number,
 msiv.description Item_Description,
 -- Revision for version 1.6
 fcl.meaning Item_Type,
 -- Revision for version 1.9 and 1.10
 misv.inventory_item_status_code Item_Status,
&amp;category_columns
 -- Revision for version 1.10
 muomv.uom_code Primary_UOM_Code,
 -- qpa.product_uom_code Price_UOM_Code, 
 qp_price_list_pvt.get_product_uom_code(qpll.list_line_id) Price_UOM_Code, 
 -- End revision for version 1.10
 qpll.operand List_Price, 
 qpll.start_date_active Start_Date, 
 qpll.end_date_active End_Date,
 trunc(qpll.creation_date) Creation_Date
from ( -- Revision for version 1.4 and 1.7
  select distinct nvl(hsu.price_list_id, hca.price_list_id) price_list_id
  from mtl_intercompany_parameters mip,
  hz_cust_site_uses_all hsu,
  hz_cust_accounts hca,
  hz_cust_acct_sites_all hcs
  where  mip.customer_site_id             = hsu.site_use_id            -- internal customer information
  and hsu.cust_acct_site_id            = hcs.cust_acct_site_id
  and hcs.cust_account_id              = hca.cust_account_id
 ) price_lists,
 mtl_system_items_vl msiv,
 -- Revision for version 1.10
 mtl_item_status_vl misv,
 mtl_units_of_measure_vl muomv,
 fnd_lookup_values flv, -- SOURCE, Price_List Type
 -- End revision for version 1.10
 qp_list_headers_b qlh_b,
 qp_list_headers_tl qlh_tl,
 qp_list_lines qpll,
 -- Revision for version 1.10, reverse version 1.7
 -- Revision for version 1.7
 -- qp_pricing_attributes qpa,
 -- Revision for version 1.6
 fnd_common_lookups fcl -- Item_Type
where price_lists.price_list_id       = qlh_b.list_header_id
-- Revision for version 1.10, comment out changes from version 1.8
-- Will get one price qualifier row per inventory_item_id
-- and msiv.inventory_item_id          = to_number(qpa.product_attr_value)
-- Non-unique index on qpa.list_line_id and qpa.excluder_flag
-- and qpa.list_line_id                = qpll.list_line_id
-- and qpa.excluder_flag               = &apos;N&apos;
-- and qpa.product_attribute_context   = &apos;ITEM&apos;
-- Screen out invalid inventory item id
-- and qpa.product_attr_value &lt;&gt; &apos;ALL&apos;
-- and msiv.organization_id            = (select max(to_number(ospa.parameter_value))
--       from oe_sys_parameters_all ospa
--       where ospa.parameter_code = &apos;MASTER_ORGANIZATION_ID&apos;)
-- End of commenting out changes from version 1.8
-- Revert back to packages from prior versions
and msiv.inventory_item_id          = qp_price_list_pvt.Get_Inventory_Item_Id(qpll.list_line_id)
-- Get the inventory master organization from the Order Mgmt setups
and msiv.organization_id            = qp_util.Get_Item_Validation_Org
and msiv.primary_uom_code           = muomv.uom_code
and msiv.inventory_item_status_code = misv.inventory_item_status_code
and flv.lookup_type                 = &apos;SOURCE&apos;
and flv.lookup_code                 = &apos;Intercompany&apos;
and flv.language                    = userenv(&apos;lang&apos;)
-- End revision for version 1.10
-- Revision for version 1.7
-- Exclude inactive items
and msiv.inventory_item_status_code &lt;&gt; &apos;Inactive&apos;
and qlh_b.list_header_id            = qpll.list_header_id
and qlh_b.list_header_id            = qlh_tl.list_header_id
and qlh_tl.language                 = userenv(&apos;lang&apos;)
-- Non-unique index on qpll.list_line_type_code and qpll.modifier_level_code
and qpll.list_line_type_code        = &apos;PLL&apos;
and qpll.modifier_level_code        = &apos;LINE&apos;
-- Revision for version 1.6
and fcl.lookup_code (+)             = msiv.item_type
and fcl.lookup_type (+)             = &apos;ITEM_TYPE&apos;
and 1=1
order by
 qlh_tl.name, -- Price_List_Name
 msiv.concatenated_segments -- Item_Number</SQL_TEXT>
  <NUMBER_FORMAT>#,##0.00000;[Red](#,##0.00000)</NUMBER_FORMAT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC Intercompany SO Price List</REPORT_NAME>
    <DESCRIPTION>Report to show the intercompany sales order (SO) price list information, including the item number, price list name and related information.  Price list parameter list of values are from the Intercompany Relationship Setups (from Oracle Inventory), per the price lists associated with the internal customers.

/* +=============================================================================+
-- |  Copyright 2010 - 2022 Douglas Volz Consulting, Inc.                        |
-- |  All rights reserved.                                                       |
-- |  Permission to use this code is granted provided the original author is     |
-- |  acknowledged.  No warranties, express or otherwise is included in this     |
-- |  permission.                                                                |
-- +=============================================================================+
-- |
-- |  Original Author: Douglas Volz (doug@volzconsulting.com)
-- |
-- |  Program Name:  xxx_so_price_list_rept.sql
-- |
-- |  Parameters:
-- |  p_price_effective_date -- Date the sales order list prices are effective, mandatory.
-- |  p_price_list           -- Specific intercompany price list name to report
-- |  p_item_number          -- Specific item number you wish to report, optional.
-- |  p_category_set1        -- The first item category set to report, typically the
-- |                            Cost or Product Line Category Set
-- |  p_category_set2        -- The second item category set to report, typically the
-- |                            Inventory Category Set
-- | 
-- |  Description:
-- |  Report to show the SO price list information, including the item number, price
-- |  list name and related information.
-- | 
-- |  Version Modified on  Modified  by   Description
-- |  ======= =========== ============== =========================================
-- |      1.0 19 Sep 2010 Douglas Volz   Created initial Report based on qp_price_list_lines_v
-- |      1.1 15 Dec 2010 Douglas Volz   Cleaned up report for BO Repository
-- |      1.2 22 Dec 2010 Douglas Volz   Fix for the Price End Date logic, change
-- |                                     sysdate to &apos;&amp;p_price_effective_date&apos; to
-- |      1.3 01 Dec 2014 Douglas Volz   Add Item Type column
-- |      1.4 15 Oct 2018 Douglas Volz   Get price list Ids based on intercompany
-- |                                     relationships, as opposed to hard-coding
-- |      1.5 16 Oct 2018 Douglas Volz   And get prices from Customer default price
-- |                                     list from hz_cust_accounts
-- |      1.6 20 Nov 2018 Douglas Volz   Get Item Type from fnd_common_lookups as
-- |                                     fnd_lookup_values as a duplicate &apos;KIT&apos;
-- |      1.7 11 Dec 2018 Douglas Volz   Avoid using the qp_price_list_pvt package,
-- |                                     to see if this is faster.  Use the query
-- |                                     to finding the price list headers as the
-- |                                     driving query or table, including the hint
-- |                                     to make the price list header the driving table
-- |      1.8 17 Jun 2019 Douglas Volz   Replace Oracle function 
-- |                                     apps.qp_price_list_pvt.get_product_uom_code
-- |                                     with &quot;qpa.product_uom_code&quot;.
-- |      1.9 18 Sep 2019 Douglas Volz   Added item status column and item categories
-- |     1.10 09 Jul 2022 Douglas Volz   Changed back to Oracle QP price packages, to
-- |                                     get price list information based on both
-- |                                     categoryor item-specific price lists.
-- +=============================================================================+*/</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;category_columns</ANCHOR>
   </ANCHORS_ROW>
   <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>nvl(qpll.start_date_active, sysdate) &lt;= :p_price_effective_date and
nvl(qpll.end_date_active, :p_price_effective_date) &gt;= :p_price_effective_date</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>sysdate</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Price Effective Date</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>qlh_tl.name = :p_price_list</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
name value,
description description
from
qp_secu_list_headers_vl
where list_type_code in (&apos;PRL&apos;,&apos;AGR&apos;)
and view_flag=&apos;Y&apos;
and list_header_id in
 (select distinct nvl(hsu.price_list_id, hca.price_list_id) price_list_id
  from mtl_intercompany_parameters mip,
  hz_cust_site_uses_all hsu,
  hz_cust_accounts hca,
  hz_cust_acct_sites_all hcs
  where  mip.customer_site_id             = hsu.site_use_id            -- internal customer information
  and hsu.cust_acct_site_id            = hcs.cust_acct_site_id
  and hcs.cust_account_id              = hca.cust_account_id
 )
order by name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Intercompany Price List</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),(select mdsv.category_set_name from mtl_default_sets_view mdsv where mdsv.functional_area_id=11))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 1</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>coalesce(xxen_util.previous_parameter_value(:parameter_id),(select mdsv.category_set_name from mtl_default_sets_view mdsv where mdsv.functional_area_id=5))</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 2</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>&amp;category_columns</ANCHOR>
    <SQL_TEXT>select xxen_util.item_category_columns(p_category_set_name=&gt;&apos;&lt;parameter_value&gt;&apos;) sql_text from dual</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Category Set</LOV_NAME>
    <LOV_GUID>8E2FF36EDECA79D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
mcsv.category_set_name value,
mcsv.description
from
mtl_category_sets_vl mcsv
where
:$flex$.organization_code is null or
mcsv.category_set_id in (select mic.category_set_id from mtl_parameters mp, mtl_item_categories mic where xxen_util.contains(:$flex$.organization_code,mp.organization_code)=&apos;Y&apos; and mp.organization_id=mic.organization_id)
order by
mcsv.category_set_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>xxen_util.previous_parameter_value(:parameter_id)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Category Set 3</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>msiv.concatenated_segments = :p_item_number</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Item (master, costing enabled only)</LOV_NAME>
    <LOV_GUID>91D022B15B12FFB9E053BB6B63587F0B</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select
msiv.concatenated_segments value,
msiv.description
from
mtl_system_items_vl msiv
where
msiv.organization_id=(
select
max(mp.master_organization_id) master_organization_id
from
mtl_parameters mp
where
mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) or
fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;) is null and
mp.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id)
) and
msiv.costing_enabled_flag=&apos;Y&apos;
order by
msiv.concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
