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 handling

Former Member
0 Likes
1,322

Hi all,

I am using Message handling .

Ex.. MESSAGE E000.

But error is "MESSAGE-ID xx" is missing in the "REPORT" statement.

What would be error?

Thanks,

Shashikanth.

1 ACCEPTED SOLUTION
Read only

Vinod_Chandran
Active Contributor
0 Likes
793

Hi,

You have to give the message class either in the Report header ie with REPORT ZTEST MESSAGE-ID Z1 or with the MESSAGE command like

MESSAGE E000(Z1).

Z1 is the message class. In your case it will be different.

Kindly reward points if this is helpful.

Cheers

Vinod

Message was edited by: Vinod C

4 REPLIES 4
Read only

Vinod_Chandran
Active Contributor
0 Likes
794

Hi,

You have to give the message class either in the Report header ie with REPORT ZTEST MESSAGE-ID Z1 or with the MESSAGE command like

MESSAGE E000(Z1).

Z1 is the message class. In your case it will be different.

Kindly reward points if this is helpful.

Cheers

Vinod

Message was edited by: Vinod C

Read only

Former Member
0 Likes
793

Hi,

give like this...

<b> MESSAGE ID id TYPE mtype NUMBER n.

MESSAGE ID 'here you need to give your msg class' TYPE 'I' Number '001'</b>

double click on 001 and type your msg....

for example

<b>MESSAGE ID 'A1' TYPE 'I' Number '001' WITH 'Do you want to continue.'.</b>

Sends a message. Messages are stored in table T100, and can be maintained using Transaction SE91. They are fully integrated in the forward navigation of the ABAP Workbench.

The ABAP runtime environment handles messages according to the message type specified in the MESSAGE statement and the context in which the message is sent. There are six kinds of message type:

tpyes( )

A (Abend)

Termination

E (Error)

Error

I (Info)

Information

S (Status)

Status message

W (Warning)

Warning

X (Exit)

Termination with short dump

Messages are used primarily to handle user input on screens. The following table shows how each message type behaves in different contexts. The numbers are explained at the end of the table.

regards,

venu.

Read only

Former Member
0 Likes
793

in the report heading include like this

report zxxxxxxxx message-id zx

cheers,

sasi

Read only

0 Likes
793

Hi

yes you are right..

This addition specifies the standard message class for the main program. This contains the messages used with the simple MESSAGE statement.

Note

This message class must not be enclosed in quotation marks.

You can use a namespace prefix with message class names.

Example

<b>REPORT RSTEST00 MESSAGE-ID SY.</b>

reward points for helpfull answers.

regards,

venu.