ood.organization_name ,msib.segment1 Item_Code ,replace(msib.description,chr(10),' ') item_description ,msib.

primary_uom_code UOM ,decode(msib.ITEM_TYPE,null,null,(select flv.MEANING from fnd_lookup_values flv where flv.LOOKUP_TYPE='ITEM_TYPE' and flv.LOOKUP_CODE=msib.ITEM_TYPE and flv.LANGUAGE = userenv('LANG'))) item_type ,decode(inventory_item_flag,'Y','Yes','No') inventory_item_flag ,decode(msib.STOCK_ENABLED_FLAG,'Y','Yes','No') stockable ,decode(msib.MTL_TRANSACTIONS_ENABLED_FLAG,'Y','Yes','No') transactable ,decode(msib.RESERVABLE_TYPE,1,'Yes','No') reservable ,decode(msib.LOT_CONTROL_CODE,1,'No Control',2,'Full Control') lot_control ,decode(serial_number_control_code,1,'No Control',2,'Predefined',5,'At Receipt', 6,'At Sales Order Issue') Serial_generation ,msib.AUTO_SERIAL_ALPHA_PREFIX serial_starting_prefix ,msib.START_AUTO_SERIAL_NUMBER serial_starting_number ,decode(msib.CYCLE_COUNT_ENABLED_FLAG,'N','No','Y','Yes') cycle_count_enabled ,decode(msib.costing_enabled_flag,'N','No','Y','Yes') Costing_Flag ,decode(msib.inventory_asset_flag,'N','No','Y','Yes') inventory_asset_flag ,(select segment1||'-'||segment2||'-'||segment3||'-'||segment4||'-'||segment5||' -'||segment6||'-'||segment7--||'-'||segment8||'-'||segment9 from gl_code_combinations where code_combination_id =msib.COST_OF_SALES_ACCOUNT) cost_of_goods_sold_account ,decode(msib.PURCHASING_ITEM_FLAG,'N','No','Y','Yes') purchased ,msib.list_price_per_unit Unit_Price ,(select segment1||'-'||segment2 from FA_CATEGORIES_VL where category_id = msib. asset_category_id) Asset_Category ,(select segment1||'-'||segment2||'-'||segment3||'-'||segment4||'-'||segment5||' -'||segment6||'-'||segment7--||'-'||segment8||'-'||segment9 from gl_code_combinations where code_combination_id =msib.ENCUMBRANCE_ACCOUNT) e ncumbrance_account ,decode(msib.RECEIPT_REQUIRED_FLAG,'N','No','Y','Yes') invoice_match_receipt_req d ,decode(msib.TAXABLE_FLAG,'N','No','Y','Yes') purchasing_taxable_flag ,msib.PURCHASING_TAX_CODE ,(select segment1||'-'||segment2||'-'||segment3||'-'||segment4||'-'||segment5||' -'||segment6||'-'||segment7--||'-'||segment8||'-'||segment9 from gl_code_combinations where code_combination_id =msib.EXPENSE_ACCOUNT) expen se_account ,micv.CATEGORY_SET_NAME ,micv.CATEGORY_CONCAT_SEGS INV_ITEM_CATEGORY ,decode(msib.CUSTOMER_ORDER_FLAG,'N','No','Y','Yes') customer_ordered ,decode(msib.INTERNAL_ORDER_FLAG,'N','No','Y','Yes') internal_ordered ,msib.tax_code out_tax_classf_code ,decode(msib.INVOICEABLE_ITEM_FLAG,'N','No','Y','Yes') invoiceable ,decode(msib.SHIPPABLE_ITEM_FLAG,'N','No','Y','Yes') shippable_flag ,(select segment1||'-'||segment2||'-'||segment3||'-'||segment4||'-'||segment5||' -'||segment6||'-'||segment7--||'-'||segment8||'-'||segment9 from gl_code_combinations where code_combination_id =msib.SALES_ACCOUNT) sales_a ccount ,decode(msib.lot_divisible_flag,'N','No','Y','Yes') lot_divisible ,decode(msib.lot_split_enabled,'N','No','Y','Yes') lot_split ,msib.ATTRIBUTE_CATEGORY ,decode(msib.ATTRIBUTE_CATEGORY,'Asset Category',(select segment1||'-'||segment2 from FA_CATEGORIES_VL where to_char(category_id) = msib.attribute1)) asset_cate gory_dff ,msib.ATTRIBUTE1 ,msib.ATTRIBUTE2,msib.ATTRIBUTE3,msib.attribute4,msib.ATTRIBUTE 5,msib.ATTRIBUTE6,msib.ATTRIBUTE7,msib.ATTRIBUTE8,msib.ATTRIBUTE9 ,MSIB.ATTRIBUTE10,MSIB.ATTRIBUTE11,MSIB.ATTRIBUTE12,MSIB.ATTRIBUTE13,MSIB.ATTRIB UTE14,MSIB.ATTRIBUTE15

creation_date) >= '27-Sep-2013' --and msib.ATTRIBUTE22.MSIB.ATTRIBUTE23.ATTRIB UTE26.ATTRIBUTE27 . org_organization_definitions ood.MSIB.ORGANIZATION_CODE = 'UMO' --and msib.ATTRIBUTE25.ATTRIBUTE17.ATTRIBUTE24.organization_id AND micv.segment1 <= '100007828' AND OOD.ATTRIBUTE30 .ATTRIBUTE16..INVENTORY_ITEM_ID AND MICV. 1 .ORGANIZATION_ID --AND trunc(msib.ATTRIBUTE29.ATTRIB UTE20.MSIB.MSIB.MSIB.MSIB.MSIB.ATTRIBUTE19.MSIB.ATTRIBUTE28.MSIB.MSIB.MSIB.MSIB.INVENTORY_ITEM_ID=msib.ATTRIBUTE18. mtl_item_categories_v micv WHERE ood.ORGANIZATION_ID=OOD.MSIB.MSIB.INVENTORY_ITEM_STATUS_CODE = 'Active'--commented by monica order by 2.segment1 >= '100007812' and msib.MSIB.ATTRIBUTE21 .INVENTORY_ITEM_STATUS_CODE --Added by Monica while changing query for fetc hing the Inactive recods FROM mtl_system_items_b msib.msib.organization_id = msib.

Sign up to vote on this title
UsefulNot useful