raising error messages in user exit..
i have my code in sales order user exit FORM USEREXIT_SAVE_DOCUMENT.
the code needs to check for a condition and if that fails i do not want to allow the user to save the sales order, rather do the change as i expect.
i can display the message using my message class, right ? but then how to prevent further action of saving the sales order ?