‎2009 Jun 19 8:59 AM
Hi
at the return of a fm I have something like that:
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.I would like to know if is it possible to store the value of the message that is gonna be on video on a variable.
thanks
gabriele
‎2009 Jun 19 9:01 AM
Hi,
Use the addition INTO <variable> to construct the message and store it in a variable.
Regards,
Nick
‎2009 Jun 19 9:16 AM
Hi,
DATA mtext TYPE string.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO mtext
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
Regards,
Thilotham.
‎2009 Jun 19 9:22 AM
Yes, look at MESSAGE online help by pressing F1 on your source editor or at [MESSAGE|http://help.sap.com/abapdocu/en/ABAPMESSAGE.htm], [MESSAGE - message_options|http://help.sap.com/abapdocu/en/ABAPMESSAGE_OPTIONS.htm], [INTO text |http://help.sap.com/abapdocu/en/ABAPMESSAGE_OPTIONS.htm#!ABAP_ADDITION_3@3@]
Regards,
Raymond