Hello experts,
The requirement is that I need to display an error message on order save if the credit card data entered by user does not matches with 'standard' card info in BP Master data. The error message should be removed when the user takes remedial action mentioned below. I have implemented ORDER_SAVE BADI to perform checks and collect/delete error messages.
I have a button in Payment Data assignment block in Sales Order screen to read Credit Card data from current order and add it as standard card for customer BP. The button is available only in EDIT mode of Sales Order screen. This is working fine as expected.
The issue is that when I click on save button, ORDER_SAVE BADI is not getting triggered(as Order data is not getting changed). As a result the relevant error messages are not getting deleted. I tried using FM <crm_message_delete> and message container classes in button event handler method but got some authorization related error. Is there any way I can trigger ORDER_SAVE method or is there any alternate way to delete error message?
Regards,
Amit