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

Former Member
0 Likes
630

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.

5 REPLIES 5
Read only

Former Member
0 Likes
605

just check sytnax of MESSAGE in F1 help u will get the answer.

S@meer

Read only

former_member404244
Active Contributor
0 Likes
605

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

Read only

Former Member
0 Likes
605

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

Read only

Former Member
0 Likes
605

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

Read only

varma_narayana
Active Contributor
0 Likes
605

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>