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 Message

Former Member
0 Likes
1,281

Hi All,

we have got a Z message class... and now I want to display some error message in my program using that message class only... I have written the follwoing cod:

If sy-subrc eq eq 0.

message e011 with "ZTEST".

and now when I double click on the e011 to enter the text it's taking me to a different message class rather than to the Z class that we defined.... can you please tell me how can i take care of this.

Thanks,

Rajeev

4 REPLIES 4
Read only

Former Member
0 Likes
667

Try this:

message e011(your zmsgclass) with 'ztest'.

Thanks,

SKJ

Read only

Former Member
0 Likes
667

This should be given as

message e000(zp) with text-e03.

where zp is your message class.

double click on text-e03 to create a message.

Read only

Former Member
0 Likes
667

Hi,

in your program use the message statement as below

MESSAGE ID mid TYPE mtype NUMBER num.

ex..

DATA: mid TYPE sy-msgid VALUE 'ZTEST,

mtype TYPE sy-msgty VALUE 'E',

num TYPE sy-msgno VALUE '011'.

MESSAGE ID mid TYPE mtype NUMBER num.

Read only

Former Member
0 Likes
667

Please use an informative title when asking questions, but before asking, please search the forum.

Rob