Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Implementing INVOICE_UPDATE badi

Former Member
0 Likes
946

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!

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
669

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

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
670

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