‎2007 May 18 8:13 AM
Hello,
I have to implement INVOICE_UPDATE badi for tranzaction MIRO in order to prevent posting an invoice in certain conditions. So, I will use the method CHANGE_BEFORE_UPDATE, I do my check, but how can I prevent the posting? What statement to use in order that the user to be informed that that specific invoice cannot be posted?
Thank you!
‎2007 May 18 8:42 AM
Hello Marian
I am not sure if method CHANGE_BEFORE_UPDATE is the right one because it does contain neither an "error flag" parameter nor an exception.
I assume that method <b>CHANGE_AT_SAVE</b> will be more useful to you because it has an exception (<b>ERROR_WITH_MESSAGE</b>) that you can raise.
Regards
Uwe
‎2007 May 18 8:42 AM
Hello Marian
I am not sure if method CHANGE_BEFORE_UPDATE is the right one because it does contain neither an "error flag" parameter nor an exception.
I assume that method <b>CHANGE_AT_SAVE</b> will be more useful to you because it has an exception (<b>ERROR_WITH_MESSAGE</b>) that you can raise.
Regards
Uwe