508:
509: IF (C%NOTFOUND) THEN
510: CLOSE C;
511: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
512: app_exception.raise_exception;
513: END IF;
514: CLOSE C;
515:
516: -- The target column should be nullable, but it isn't. To get around this
526: RETURN;
527: ELSE
528:
529: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
530: app_exception.raise_exception;
531: END IF;
532:
533: END Lock_Record;
534: ----------------------------------------------------------------------------