The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT itm.receiving_routing_id,
itm.location_control_code, itm.serial_number_control_code
FROM mtl_system_items_b itm
WHERE itm.inventory_item_id = p_item_id
AND itm.organization_id = p_org_id;
SELECT rcp.receiving_routing_id
FROM rcv_parameters rcp
WHERE organization_id = p_org_id;
SELECT mip.routing_header_id
FROM mtl_interorg_parameters mip
WHERE from_organization_id = p_from_org
AND to_organization_id = p_to_org;
SELECT DECODE (itm.return_inspection_requirement,
1, g_inspection_routing,
null
),
itm.location_control_code, itm.serial_number_control_code
FROM mtl_system_items_b itm
WHERE itm.inventory_item_id = p_item_id
AND itm.organization_id = p_org_id;
EXECUTE IMMEDIATE 'SELECT nvl(RMA_RECEIPT_ROUTING_ID, '||g_standard_routing ||')'
|| 'FROM RCV_PARAMETERS WHERE organization_id =:1'
--|| p_inv_org_id --4277749 TBD
--4277749 changed the exec to use using clause
INTO l_routing_header_id using p_inv_org_id;
SELECT 'x'
FROM mtl_secondary_inventories
WHERE secondary_inventory_name = p_subinv
AND organization_id = p_org_id;
SELECT Current_status
FROM mtl_serial_numbers
WHERE -- current_organization_id = p_org_id
--AND
inventory_item_id = p_inventory_item_id
AND serial_number = p_serial_number;
SELECT header_interface_id
FROM rcv_headers_interface
WHERE GROUP_ID = p_group_id;
SELECT interface_transaction_id
FROM rcv_transactions_interface
WHERE GROUP_ID = p_group_id;
SELECT column_name, error_message
FROM po_interface_errors
WHERE (interface_header_id = p_hdr_intf_id OR
interface_line_id = p_line_intf_id) ;
SELECT oe_order_header_id,
oe_order_line_id
FROM rcv_transactions_interface
WHERE interface_transaction_id = p_interface_transaction_id;
SELECT hr.employee_id
FROM fnd_user fnd, per_employees_current_x hr
WHERE fnd.user_id = p_user_id
AND fnd.employee_id = hr.employee_id
AND ROWNUM = 1;
SELECT SHIP_FROM_ORG_ID
FROM OE_ORDER_LINES_ALL
WHERE LINE_ID = p_order_line_id;
SELECT MAX (category_id)
FROM mtl_item_categories
WHERE inventory_item_id = p_item_id
AND organization_id = p_org_id
AND category_set_id = p_category_set_id;
SELECT mdsv.category_set_id
FROM mtl_default_sets_view mdsv
WHERE mdsv.functional_area_id = 2;
SELECT primary_unit_of_measure
FROM mtl_item_flexfields
WHERE inventory_item_id = p_item_id AND organization_id = p_org_id;
SELECT lot_control_code, serial_number_control_code
FROM mtl_system_items
WHERE organization_id = p_org_id AND inventory_item_id = p_item_id;
SELECT unit_of_measure
FROM mtl_units_of_measure_vl
WHERE uom_code = p_uom_Code ;