cancel
Showing results for 
Search instead for 
Did you mean: 

Error message problem in ORDER_SAVE badi.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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