16: Open c_inv;
17: Fetch c_inv into recinfo;
18: IF (c_inv%notfound) then
19: close c_inv;
20: fnd_message.set_name('FND','FORM_RECORD_DELETED');
21: app_exception.raise_exception;
22:
23: End if;
24: Close c_inv;
27: (recinfo.inventory_id = X_inventory_id)
28: ) then
29: return;
30: else
31: FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_CHANGED');
32: APP_EXCEPTION.Raise_Exception;
33: end if;
34: END Lock_Row;
35: