823: OPEN C;
824: FETCH C INTO Recinfo;
825: IF (c%notfound) THEN
826: CLOSE C;
827: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
828: app_exception.raise_exception;
829: END IF;
830: CLOSE C;
831: IF ( recinfo.target_amount = x_target_amount) THEN
830: CLOSE C;
831: IF ( recinfo.target_amount = x_target_amount) THEN
832: RETURN;
833: ELSE
834: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
835: app_exception.raise_exception;
836: END IF;
837: -- End Lock Record.
838: END lock_record;