The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT exception_id, exception_name, status
FROM wsh_exceptions
WHERE trip_id = v_trip_id;
SELECT exception_id, exception_name, status
FROM wsh_exceptions
WHERE trip_stop_id = v_stop_id;
SELECT exception_id, exception_name, status
FROM wsh_exceptions
WHERE delivery_id = v_delivery_id;
SELECT exception_id, exception_name, status
FROM wsh_exceptions
WHERE delivery_detail_id = v_detail_id;
SELECT exception_id, exception_name, status
FROM WSH_EXCEPTIONS
WHERE delivery_detail_id = v_del_detail_id;
x_updated_rows OUT NOCOPY NUMBER
) IS
-- To get the current status of the Exception
CURSOR get_status IS
SELECT status
FROM wsh_exceptions
WHERE exception_id = p_exception_id ;
x_updated_rows := 0;
x_updated_rows := 0;
x_updated_rows := l_success_count;
SELECT trip_stop_id
FROM wsh_xc_trip_stops_v
WHERE trip_id = c_trip_id
AND location_code = p_exception_rec.stop_location_id;
SELECT wdd.delivery_detail_id, wda.delivery_id, wda.delivery_assignment_id
FROM wsh_delivery_details wdd, wsh_delivery_assignments_v wda
WHERE wdd.delivery_detail_id = wda.delivery_detail_id
AND ((c_delivery_id is null) or (wda.delivery_id =c_delivery_id))
AND wdd.delivery_detail_id = p_exception_rec.delivery_detail_id
AND wdd.container_flag IN ('N', 'Y'); -- R12 MDC
SELECT delivery_detail_id
FROM wsh_delivery_details
WHERE container_flag = 'Y'
AND container_name = c_container_name
AND delivery_detail_id =
nvl(p_exception_rec.delivery_detail_id, delivery_detail_id);
SELECT delivery_id
FROM wsh_new_deliveries
WHERE delivery_id = p_delivery_id
AND delivery_type = 'STANDARD';
SELECT exception_name
FROM wsh_exception_definitions_v
WHERE exception_name = p_exception_rec.exception_name;
SELECT exception_name
FROM wsh_exception_definitions_tl
WHERE exception_name = p_exception_rec.exception_name
AND language = userenv('LANG');
l_updated_rows NUMBER;
x_updated_rows => l_updated_rows
);
FND_MESSAGE.SET_NAME('WSH','WSH_NO_OF_RECS_UPDATED');
FND_MESSAGE.SET_TOKEN('NO_OF_RECS',l_updated_rows);