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: 

Add a message to a message class with long text in ABAP

Former Member
0 Kudos

Is it possible to add an entry to a message class providing a short text as well as a long text with ABAP. What UI fields would I need to provide the user to fill in long text and short text? After pressing a button 'add' the text would be added as long text and short text to a new message in the message class.

8 REPLIES 8

horst_keller
Product and Topic Expert
Product and Topic Expert

Why would you want to do that? We have SE91 for that. Of course, if you know ABAP, there are (simple) ways of adding short texts to T100 and create the respective SAPScript long texts. But messages are repository objects and you have to take care about transport etc. too. Generally not recommended.

0 Kudos

I need a way to let the user save custom documentation.
"there are (simple) ways of adding short texts to T100 and create the respective SAPScript long texts"
How would I go about doing this if I manually create a message class?

0 Kudos

Hi,

What is the business requirement?

Maybe we are misunderstanding what you mean with message class and are you trying to do something altogether different.

Kind regards, Rob Dielemans

0 Kudos

The requirement is to let the user save information in the form of the long texts you can see when going to SE91 and displaying a message text. There will be a message class made in advance through that transaction with some default messages. The user must be able to update those default messages or even add new ones through an interface other than SE91.

horst_keller
Product and Topic Expert
Product and Topic Expert
I'd say that's simply not what messages are made for.

So you want a functionality to store notes with the look and feel of long texts in Se91?

Is this information linked to a specific transaction? Because in that case check if it has GOS, then users can add notes and attachments using standard functionality.

Kind regards, Rob Dielemans

0 Kudos

What would you suggest to use for this requirement then?

Jelena
Active Contributor
0 Kudos

But what exactly is the requirement? Where / how are you going to use such "documentation"?