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

message class

Former Member
0 Likes
930

How to create a message class?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
875

Hi,

Std Tcode is SE91.

But an easy method is if u want to create a message class for ur program.

add like this to the report statement.

REPORT ZABC MESSAGE-ID ZMSG .

Now double click on ZMSG.It will ask to create or not.Choose yes and it will directly opens SE91 transaction.

now as u write messages in program as

message s001.

double click on s001 and it will directly create the message text 001 and u can write ur text der.

6 REPLIES 6
Read only

Former Member
0 Likes
875

hi,

You can do it in SE91. Give the message class name click on create, give the attributes , save it , go to message tab, enter the message no and the text.

regards,

Prabhu

reward if it is helpful

Read only

Former Member
0 Likes
875

GO TO SE71 Transaction, there you can provide your message other wise in your program write your message for example: message 001(0) with 'no error occured'.if helps you reward me with points.

thenks ,

Read only

Former Member
0 Likes
875

GO TO SE91 Transaction, there you can provide your message other wise in your program write your message for example: message 001(0) with 'no error occured'.if helps you reward me with points.

thenks ,

Read only

Former Member
0 Likes
875

Hi

<b>steps</b>

1) GOTO <b>SE91</b> transaction

2) enter any name and select attributes radiobutton

3) click on creat button

4) enter short discription

5)click on save button

6) next goto the messages option

7)now you can give the any number of mesages here starting from 000 to 999

8)and save it and come back

9) if you want to use this message class in your program then declare this at

<b>REPORT znnr message-id zmessageclas name</b>

in your program after declaring like above

if you want display any message then

<b>message e000(anynumber) with text-001</b>

like this you can do

reward if usefull

Read only

Former Member
0 Likes
875

hi

go to se91 then create give your class name and create it.

Then after write short description name and save it.

if u give starting name without 'z' or 'y'.Remember that you must save it in 'BMESSAGE' package otherwise it cant save you in your 'Z' pacnkage.

if u create name start name with 'z' or 'y' then you can take it in 'z' package.

then go message tab is open in that your just write your message in sequence.

then after you can call it in your program as per its message number.

I hope it will helpful.

CHeck it.

Thanks.

Message was edited by:

Prashant Brahmbhatt

Read only

Former Member
0 Likes
876

Hi,

Std Tcode is SE91.

But an easy method is if u want to create a message class for ur program.

add like this to the report statement.

REPORT ZABC MESSAGE-ID ZMSG .

Now double click on ZMSG.It will ask to create or not.Choose yes and it will directly opens SE91 transaction.

now as u write messages in program as

message s001.

double click on s001 and it will directly create the message text 001 and u can write ur text der.