The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT WDJ.NET_QUANTITY,WDJ.PRIMARY_ITEM_ID
INTO x_available_quantity,l_item_id
FROM WIP_DISCRETE_JOBS WDJ
WHERE WDJ.WIP_ENTITY_ID = p_supply_demand_header_id;
select primary_uom_code
into x_source_primary_uom_code
from mtl_system_items
where inventory_item_id=l_item_id --p_item_id
and organization_id=p_organization_id;
select
wdj.scheduled_completion_date,
wdj.net_quantity,
wdj.status_type
into
l_scheduled_completion_date,
l_net_qty,
l_status_type
from wip_entities we,
wip_discrete_jobs wdj
where wdj.wip_entity_id = p_supply_demand_header_id
and we.wip_entity_id = wdj.wip_entity_id
and wdj.job_type in (1,3)
and we.entity_type = 5;
l_msg_tokens.delete;
l_msg_tokens.delete;
l_msg_tokens.delete;