19391610020166 - saving 19392470008626 - CURRENT Bompexpl.Exploder_Userexit SELECT DISTINCT TO_CHAR (LEVEL) item_level, msib.

segment1 PARENT, SYS_CONNECT_BY_PATH (msib2.segment1, '^') sequence_id, LPAD (' ', LEVEL * 2) || LEVEL order_Level, msib2.inventory_item_id child_inv_id, msib2.segment1 CHILD, bic.item_num level1, msib2.list_price_per_unit "Per Cost", (bic.component_quantity * msib2.list_price_per_unit) "ExtCost", msib2.description "PartDescription", bic.attribute2 ECO, msib.inventory_item_id ***_item_id, msib2.INVENTORY_ITEM_STATUS_CODE status, MSIB2.ITEM_TYPE, msib2.inventory_item_id part_item_id, bic.component_sequence_id comp_seq_id, cic.material_cost, cic.resource_cost, cic.overhead_cost, (cic.overhead_cost * bic.component_quantity) ovrhd_ext_cost, cic.item_cost, cic.material_cost material_cost_ly, (cic.material_cost * bic.component_quantity) material_ext_cost, cic.resource_cost resource_cost_ly, cic.overhead_cost overhead_cost_ly, cic.item_cost item_cost_ly, bic.attribute1 deliver_to, bic.attribute2 eco_num, bic.attribute3 eng_comments, bic.component_item_id child_item_id, bic.component_sequence_id child_component_id, msib2.segment1 CHILD, msib2.description child_item_desc, msib2.item_type child_item_type, TO_CHAR (bic.component_quantity) quantity, bic.effectivity_date start_date, bic.disable_date end_date, msib2.inventory_item_status_code item_status_code, msib2.primary_unit_of_measure child_uom_code FROM bom_inventory_components bic, bom_bill_of_materials bom, mtl_system_items_b msib, mtl_system_items_b msib2, BOM_REFERENCE_DESIGNATORS BRD, cst_item_costs cic, CST_COST_TYPES cct WHERE bic.bill_sequence_id = bom.bill_sequence_id AND bom.assembly_item_id = msib.inventory_item_id AND bom.organization_id = msib.organization_id AND bic.component_item_id = msib2.inventory_item_id AND bom.organization_id = msib2.organization_id AND bom.organization_id = :orgt_id

bomfg_bom_components bfg.mtl_system_items msi2 where msi.inventory_item_id = bfg.use a sub select to get it for all the Fg's connect by prior component_item_name = bill_item_name ORDER BY BILL_SEQUENCE_ID .AND bom. CONNECT_BY_ROOT msi.cost_type_id = 1 AND cic. CONNECT_BY_ROOT bill_item_name FG_ITEM.COMPONENT_ITEM_ID AND cic.INVENTORY_ITEM_ID = msib2.DESCRIPTION.ORGANIZATION_ID = bfg.ORGANIZATION_ID = 477 and msi.organization_id = bom. msi2.mtl_system_items msi.organization_id AND cic.ORGANIZATION_ID and msi. QUANTITY_PER_ASSEMBLY.SEGMENT1 = :item CONNECT BY NOCYCLE PRIOR bic.component_sequence_id(+) AND cic. apps. msi2.COMPONENT_ITEM_ID AND(end_effective_date IS NULL OR end_effective_date >= SYSDATE .inventory_item_id = bfg.component_sequence_id = brd.COST_TYPE_ID AND cct.alternate_bom_designator IS NULL AND bic.inventory_item_id = BIC. component_item_name.ORGANIZATION_ID = msi2. supply_locator_name. end_effective_date from apps.cost_type = 'Frozen' START WITH msib.ITEM_TYPE CMP_TYPE.PLANNER_CODE COMPONENT_PLANNER. msi2.ASSEMBLY_ITEM_ID and msi2.component_item_id = msib.inventory_item_id ORDER BY sequence_id ------------------------------------Correct Query -------------select CONNECT_BY_ROOT msi. . bfg. CONNECT_BY_ROOT COMPONENT_SEQUENCE_ID.WIP_SUPPLY_TYPE.ORGANIZATION_ID and msi.1) start with bill_item_name = '0250070500' --.INVENTORY_ITEM_ID AND cic. BILL_SEQUENCE_ID. apps.PLANNER_CODE FG_PLANNER.COST_TYPE_ID = cct.DESCRIPTION FG_DESCRIPTION.