Returning error from Order capture user hooks for iStore orders
Hi,
I am using order capture user hooks (ASO_QUOTE_CUHK) to return an error back to iStore UI during checkout as detailed in note:373923.1
I am using the submit_quote_pre procedure in ASO_QUOTE_CUHK to check for a condition before order is placed from iStore. The problem is that instead of shown an error, the system returns a framework exception (Application error) instead of showing the message from FND Message stack. The code that I am using to return error is
IF V_ERROR_COUNT>0 THEN
FND_MESSAGE.SET_NAME('IBE', 'CAP_IBE_PRODUCT_ERROR') ;
FND_MESSAGE.SET_TOKEN('ERROR1',V_RESTRICT_ERROR,FALSE);
I am using order capture user hooks (ASO_QUOTE_CUHK) to return an error back to iStore UI during checkout as detailed in note:373923.1
I am using the submit_quote_pre procedure in ASO_QUOTE_CUHK to check for a condition before order is placed from iStore. The problem is that instead of shown an error, the system returns a framework exception (Application error) instead of showing the message from FND Message stack. The code that I am using to return error is
IF V_ERROR_COUNT>0 THEN
FND_MESSAGE.SET_NAME('IBE', 'CAP_IBE_PRODUCT_ERROR') ;
FND_MESSAGE.SET_TOKEN('ERROR1',V_RESTRICT_ERROR,FALSE);
0