2011 Feb 08 1:38 PM
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.
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.
2011 Feb 08 2:36 PM
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.
2011 Feb 08 2:57 PM
2011 Feb 08 3:24 PM
That's the wrong exit - did you read the documentation in the program?
2011 Feb 09 11:08 AM
I solved the issue by writing the coding in userexit_save_document_prepare.
Thank you for u help
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |