‎2009 Feb 20 9:35 AM
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
‎2009 Feb 20 9:40 AM
hi
use 2 text elements for message
eg : message type "'E' with text-001 text-002 .
Try with above eg ..
‎2009 Feb 20 9:40 AM
hi
use 2 text elements for message
eg : message type "'E' with text-001 text-002 .
Try with above eg ..
‎2009 Feb 20 9:41 AM
hi ramesh,
i know that but i want the message to be in the message class itself not defined by text elements
‎2009 Feb 20 9:44 AM
hi...
if & is there in the message text you can make use of that for your purpose
regards
‎2009 Feb 20 9:46 AM
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.
‎2009 Feb 20 9:46 AM
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
‎2009 Feb 20 9:48 AM
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
‎2009 Feb 20 9:54 AM
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
‎2009 Feb 20 12:16 PM
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
‎2009 Feb 20 12:37 PM
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 .
‎2009 Feb 20 12:46 PM
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
‎2009 Feb 20 1:12 PM
In message long texts use &v1&, &v2&, &v3&, and &v4& for their corresponding variable.
regards
bhavesh
‎2009 Feb 20 9:40 AM
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
‎2009 Feb 20 9:41 AM
Try this [message class maximum length|https://forums.sdn.sap.com/click.jspa?searchID=22576486&messageID=6733537]
‎2009 Feb 20 9:41 AM
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
‎2009 Feb 20 9:44 AM
‎2009 Feb 20 10:07 AM
this would be a alternative solution.
use CONCATENATE statement
Concatenate text1 text2 into text.
MESSAGE <t><num> WITH text.