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

How can I call display Message class from Program/FM

Former Member
0 Likes
11,098

Hi, all...

Does anybody know how can I call displaying message class from program? Is there FM for that?

I have only name of message class...

Pls Help...

Thanks!

Zuzana

Hi, all...

Does anybody know how can I call displaying message class from program? Is there FM for that?

I have only name of message class...

Pls Help...

Thanks!

Zuzana

7 REPLIES 7
Read only

Former Member
0 Likes
4,812

hi,

if u asking how to display message of message class then

MESSAGE s000(zmsg_fmtr)

here s -- status

000 -- number of message

zmsg_fmtr --- message class

reward if usefull....

Read only

uwe_schieferstein
Active Contributor
0 Likes
4,812

Hello Zuzana

I am not really sure what you mean but perhaps the following samples might be helpful (message class = '00'):


MESSAGE s007(00) WITH 'Table'.
*   &1 is empty

If you add the message id to the REPORT statement then you can omit the message class because it is globally known in the report:


REPORT  zus_test1 MESSAGE-ID 00.
...

MESSAGE s007 WITH 'Table'.
*   &1 is empty

Regards

Uwe

Read only

Former Member
0 Likes
4,812

Not Message, but Message class....

It should do the same as transaction SE91

Read only

uwe_schieferstein
Active Contributor
0 Likes
4,812

Hello Zuzana

I guess function group WBMESSAGES may contain useful function modules for you, e.g.:


RS_MSG_EDTR_SHOW_MESSAGE
RS_MSG_SELECT_MESSAGE

Regards

Uwe

Read only

0 Likes
4,812

OK, but I still want to display MESSAGE CLASS not MESSAGE!!

Read only

0 Likes
4,812

Hello Zuzana

How about a simple CALL TRANSACTION?



ld_msgclass = '00'.
...
SET PARAMETER ID 'MAG' FIELD ld_msgclass.

CALL TRANSACTION 'SE91' AND SKIP FIRST SCREEN.
...

Regards

Uwe

Read only

0 Likes
4,812

I tried that, It doesn't work