‎2006 Aug 18 6:49 AM
Hi Experts ,
Can we pass variables in Messages ?
If so how ? If Possible explain with example .
Thanx in advance ,
Senthil
‎2006 Aug 18 6:52 AM
Define the message in se91 as <b>000 &1 &2 &3 &4</b>
and you can pass variables as
<b>MESSAGE S001(000) with v_var1 v_var2 v_var3 v_var4.</b>
~thomas
‎2006 Aug 18 6:50 AM
Yes,
MESSAGE S001(00) with v_var1 v_var2 v_var3 v_var4.
MESSAGE S001(00) with text-001 text-002 text-003 text-004.
Max 4 variables u can pass.
Cheers
VJ
‎2006 Aug 18 6:50 AM
like this
message e399(yb) with
'User' sy-uname 'not authorised for Plant' iwerks-werks.
Regards
Prabhu
‎2006 Aug 18 6:52 AM
Define the message in se91 as <b>000 &1 &2 &3 &4</b>
and you can pass variables as
<b>MESSAGE S001(000) with v_var1 v_var2 v_var3 v_var4.</b>
~thomas
‎2006 Aug 18 6:54 AM
Hi,
In the message class declare a message no. with `&`. The no. of ampersand`s would indicate the no. of variables you want to pass to Message.
In the Message Class - for eg- ZM01
Message no. Message text
001 & & & &
Now use
message e001(ZM01) with text-001 text-002 text-003 text-004.
Best regards,
Prashant
‎2006 Aug 18 6:55 AM
hi,
yes u can...
for ex: after downloading a file u want to give a message
if the its successful...
if sy-subrc = 0.
message i000(zz) with p_file.
endif.
hope this helps,
do reward if it helps,
priya.
‎2006 Aug 18 7:38 AM
Hi,
Yes. You can declare message class with & and pass variables delclare in text element.
Eg:- MESSAGE e014 WITH text-003.
Regards
Sabu