‎2010 May 24 5:07 AM
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!
‎2010 May 24 7:05 AM
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
‎2010 May 24 7:05 AM
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
‎2010 May 24 7:28 AM
Thanks for your answer!
Is there any kind of use without Message statement?
‎2010 May 24 8:34 AM
>
> Thanks for your answer!
> Is there any kind of use without Message statement?
No. Why do you think there might be?
‎2010 May 24 9:41 AM
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!
‎2010 May 24 10:19 AM
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