‎2007 Aug 21 11:54 AM
I have created a message class from se91 and now want to use it,but I do not know how to use this class.
Could you please provide me the syntax?
Thanks.
‎2007 Aug 21 11:56 AM
just check sytnax of MESSAGE in F1 help u will get the answer.
S@meer
‎2007 Aug 21 11:58 AM
Hi,
U can use like this in a program..
REPORT <REPORT NAME> NO STANDARD PAGE HEADING MESSAGE-ID <Give ur message class u created in SE91>.
Regards,
nagaraj
‎2007 Aug 21 12:01 PM
hi u can use like this
message i<msgno>(<msgclass>) with 'hai' 'hello' 'how' 'r u'.
u can have upto 4 placeholders for msgs..
i-information
e-error msg
s -sucess msg
‎2007 Aug 21 12:01 PM
Hi Deniz
Procedure
To create a new message class from the ABAP Editor:
In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID <id> enter a parameter value of up to 20 characters as a message ID, for example:
REPORT <name> MESSAGE-ID <message class>.
Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.
Double-click the message ID.
If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.
Choose Yes.
The system calls up Message maintenance.
Enter a brief description of the class in Short text.
Choose Save.
Result
You can add messages to your class by choosing the Messages tab. You can always return to the Message maintenance screen by double-clicking a message ID or a message number where it appears in your code.
or
simply write message i000(z00) with 'information'.
now double click on i000 and activate here u dont need to declare simple!!!!!
reward points to all helpful answers
kiran.M
‎2007 Aug 21 12:24 PM
Hi..
You can Call these messages in Any program using this Statement.
MESSAGE E100(ZCLASS) WITH V1 V2 V3 V4.
Here
E - Error Message (you can also use I, S, W , A , X)
100 - Message No that u have assigned in SE91
ZCLASS - Message Class
V1-V4 Are Message Variables which are given in a message using &1 &2 Etc.
We can also assign the Message class in the REPORT/PRogram statements:
REPORT ZREP1 MESSAGE-ID ZCLASS.
message E100 WITH V1 V2 .
<b>Reward if Helpful</b>