on 05-01-2006 5:39 PM
I have used a error message using MESSAGE statement in ORDER_SAVE badi. The problem is when I press the save button and if the condision fails it shows error message. After if you press enter it shows the order is saved.
It is strange. Please help.
Hi Harish,
Did you use the message statement with the RAISING <exception> syntax. You can try doing this if you have not done it already. Raising an exception would not let the user save the order. In both the methods of the BAdI ORDER_SAVE, you have an exception which could be raised.
Jash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give some more information?
1. Which method of the badi are you using?
2. Do you raise the exception error_occured in this method?
In general, if you use change_before_update method and raise the exception if you do not want to save the order, the order would not be saved. This exception should be raised every time the method is executed if you do not want to save the current order.
See the standard implementation class CL_IM_CRM_BUS20001_UPLOAD.
Hope this helps. If not, post the code, so that I can check.
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.