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

problem with message id

Former Member
0 Likes
1,184

Hi I use message statement like:

message id 'zwm' type 'W' number 018.

And as 018 text i write "Example text".

So when I call statement as above I should see "Example text".

But I can see "zwm:018" and don't know why 😕

What do I wrong ??

Please help

Regards,

Greg.

5 REPLIES 5
Read only

Former Member
0 Likes
766

Hi,

Use this way

MESSAGE text-018 TYPE 'W'.

Regards,

Satish

Read only

Former Member
0 Likes
766

Hi,

There is no message-text for that message id so goto that class through forward navigation and write ur message and try it again. I think it will come .

for any futher clarifications post me again.

Plzz reward points if it helps.

Read only

Former Member
0 Likes
766

HI,

write like below.

message W018(ZWM).

if the message class ZWM or mesage number 018 in class WM is not there then it will give u message like that.check that whether that message class is saved or not.

rgds,

bharat.

Read only

Former Member
766

Hi,

This may help you, just go through this one.

syntax.

... ID mid TYPE mtype NUMBER num ...

The message class, the message type and the message number are specified as content of the data objects mid, mtype and num (dynamic form). For mid and mtype, character-type data objects are expected that must contain the message class resp. the message type in capital letters. Invalid message types create an uncatchable exception. For num, a data object of the type n and the length 3 is expected.

Note

The explicit specification of the message class overrides the addition MESSAGE-ID of the statement that introduces the program.

Example:

As example for alternative 2, with dynamic specification of the message and the message type.

DATA: mid TYPE sy-msgid VALUE 'SABAPDOCU',

mtype TYPE sy-msgty VALUE 'I',

num TYPE sy-msgno VALUE '014'.

MESSAGE ID mid TYPE mtype NUMBER num.

Read only

Former Member
0 Likes
766

nothing wrong with your statment..

use capitals ...it works

message id 'ZWM' type 'W' number 018.

*message id 'zwm' type 'W' number 018.