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 class in SE24

Former Member
0 Likes
2,875

I created a class in SE24, I see the message class field in the GUI. What is it use for? and how do I use it in code? Thanks!

1 ACCEPTED SOLUTION
Read only

former_member776318
Participant
0 Likes
1,895

Hello,

Like any other ABAP program (Executable, Module Pool), the Message class (created using tcode SE91) can be used to associate messages with the SE24 (global) classes as well.

You can use the messages declared in the message-class inside the methods of your global class directly through the MESSAGE statement of ABAP programming language. You can see F1-help on this statement to learn how to use it.

Hope that is helpful to you.

Regards,

Saurabh

5 REPLIES 5
Read only

former_member776318
Participant
0 Likes
1,896

Hello,

Like any other ABAP program (Executable, Module Pool), the Message class (created using tcode SE91) can be used to associate messages with the SE24 (global) classes as well.

You can use the messages declared in the message-class inside the methods of your global class directly through the MESSAGE statement of ABAP programming language. You can see F1-help on this statement to learn how to use it.

Hope that is helpful to you.

Regards,

Saurabh

Read only

0 Likes
1,895

Thanks for your answer!

Is there any kind of use without Message statement?

Read only

0 Likes
1,895

>

> Thanks for your answer!

> Is there any kind of use without Message statement?

No. Why do you think there might be?

Read only

0 Likes
1,895

Because I use BAPIRET2 structure in the class, I want a "special" way that I can use the message class declared in the SE24 instead of using constant attribute to store that message class. If this is the case, I close this thread. Thanks for your response!

Read only

0 Likes
1,895

Ah, ok. I can't think off the top of my head quite how you could use the declared message class directly to populate BAPIRET2.

matt