25: ELSE
26: CLOSE get_new_id;
27: fnd_message.set_name('SQLGL', 'GL_ERROR_GETTING_UNIQUE_ID');
28: fnd_message.set_token('SEQUENCE', 'GL_JE_POSTING_S');
29: app_exception.raise_exception;
30: END IF;
31: EXCEPTION
32: WHEN app_exceptions.application_exception THEN
33: RAISE;
28: fnd_message.set_token('SEQUENCE', 'GL_JE_POSTING_S');
29: app_exception.raise_exception;
30: END IF;
31: EXCEPTION
32: WHEN app_exceptions.application_exception THEN
33: RAISE;
34: WHEN OTHERS THEN
35: fnd_message.set_name('SQLGL', 'GL_UNHANDLED_EXCEPTION');
36: fnd_message.set_token('PROCEDURE', 'gl_je_batches_post_pkg.get_unique_id');
203: ) then
204: return;
205: else
206: FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_CHANGED');
207: APP_EXCEPTION.RAISE_EXCEPTION;
208: end if;
209: END Lock_Row;
210:
211: