732: --Start of Comments
733: --Name: add_error_to_msg_list
734: --Function:
735: -- Adds the given error message to the standard API message list and
736: -- to the FND log, if enabled.
737: --End of Comments
738: -------------------------------------------------------------------------------
739: PROCEDURE add_error_to_msg_list (
740: p_api_name VARCHAR2,
745: FND_MESSAGE.set_name ('PO', 'PO_GENERIC_ERROR');
746: FND_MESSAGE.set_token ('ERROR_TEXT', p_message);
747: FND_MSG_PUB.add;
748:
749: -- Also add it to the FND log, if enabled.
750: IF (g_fnd_debug = 'Y') THEN
751: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
752: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
753: p_message);
747: FND_MSG_PUB.add;
748:
749: -- Also add it to the FND log, if enabled.
750: IF (g_fnd_debug = 'Y') THEN
751: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
752: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
753: p_message);
754: END IF;
755: END IF;
748:
749: -- Also add it to the FND log, if enabled.
750: IF (g_fnd_debug = 'Y') THEN
751: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
752: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
753: p_message);
754: END IF;
755: END IF;
756: END add_error_to_msg_list;