248: open c;
249: fetch c into tlinfo;
250: if (c%notfound) then
251: close c;
252: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
253: fnd_msg_pub.add;
254: raise fnd_api.g_exc_unexpected_error;
255: end if;
256: close c;
254: raise fnd_api.g_exc_unexpected_error;
255: end if;
256: close c;
257: if (tlinfo.object_version_number <> p_reasons_all_rec.object_version_number) then
258: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
259: fnd_msg_pub.add;
260: raise fnd_api.g_exc_unexpected_error;
261: end if;
262: l_reason := p_reasons_all_rec.REASON;