Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Messages

Former Member
0 Likes
1,172

Hi Experts ,

Can we pass variables in Messages ?

If so how ? If Possible explain with example .

Thanx in advance ,

Senthil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,113

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,113

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

Read only

Former Member
0 Likes
1,113

like this

message e399(yb) with

'User' sy-uname 'not authorised for Plant' iwerks-werks.

Regards

Prabhu

Read only

Former Member
0 Likes
1,114

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

Read only

Former Member
0 Likes
1,113

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

Read only

Former Member
0 Likes
1,113

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.

Read only

Former Member
0 Likes
1,113

Hi,

Yes. You can declare message class with & and pass variables delclare in text element.

Eg:- MESSAGE e014 WITH text-003.

Regards

Sabu