Hey everyone, I’m stuck with a problem in SAP MIRO. I’m trying to show a warning when certain criteria are met. I used the BADI ‘INVOICE_UPDATE’ with the ‘CHANGE_AT_SAVE’ method. But the message isn’t popping up even though my BADI is being called.
I noticed some code that checks if it’s in dialog mode before showing messages. Is there another way to make warning messages appear? Maybe a different user exit?
Here’s a similar code snippet to what I found:
IF NOT is_dialog_mode.
CALL FUNCTION 'DISPLAY_MESSAGE'
EXPORTING
message_type = 'W'
message_text = 'Warning: Criteria met'
message_number = '001'.
ELSE
CALL FUNCTION 'STORE_MESSAGE'
EXPORTING
message_type = 'W'
message_text = 'Warning: Criteria met'
message_number = '001'.
ENDIF.
Any ideas on how to get this working? Thanks in advance!