涉及到物料类别和物料类别代码段 select msi.organization_id, msi.inventory_item_id, msi.segment1, icat.category_set_id, mcb.category_id, mcb.segment1, mcb.segment2, mct.description, mcst.CATEGORY_SET_NAME from mtl_system_items_b msi, mtl_item_categories icat, MTL_CATEGORIES_B mcb, MTL_CATEGORIES_TL mct, MTL_CATEGORY_SETS_TL MCST where msi.inventory_item_id = icat.inventory_item_id and msi.organization_id = icat.organization_id and icat.category_id = mcb.category_id and mcb.CATEGORY_ID = mct.CATEGORY_ID and mct.LANGUAGE = userenv('LANG') and icat.CATEGORY_SET_ID = MCSt.CATEGORY_SET_ID and mcst.LANGUAGE = userenv('LANG') and mcst.CATEGORY_SET_NAME ='EMR Inventory Global' ; |