The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'Y' into item_in_org
from mtl_system_items
where inventory_item_id = p_item
and organization_id = l_warehouse;
select msi.purchasing_enabled_flag
into purchasable
from mtl_system_items msi
where msi.inventory_item_id = p_item
and msi.organization_id = FND_PROFILE.VALUE_SPECIFIC('SO_ORGANIZATION_ID');
select CA.action_id into
purchase_action
from
so_cycle_actions CA
where CA.action_id = PURCHASERELEASE
and CA.cycle_id = p_cycle_id
and Nvl(CA.CHANGE_CODE,'ADDED') <> 'DELETED';
select CA.action_id into
pick_release_action
from
so_cycle_actions CA
where CA.action_id = PICKRELEASE
and CA.cycle_id = p_cycle_id
and Nvl(CA.CHANGE_CODE,'ADDED') <> 'DELETED';