CALL METHOD cl_message_mm=>create
EXPORTING
im_msgid = 'ZZMESSAGE' "se91
im_msgty = 'E' "
im_msgno = '011'
im_msgv1 = LV_msgv1
im_msgv2 = LV_msgv2
* im_msgv3 = lw_msg-msgv3
* im_msgv4 = lw_msg-msgv4
im_condense = mmpur_no "space
EXCEPTIONS
failure = 01
dialog = 02.
IF sy-subrc = 1 OR sy-subrc = 2.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.