cancel
Showing results for 
Search instead for 
Did you mean: 

Variable text in long text (message)

Former Member
0 Kudos

Hi

Is it possible to pass some variable values into the longtext message (tcode SE91)?

Example in long text:

Your value was <variable> but must be 12.

The "<variable>" must come from the program, and is a variable.

Br

Lars

View Entire Topic
Former Member
0 Kudos

Hi Lars,

The correct syntax in your long text should be:

The value is &V1& but must be 1.

The symbols <u><b>&V1&, &V2&, &V2& and &V4&</b></u> 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'.<u></u>

Regards,

Arjan