Application Development 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: 

Message syntax

Former Member
0 Kudos

Hi,

I want to display message type 'E' with matrial number, plant like :

message v_matnr is not available on v_werks .

Here v_matnr and v_werks are variable.

Can anybody tell me the exact syntax ?

thanks

kumar

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos

in the message class no put & wher u have to replace the variable

ex: part no & not valid.

then call it as.

message E000(ZMM) with part no.

if two variables

put two & in the messge

message E000(ZMM) with partno werks .

sachin_mathapati
Contributor
0 Kudos

Hi ,

Change the message text as

& is not available on & .

And syntax for message is

MESSAGE e573 WITH v_matnr v_werks.

Regards,

Sachin M M

Former Member
0 Kudos

Hi,

First you need to create a message in message class that you are using.

SE91.

When you create message create it as follows:

& is not available on &.

first & - is for v_matnr.

second & - is for v_werks.

Now in your program, when you raise an error message, write as follows.

MESSAGE E(msgnumber) WITH v_matnr v_werks.

When the message appears in run time, v-matnr and v-werks replaces the & in your message.

Best Regards,

Ram.

Former Member
0 Kudos

Hi Kumar,

Add your message in your message class as follows:

& is not available on &

Then in your program declare your mesage as follows:

message E001 with v_matnr v_werks.

Regards,

Nitin.