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

Message Long Text

Former Member
0 Likes
508

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.

6 REPLIES 6
Read only

amit_khare
Active Contributor
0 Likes
480

message e001 with sy-uname.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
480

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 '&'.

Read only

0 Likes
480

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.

Read only

former_member194669
Active Contributor
0 Likes
480

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

Read only

Former Member
0 Likes
480

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

Read only

Former Member
0 Likes
480

Hi all,

My problem is with long text, not within the program.