Application Development 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: 

Error message with Cancel option

Former Member
0 Kudos
89

Hi,

When i create a sales order, While saving, i need to do a price check and display error accordingly. I did this coding in the user exit MV45AFZZ. But this error msg terminates the transaction. User wants a cancel option in the error msg so he can go back to the screen and edit the data.

So I created a pop up displaying the error msg having cancel button. When cancel button is clicked it goes back to the screen.

But the issue is when i again click the save buttion, the user exit doesnt trigger. It continues from the code where it left.

How to overcome this?

Ezhil.

4 REPLIES 4

brad_bohn
Active Contributor
0 Kudos
59

MV45AFZZ is not a user exit; it's an include program with subroutines that are called as user exits. Which user exit subroutine did you use? Most of the exits do not terminate the transaction on an error message, including USEREXIT_SAVE_DCOUMENT_PREPARE. You don't need a pop up.

Former Member
0 Kudos
59

I have used the userexit_save_document.

brad_bohn
Active Contributor
0 Kudos
59

That's the wrong exit - did you read the documentation in the program?

Former Member
0 Kudos
59

I solved the issue by writing the coding in userexit_save_document_prepare.

Thank you for u help