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: 

Query regarding message - id.

Former Member
0 Kudos

The use of message id xyz in the report statement specifies the standard message class for the main program.

Now this standard message class has n number of simple messages already defined.

How can i configure which message class I have to use for my report since there are n number of message classes available.

Can i use more the one message class for my program.

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

It is possible to have more than one message class.

MESSAGE i004(SU) WITH 'Hugo'.

MESSAGE i002(ZZ) WITH 'Hi'.

Here SU and ZZ are message class.

Kindly reward points if it helps.

6 REPLIES 6

Former Member
0 Kudos

I guess we can use only 1 message class in our reports..

Whatever messages u want in ur report u can add them to ur message class and use that

former_member588853
Active Contributor
0 Kudos

HI Vinod,

See I can tell you one thing..

If you are working for MM for some country in your company..

There will be relevant message class which is used by the group of programs, reports inplementing for that country for ur client..

So you need to ask your lead what is the message class used for this Work order?

hope you understood,

regards,

nazeer

Former Member
0 Kudos

Hi,

You can create your own message Class( mostly 2 char field) in Transaction SE91

and define a message with 4 &&&& place holders

or define your own messages as per requirement.

so that in the report you can give some 4 parameters in the message

Once you declare a message class in the report heading

no need to use that in the messages

other wise if you are using other message class you have to explicitely mention that message class in the message like

message E012(message class) with 'message'.

reward points if useful

regards,

Anji

Former Member
0 Kudos

Hi Vinod,

you can use more than one message class in your program.

but u cannot specify more than one message class has message-id in the report stmnt.

check out he table t100a it contains the text for each of the message class based on the text select the message class you require.

after selecting the message class go to tcode se91 specify the message class and look at all the messages and use all the message you require.

regards,

Navneeth.K

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

It is possible to have more than one message class.

MESSAGE i004(SU) WITH 'Hugo'.

MESSAGE i002(ZZ) WITH 'Hi'.

Here SU and ZZ are message class.

Kindly reward points if it helps.

kiran_k8
Active Contributor
0 Kudos

Vinod,

For a program there will be only one message class.If you are going to do any modifications first copy the std prog to zprog IN SE38 OR SE80 and also the msg class to zmsg class in the SE91 and then add whatever the new mesgs that you want to add to this zmsgclass.

If you want to know the msg class of the program which is report then you can find it in the very first line like

report ztest no standard page heading message-id zts.

now if we double click on zts then it will take us to the msg class wherein you can see all the messages that are pertaining to this msg class which will be raised in the program ztest.

If any doubts revert.

K.Kiran.