[Home] [Help]
650: --Start of Comments
651: --Name: add_error_to_msg_list
652: --Function:
653: -- Adds the given error message to the standard API message list and
654: -- to the FND log, if enabled.
655: --End of Comments
656: -------------------------------------------------------------------------------
657: PROCEDURE add_error_to_msg_list (
658: p_api_name VARCHAR2,
663: FND_MESSAGE.set_name ('PO', 'PO_GENERIC_ERROR');
664: FND_MESSAGE.set_token ('ERROR_TEXT', p_message);
665: FND_MSG_PUB.add;
666:
667: -- Also add it to the FND log, if enabled.
668: IF (g_fnd_debug = 'Y') THEN
669: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
670: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
671: p_message);
665: FND_MSG_PUB.add;
666:
667: -- Also add it to the FND log, if enabled.
668: IF (g_fnd_debug = 'Y') THEN
669: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
670: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
671: p_message);
672: END IF;
673: END IF;
666:
667: -- Also add it to the FND log, if enabled.
668: IF (g_fnd_debug = 'Y') THEN
669: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
670: FND_LOG.string( FND_LOG.LEVEL_ERROR, g_module_prefix || p_api_name,
671: p_message);
672: END IF;
673: END IF;
674: END add_error_to_msg_list;