09-11-2008 8:20 AM
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
09-11-2008 8:23 AM
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 .
09-11-2008 8:24 AM
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
09-11-2008 8:24 AM
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.
09-11-2008 8:32 AM
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.