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 length

Former Member
0 Likes
7,570

hi to all experts,

i have message class in that i have given a message but the message is too long for it how to accommodate the message in that message . it is exceeding the length in the message class

1 ACCEPTED SOLUTION
Read only

kamesh_g
Contributor
0 Likes
4,941

hi

use 2 text elements for message

eg : message type "'E' with text-001 text-002 .

Try with above eg ..

16 REPLIES 16
Read only

kamesh_g
Contributor
0 Likes
4,942

hi

use 2 text elements for message

eg : message type "'E' with text-001 text-002 .

Try with above eg ..

Read only

Former Member
0 Likes
4,941

hi ramesh,

i know that but i want the message to be in the message class itself not defined by text elements

Read only

Former Member
0 Likes
4,941

hi...

if & is there in the message text you can make use of that for your purpose

regards

Read only

Former Member
0 Likes
4,941

Hi ,

A single text element in the message class can display 60 characters.

you have to declare two text elements while declaring the message as suggested above.

Thanx,

Pritha.

Read only

Former Member
0 Likes
4,941

Hi,

As well as the suggestions so far you could rephrase the message to fit the the length limit and put the longer message in the long text.

E.g.

System error due to strange things happening with the lock object and other such things

Becomes;

System error (See long text)

Regards,

Nick

Read only

0 Likes
4,941

hi

if you want message to be in message class and text more than 60 chars not possible .

for pop_up also max 60 chars only .

only option is using diff text elements .

Edited by: KAMESH G on Feb 20, 2009 10:49 AM

Read only

Former Member
0 Likes
4,941

Hi Nick,

thanks for you reply and can elaborate more on long text like how to use and write message in long text as i have never done this before

Read only

Former Member
0 Likes
4,941

Hi,

To create a long text you need to un-check the column headed 'Self-explanatory' then press the Long Text button. This will give you a full screen text editor to enter text under four different headings. If you need to added variables to the long text choose Edit -> Command -> Insert Command and enter symbol &V1&, &V2& etc

Regards,

Nick

Read only

0 Likes
4,941

Hi NICK

i would like to no the solution whihc u r trying to tell .

please can you explain me clearly what the solution for this if you are confident that will solve the problem .

please i want this solution .

thanks in advance .

Read only

Former Member
0 Likes
4,941

Hi,

The solution is this. A SAP message is made up of two parts, the short text (which is limited length, and is displayed when the message is raised) and the long text (which is optional, but has no limit in size).

The short text should hold a brief summary of the error, and the long text should explain how the problem occured and what action should be taken. After the message is displayed to the user when they double-click on it the long text is displayed in a pop-up window.

Take a look at a message like MEPO 005, this has both short text and long text.

Regards,

Nick

Read only

Former Member
0 Likes
4,941

In message long texts use &v1&, &v2&, &v3&, and &v4& for their corresponding variable.

regards

bhavesh

Read only

Former Member
0 Likes
4,941

hi...

i dont remember exactly but maximum static length for a message is 72 or 74.

you cannot give length more than that.

but you can make use of place holder '&' if it is there in the message definition.

& you can find it in some standard message classes which you can provide value using variables and even text elements

regards

Edited by: Mohit Kumar on Feb 20, 2009 10:41 AM

Read only

GauthamV
Active Contributor
0 Likes
4,941

Try this [message class maximum length|https://forums.sdn.sap.com/click.jspa?searchID=22576486&messageID=6733537]

Read only

Former Member
0 Likes
4,941

Hi,

In the message class give the place holders like & & Then in u r report and use

MESSAGE e000(zzz) WITH text-001 text-002 .

Regards,

jaya

Read only

Former Member
0 Likes
4,941

hi,

u can use FM: POPUP_TO_DISPLAY_TEXT_LO

or

BAL_DSP_MSG_LONGTEXT

and for more details refer:

in which same issue is discussed.

regards

rahul

Read only

Former Member
0 Likes
4,941

this would be a alternative solution.

use CONCATENATE statement

Concatenate text1 text2 into text.

MESSAGE <t><num> WITH text.