Application Development 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: 

why the message truncates in a message class

Former Member
0 Kudos
780

Hello,

I have defined a message class in se91 and first message 0000, is defined as &.

Now In program I define text as TEX-012 with length 61.

In program , I write statement as:

message s000 with Text-012.

Message text is getting truncated on the output screen.

What could be the reason?

Thanks,

Anand

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
211

It's because length of variables are limited internally by sap to 50 characters. Thus you need to split on 2 variables, message like "& &". But it's not a good practice to create a "dummy message" filled by text symbols at run-time, you should instead create many messages so that you take advantage of the where-used list which is very useful during maintenance.

2 REPLIES 2

Former Member
0 Kudos
211

a message variable can be 50 bytes. you can define more variables to put more texts.

Sandra_Rossi
Active Contributor
0 Kudos
212

It's because length of variables are limited internally by sap to 50 characters. Thus you need to split on 2 variables, message like "& &". But it's not a good practice to create a "dummy message" filled by text symbols at run-time, you should instead create many messages so that you take advantage of the where-used list which is very useful during maintenance.