SELECT msib.inventory_item_id,
msib.organization_id,
mcs.CATEGORY_SET_NAME,
RTRIM (
mc.segment1
|| '|'
|| mc.segment2
|| '|'
|| mc.segment3
|| '|'
|| mc.segment4,
'|')
category,
msib.segment1 Inv_Item,
msib.description
FROM mtl_system_items_b msib,
mtl_item_categories mic,
mtl_categories mc,
MTL_CATEGORY_SETS mcs
WHERE 1 = 1
AND msib.segment1 = :P_Item
AND mic.inventory_item_id = msib.inventory_item_id
AND mic.organization_id = msib.organization_id
AND mic.organization_id = 28
AND mc.CATEGORY_ID = mic.CATEGORY_ID
AND mc.STRUCTURE_ID = mcs.STRUCTURE_ID
AND mcs.CATEGORY_SET_ID = mic.CATEGORY_SET_ID
ORDER BY 1
;
No comments:
Post a Comment