The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT Locator_type
FROM mtl_secondary_inventories
WHERE secondary_inventory_name = subinventory
AND organization_id = p_organization_id;
SELECT location_control_code
FROM mtl_system_items_b_kfv
WHERE organization_id = p_organization_id
AND inventory_item_id = item_id;
SELECT stock_locator_control_code
FROM mtl_parameters
WHERE organization_id = p_organization_id ;
SELECT plant_ind, lab_ind
FROM gmd_parameters_hdr
WHERE organization_id = P_organization_id;
SELECT status_id,
grade_code
FROM mtl_lot_numbers
WHERE inventory_item_id = p_inventory_item_id
AND organization_id = p_organization_id
AND ((p_lot_number IS NULL) OR (lot_number = p_lot_number))
AND ((parent_lot_number = p_parent_lot_number)
OR (parent_lot_number IS NULL)
OR (p_parent_lot_number IS NULL));
SELECT status_code into x_lot_status_code
FROM mtl_material_statuses
WHERE status_id = p_lot_status_id;