CAC Items Without This Level Material Overhead

Description

Categories
Enginatics
Repository
GitHub
Report to show item costs which do not have this level material overhead, for any cost type. For one or more inventory organizations.

Parameters:
===========
Cost Type: enter the cost type(s) you wish to report (mandatory).
Make or Buy: enter Buy, Make or leave blank to get all items (optional).
Based on Rollup: enter Yes to get the rolled up items, No to get the non-rolled-up items (optional).
Basis Type: enter the basis type you wish to report, such as Item, Lot, Res Units, Res Value, or Ttl Value (optional).
Item Status to Exclude: enter the item status you wish to exclude, defaulted to Inactive (optional).
Category Set 1: the first item category set to report, typically the Cost or Product Line Category Set (optional).
Category Set 2: the second item category set to report, typically the Inventory Category Set (optional).
Category Set 3: the third item category set to report (optional).
Item Number: enter the item numbers you wish to report (optional).
Organization Code: enter the specific inventory organization(s) you wish to report (optional).
Operating Unit: enter the specific operating unit(s) you wish to report (optional).
Ledger: enter the specific ledger(s) you wish to report (optional).

/* +=============================================================================+
-- | Copyright 2024 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 ([email protected])
-- |
-- | Version Modified on Modified by Description
-- | ======= =========== ============== =========================================
-- | 1.0 15 Nov 2024 Douglas Volz Initial Coding based on the Item Cost Summary Report.
-- | 1.1 08 Dec 2024 Douglas Volz Added Ledger and Operating Unit security profiles.
-- | 1.2 23 Oct 2026 Andy Haack Rebuilt to the Blitz Report SQL standards.
-- +=============================================================================+*/

SQL 81 lines

Parameters 11

ParameterTypeList of values SQL
Cost TypeLOV
cct.cost_type=:p_cost_type
Make or BuyLOV
msiv.planning_make_buy_code=to_number(xxen_util.lookup_code(:p_make_buy,'MTL_PLANNING_MAKE_BUY',700))
Based on RollupLOV
cic.based_on_rollup_flag=to_number(xxen_util.lookup_code(:p_based_on_rollup,'CST_BONROLLUP_VAL',700))
Item Status to ExcludeLOV
misv.inventory_item_status_code_tl<>:p_item_status_to_exclude
Category Set 1LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>') sql_text from dual
Category Set 2LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>') sql_text from dual
Category Set 3LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>') sql_text from dual
Item NumberLOV
msiv.concatenated_segments=:p_item_number
Organization CodeLOV
mp.organization_code=:p_org_code
Operating UnitLOV
haouv_ou.name=:p_operating_unit
LedgerLOV
gl.name=:p_ledger