276:
277: -- If API returns error, display the error message
278: -- otherwise commit the transaction.
279:
280: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
281: IF g_debug = 1 THEN
282: debug('Error from IB api');
283: END IF;
284: RAISE fnd_api.g_exc_unexpected_error;
280: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
281: IF g_debug = 1 THEN
282: debug('Error from IB api');
283: END IF;
284: RAISE fnd_api.g_exc_unexpected_error;
285: ELSE
286: COMMIT;
287: IF g_debug = 1 THEN
288: debug('Reading updated in IB counter table');