600:
601: IF l_tmp_secondary_quantity = -99999 THEN
602: -- conversion failed
603: fnd_message.set_name('INV', 'CAN-NOT-CONVERT-TO-SECOND-UOM'); -- INVCONV NEW MESSAGE
604: fnd_msg_pub.ADD;
605: l_return_status := fnd_api.g_ret_sts_error;
606: RAISE fnd_api.g_exc_error;
607: END IF;
608: p_trolin_rec.secondary_quantity := l_tmp_secondary_quantity; -- INVCONV
621: WHEN OTHERS THEN
622: x_return_status := fnd_api.g_ret_sts_unexp_error;
623:
624: --
625: /* IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
626: fnd_msg_pub.add_exc_msg(g_pkg_name, 'Convert_Quantity');
627: END IF; */
628: END convert_quantity;
629:
622: x_return_status := fnd_api.g_ret_sts_unexp_error;
623:
624: --
625: /* IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
626: fnd_msg_pub.add_exc_msg(g_pkg_name, 'Convert_Quantity');
627: END IF; */
628: END convert_quantity;
629:
630:
657: -- Check number of iterations.
658:
659: IF p_iteration > INV_GLOBALS.G_MAX_DEF_ITERATIONS THEN
660:
661: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_ERROR)
662: THEN
663:
664: FND_MESSAGE.SET_NAME('INV','OE_DEF_MAX_ITERATION');
665: FND_MSG_PUB.Add;
661: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_ERROR)
662: THEN
663:
664: FND_MESSAGE.SET_NAME('INV','OE_DEF_MAX_ITERATION');
665: FND_MSG_PUB.Add;
666:
667: END IF;
668:
669: RAISE FND_API.G_EXC_ERROR;