04-26-2007 5:35 AM
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.
04-26-2007 5:44 AM
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.
04-26-2007 5:38 AM
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
04-26-2007 5:42 AM
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
04-26-2007 5:43 AM
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
04-26-2007 5:44 AM
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
04-26-2007 5:44 AM
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.
04-26-2007 5:47 AM
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.