Sei sulla pagina 1di 2

select msib.segment1, msib.description,PRIMARY_UOM_CODE, (SELECT CONVERSION_RATE FROM MTL_UOM_CONVERSIONS MUC WHERE MUC.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID AND ROWNUM=1) CONVERSION_RATE, mc.segment1||'.'||mc.segment2||'.'||mc.segment3,mc.

description, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' PACK STYLE' AND ELEMENT_SEQUENCE=10 AND ROWNUM=1) PACK_STYLE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' PACK TYPE'AND ELEMENT_SEQUENCE=20 AND ROWNUM=1) PACK_TYPE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' PACK SIZE'AND ELEMENT_SEQUENCE=30 AND ROWNUM=1) PACK_SIZE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' GENERIC NAME'AND ELEMENT_SEQUENCE=40 AND ROWNUM=1) GENERIC_NAME, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' BRAND NAME' AND ELEMENT_SEQUENCE=50 AND ROWNUM=1) BRABD_NAME, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' STRENGTH' AND ELEMENT_SEQUENCE=60 AND ROWNUM=1) SREGNGTH, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' FORM' AND ELEMENT_SEQUENCE=70 AND ROWNUM=1) FORMS, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name = 'REGION'AND ELEMENT_SEQUENCE=80 AND ROWNUM=1) REGION, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name = 'CUSTOMER'AND ELEMENT_SEQUENCE=90 AND ROWNUM=1) CUSTOMER, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name = 'COUNTRY/REG' AND ELEMENT_SEQUENCE=100 AND ROWNUM=1) COUNTRY_REG, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name = 'GFOD REG'AND ELEMENT_SEQUENCE=110 AND ROWNUM=1) GFOD_REG from mtl_item_categories mic, mtl_system_items_b msib, mtl_categories mc where msib.inventory_item_id = mic.inventory_item_id AND MSIB.ORGANIZATION_ID=88 AND MIC.ORGANIZATION_ID=88 --AND MIC.CATEGORY_ID =1123 and Msib.lot_control_code ='2' and mc.category_id = mic.category_id and (msib.segment1 like 'F%') and mc.STRUCTURE_ID = 50355

----------------------select msib.segment1, msib.description,PRIMARY_UOM_CODE, (SELECT CONVERSION_RATE FROM MTL_UOM_CONVERSIONS MUC WHERE MUC.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID AND ROWNUM=1) CONVERSION_RATE, mc.segment1||'.'||mc.segment2||'.'||mc.segment3,mc.description, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name ='

PACK STYLE') PACK_STYLE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' PACK TYPE') PACK_TYPE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' PACK SIZE') PACK_SIZE, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' GENERIC NAME') GENERIC_NAME, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' BRAND NAME') BRAND_NAME, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' STRENGTH') STRENGTH, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' FORM') FORMS, (select element_value FROM MTL_DESCR_ELEMENT_VALUES_V aa where aa.item_catalog_g roup_id = 2 and aa.inventory_item_id= msib.inventory_item_id and element_name =' REGION') REGION, (select long_description from mtl_system_items_tl msit where msit.organization_i d=88 and msit.inventory_item_id=msib.inventory_item_id ) long_description from mtl_item_categories mic, mtl_system_items msib, mtl_categories mc where msib.inventory_item_id = mic.inventory_item_id AND MSIB.ORGANIZATION_ID=88 AND MIC.ORGANIZATION_ID=88 --AND MIC.CATEGORY_ID =1123 and Msib.lot_control_code ='2' and mc.category_id = mic.category_id and (msib.segment1 like 'F%') and mc.STRUCTURE_ID = 50355

US ITEMS -----------select msib.segment1, msib.description,PRIMARY_UOM_CODE, mc.segment1||'.'||mc.segment2||'.'||mc.segment3,mc.description from mtl_item_categories mic, mtl_system_items_b msib, mtl_categories mc where msib.inventory_item_id = mic.inventory_item_id AND MSIB.ORGANIZATION_ID=121 AND MIC.ORGANIZATION_ID=121 --AND MIC.CATEGORY_ID =1123 and Msib.lot_control_code ='2' and mc.category_id = mic.category_id --and (msib.segment1 like 'F%') and mc.STRUCTURE_ID = 50408

Potrebbero piacerti anche