867: );
868: END IF;
869:
870: fnd_message.set_name ('INV', 'INV_INVALID_SERIAL_RANGE');
871: fnd_msg_pub.ADD;
872: RAISE fnd_api.g_exc_unexpected_error;
873: END IF;
874:
875: l_next_serial := l_msni_rs_serials_csr.fm_serial_number;
908: );
909: END IF;
910:
911: fnd_message.set_name ('INV', 'INVALID_SERIAL_NUMBER');
912: fnd_msg_pub.ADD;
913: RAISE fnd_api.g_exc_unexpected_error;
914: END IF;
915: END LOOP;
916: END LOOP;
952: );
953: END IF;
954:
955: fnd_message.set_name ('INV', 'INV_INVALID_SERIAL_RANGE');
956: fnd_msg_pub.ADD;
957: RAISE fnd_api.g_exc_unexpected_error;
958: END IF;
959:
960: l_next_serial := l_msni_st_serials_csr.fm_serial_number;
1006: );
1007: END IF;
1008:
1009: fnd_message.set_name ('INV', 'INVALID_SERIAL_NUMBER');
1010: fnd_msg_pub.ADD;
1011: RAISE fnd_api.g_exc_unexpected_error;
1012: END IF;
1013: END LOOP;
1014: END LOOP;
2226:
2227: END IF;
2228:
2229: /* FND_MESSAGE.SET_NAME('INV', 'BAD_INPUT_ARGUMENTS');
2230: FND_MSG_PUB.ADD;
2231: RAISE FND_API.G_EXC_ERROR; */
2232:
2233: /*----------------------------------------------------------+
2234: | retrieving information
3038: -- Fetch all the error messages from the stack and log them.
3039: -- Update the MTI with last error message only, since the error messages can be redundant.
3040: FOR i IN 1 .. x_msg_count
3041: LOOP
3042: x_msg_data := fnd_msg_pub.get (i, 'F');
3043:
3044: IF (l_debug = 1)
3045: THEN
3046: inv_log_util.TRACE
3083: -- Fetch all the error messages from the stack and log them.
3084: -- Update the MTI with last error message only, since the error messages can be redundant.
3085: FOR i IN 1 .. x_msg_count
3086: LOOP
3087: x_msg_data := fnd_msg_pub.get (i, 'F');
3088:
3089: IF (l_debug = 1)
3090: THEN
3091: inv_log_util.TRACE
3130: -- Fetch all the error messages from the stack and log them.
3131: -- Update the MTI with last error message only, since the error messages can be redundant.
3132: FOR i IN 1 .. x_msg_count
3133: LOOP
3134: x_msg_data := fnd_msg_pub.get (i, 'F');
3135:
3136: IF (l_debug = 1)
3137: THEN
3138: inv_log_util.TRACE
4408: x_return_status := fnd_api.g_ret_sts_error;
4409:
4410: /* Bug 3656824
4411: Replaced the hard coded message with the last message in the error stack from WIP validation*/
4412: fnd_msg_pub.count_and_get (p_count => x_msg_count, p_data => x_msg_data);
4413: RETURN -1;
4414: END;
4415: ELSE
4416: IF (l_debug = 1)
5692: END IF;
5693: FND_MESSAGE.set_name('INV','INV_INT_PROCCODE');
5694: l_error_code := FND_MESSAGE.get;
5695: FND_MESSAGE.set_name('INV','INV_ORG_QUANTITY');
5696: FND_MSG_PUB.add;
5697: l_error_exp := FND_MESSAGE.get;
5698: RAISE fnd_api.g_exc_error;
5699: END IF;
5700: