I have the following code in badi ORDER_SAVE:
**************************************************************************
call function 'CRM_MESSAGE_COLLECT'
exporting
iv_caller_name = 'ORDERADM_H'
iv_ref_object = lv_guid
iv_ref_kind = 'A'
IV_LOGICAL_KEY =
iv_msgno = '066'
iv_msgid = 'ZM'
iv_msgty = 'E'
iv_msgv1 = lv_msgv1
iv_msgv2 = lv_msgv2
iv_msgv3 = sy-msgv3
iv_msgv4 = sy-msgv4
iv_msglevel = 'E'
IV_DOCNUMBER = LV_GUID
exceptions
not_found = 1
appl_log_error = 2
others = 3.
raise do_not_save.
**************************************************************************
The "do_not_save" is raised but the message is not in the message block in either the GUI and WEB UI.
I used a similar technique in badi COM_PARTNER_BADI CALLING 'COM_PARTNER_MESSAGE_COLLECT_OW with success.
Where is that message going????