21:
22: /*-----------------------------------------------------
23: * FUNCTION concat_msg_stack
24: * ----------------------------------------------------
25: * Pop
27: *
28: * If there are not enough messages in the stack, then
29: * all the messages are popped.
869: THEN
870: -- Ame had an exception whilst generating the approver
871: -- list.
872: x_return_status := FND_API.G_RET_STS_ERROR;
873: FND_MESSAGE.Set_Name('FUN','FUN_AME_EXECUTION_EXCEPTION');
874: x_error_message := FND_MESSAGE.GET;
875:
876: RETURN;
877: END IF;
870: -- Ame had an exception whilst generating the approver
871: -- list.
872: x_return_status := FND_API.G_RET_STS_ERROR;
873: FND_MESSAGE.Set_Name('FUN','FUN_AME_EXECUTION_EXCEPTION');
874: x_error_message := FND_MESSAGE.GET;
875:
876: RETURN;
877: END IF;
878:
980: approverIn => l_invalid_usr_rec);
981: END LOOP;
982:
983: x_return_status := FND_API.G_RET_STS_ERROR;
984: FND_MESSAGE.Set_Name('FUN','FUN_AME_INVALID_USERS');
985: FND_MESSAGE.Set_Token ('USER_LIST',l_invalid_users);
986: x_error_message := FND_MESSAGE.GET;
987:
988: ELSE
981: END LOOP;
982:
983: x_return_status := FND_API.G_RET_STS_ERROR;
984: FND_MESSAGE.Set_Name('FUN','FUN_AME_INVALID_USERS');
985: FND_MESSAGE.Set_Token ('USER_LIST',l_invalid_users);
986: x_error_message := FND_MESSAGE.GET;
987:
988: ELSE
989: -- Check if the ADHOC role already exists
982:
983: x_return_status := FND_API.G_RET_STS_ERROR;
984: FND_MESSAGE.Set_Name('FUN','FUN_AME_INVALID_USERS');
985: FND_MESSAGE.Set_Token ('USER_LIST',l_invalid_users);
986: x_error_message := FND_MESSAGE.GET;
987:
988: ELSE
989: -- Check if the ADHOC role already exists
990: IF l_role_exists = 'Y'
1028: SQLERRM || ' Error occurred '||
1029: 'for transaction ' || p_transaction_id);
1030: END IF;
1031:
1032: FND_MESSAGE.Set_Name('FUN','FUN_AME_UNEXPECTED_EXCEPTION');
1033: x_error_message := FND_MESSAGE.GET;
1034: x_return_status := FND_API.G_RET_STS_ERROR;
1035:
1036: END get_ame_role_list;
1029: 'for transaction ' || p_transaction_id);
1030: END IF;
1031:
1032: FND_MESSAGE.Set_Name('FUN','FUN_AME_UNEXPECTED_EXCEPTION');
1033: x_error_message := FND_MESSAGE.GET;
1034: x_return_status := FND_API.G_RET_STS_ERROR;
1035:
1036: END get_ame_role_list;
1037: