Did you try to put the error message with the now classic macro AND then execute a pop-up FM ?
im_item->invalidate( ). mmpur_metafield mmmfd_xxx.
mmpur_message_forced 'E' 'ZMSG' '001' value1 space space space. CALL FUNCTION 'AQ_INT_SHOW_MESSAGE_AS_POPUP'
EXPORTING
message_class = 'ZMSG'
message_number = '001'
message_type = 'E'...
But you should add some code to prevent trigger of the pop-up outside of actual interactive transaction (not in BAPI or Background)
Regards,
Raymond
Add comment