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

Error while displaying message in status bar

Former Member
0 Likes
3,940

hi,

I m getting Runtime Errors MESSAGE_TYPE_UNKNOWN while displaying message in status bar.

I have written the message statement like this

Message e000(mid) display like 'S'.

where mid is type of message id..

can anybody tell the solution to display message in status bar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,200

Hi added the statement

REPORT Zprog MESSAGE-ID zz.

now its working but it goes to the next screen and i want to display msg by staying on current screen

11 REPLIES 11
Read only

Former Member
0 Likes
2,200

There are no of ways to display messages in SAP.

Did you use message id here:

REPORT ztest
       MESSAGE-ID zz

MESSAGE i000 DISPLAY LIKE 'E' WITH text-002
 MESSAGE e000(zz) WITH text-e24

Read only

Former Member
0 Likes
2,200

hi,

mid is supposed to be the message class.

either you specify the message class here or in the report statement.

Read only

Former Member
0 Likes
2,200

There are many ways to maintain this kind/type of messages.

1. REPORT Zprog MESSAGE-ID zz.

2. MESSAGE 1000 DISPLAY LIKE 'E' WITH text-002.

3. MESSAGE e000(DGM) WITH text-e24.

and

4. Through message class.

Read only

Former Member
0 Likes
2,201

Hi added the statement

REPORT Zprog MESSAGE-ID zz.

now its working but it goes to the next screen and i want to display msg by staying on current screen

Read only

0 Likes
2,200

Use LEAVE LIST-PROCESSING statement after your message.

Read only

0 Likes
2,200

I made the changes like this

Message e000(ZTESTMSG) display like 'S'.

LEAVE LIST-PROCESSING .

but no effet , it again goes to next screen.

Read only

0 Likes
2,200

Hi Deepak,

Do you want to display the message on the selection screen or even before leaving to the selection screen itself(i.e. from the editor itself?) ?

Regards,

Chaitanya

Read only

0 Likes
2,200

i want to display message on selection screen itself

Read only

0 Likes
2,200

Try this.


TABLES: mara.
SELECT-OPTIONS: s_matnr FOR mara-matnr.

INITIALIZATION.

At SELECTION-SCREEN.

MESSAGE 'This is message in selection screen' TYPE 'E' DISPLAY LIKE 'S'.

START-OF-SELECTION.

END-OF-SELECTION.

Read only

0 Likes
2,200

Place your message under AT SELECTION-SCREEN event. This would keep your status message on the screen itself.

Read only

0 Likes
2,200

thanks...my problem gets solved