‎2007 Jun 13 4:35 AM
Hi all,
I am maintaining long text for a message.
my message is like this.
"User & has no authorization"
and in program it is like
I want to make the user name must also appear in log text using '&'.
Is there any way to do it?
Thanks.
Mungala.
‎2007 Jun 13 4:37 AM
message e001 with sy-uname.
Regards,
Amit
Reward all helpful replies.
‎2007 Jun 13 4:39 AM
In my program i am displaying it like thais only.
message e901 with sy-uname.
But I want the user name should also be displayed in long text using '&'.
‎2007 Jun 13 4:45 AM
The correct syntax in your long text should be:
The value is &V1& but must be 1.
The symbols &V1&, &V2&, &V2& and &V4& can be used in the long text. These symbols are filled with system field SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4.
When you issue your message in your program this variables will be filled:
Message E123(ZYX) with '1' '2' '3' '4'.
SY-MSGV1 is now '1' and also &V1& will be '1'.
~ As find in forum.
Regards,
Amit
Reward all helpful replies.
‎2007 Jun 13 4:40 AM
Create a message in your message class
as
for example : message create is 001 in message class Y1
and username is AAA
User & has no authorization
and in program
data : v_text(70) type c.
message e001(y1) with v_username into v_text.
here v_text contains User AAA has no authorisation
aRs
‎2007 Jun 13 4:41 AM
when you create them message
like
User &1 has no authorisation ...
then ... in the program
if sy-uname NE 'xxxx'
Message E(001) with sy-uname .
endif .
Girish
‎2007 Jun 13 4:44 AM