2009 Feb 17 10:23 AM
Hi All,
I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.
Regards,
Himanshu Sharma
Hi All,
I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.
Regards,
Himanshu Sharma
2009 Feb 17 10:28 AM
2009 Feb 17 10:42 AM
Moved to correct forum. Please use a more informative subject in future. Please take the time to read the Rules of Engagement
2009 Feb 17 10:47 AM
Hi,
Try FM FORMAT_MESSAGE. Pass ID , message number and variables and receive the output.
Hope this helps.
Regards,
Sachin
2009 Feb 17 10:47 AM
>
> Hi All,
>
> I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.
>
> Regards,
> Himanshu Sharma
BALW_BAPIRETURN_GET2
2009 Feb 17 11:28 AM
Hi ,
You can use the following function module.
DATA : DATA : l_mstring(480).
DATA: w_message like lmess.
w_message-msgid = sy-msgid.
w_message-msgno = sy-msgno.
w_message-msgty = sy-msgty.
w_message-msgv1 = sy-msgv1.
w_message-msgv2 = sy-msgv2.
w_message-msgv3 = sy-msgv3.
w_message-msgv4 = sy-msgv4.
CALL FUNCTION 'L_MESSAGE_AUFBEREITEN'
EXPORTING
I_MESS = w_message
I_LANGU = sy-langu
IMPORTING
O_TEXT = l_mstring.
Regards
Arindam