We have a transaction to create an activity in CRM 5.0.
When enter the data in the screen and hit the SAVE button a badi ORDER_SAVE is getting triggered and the activity number is getting generated.
But if one of the fields in the screen of the transaction is BLANK, then the BADI should not be triggered on SAVE and the activity number should not be generated.
I have put some condition in the PAI of the screen saying that if the field in blank then throw error and exit. It is throwing error message, but I am not able to prevent the BADI getting triggered and the activity number is getting generated.
Can anyone plz help me on this.