‎2008 Jul 24 3:09 PM
hello tout le monde,
can someone tell me how intruduce dynamic values with this kind of message.
Message 'Your Message Goes Here' TYPE 'W' .
thank you for your time.
‎2008 Jul 24 3:22 PM
You can do this way.. using the Format message function.
DATA: msgid TYPE sy-msgid,
msgno TYPE sy-msgno,
msety TYPE sy-msgty,
msgv1 TYPE sy-msgv1,
text(100).
msgid = 'ZZ'.
msgno = '000'.
msgv1 = 'Your Message Goes Here' .
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = msgid
lang = sy-langu
no = msgno
v1 = msgv1
* V2 = SY-MSGV2
* V3 = SY-MSGV3
* V4 = SY-MSGV4
IMPORTING
msg = text
EXCEPTIONS
not_found = 1
OTHERS = 2
.
IF sy-subrc EQ 0.
MESSAGE text TYPE 'W' .
ENDIF.