‎2008 Aug 16 5:31 PM
hi,
i havea message class defined with message number 000 and message short text as & & & &.
in my program i use
message e000(message_class_name) with ' my message'.
the message is displayed but always with a prefix like
E:message_class_name:000 my message
why so ?? i just want my message to be displayed and no such prefix that talks abt the message class details !!
what is to be done ?
thks
‎2008 Aug 16 5:38 PM
> message e000(message_class_name) with ' my message'.
>
> the message is displayed but always with a prefix like
>
> E:message_class_name:000 my message
>
even when you have no message number maintianed in the message class, then also you get the similar behaviour.
‎2008 Aug 16 5:34 PM
if the message class in not there , then you get the similar behaviour.
check in SE91 there any message class or not.
‎2008 Aug 16 5:38 PM
> message e000(message_class_name) with ' my message'.
>
> the message is displayed but always with a prefix like
>
> E:message_class_name:000 my message
>
even when you have no message number maintianed in the message class, then also you get the similar behaviour.
‎2008 Aug 16 5:42 PM
My message class exists, Vijay !!!
If i use any of the standard message class like F2, i dont face such a problem !!! for e.g.
Message E899(F2) with 'my message '.
any other tips ??
‎2008 Aug 16 5:47 PM
Hi in SE91 for that message class, at 000 add 3& only, u were using 4& i think.
Ex:- 000 &&&
Then use that number in ur program
MESSAGE E000(ZXXX) with 'YOUR MESSAGE'.
Edited by: Bala Krishna on Aug 16, 2008 10:19 PM
‎2008 Aug 16 5:51 PM
if message class exists and message number not there then also you get the same kind of message .
message s011(f2) with 'No data'. "check this first
*message s990(f2) with 'No data'. " check this later
‎2008 Aug 16 6:01 PM
yes Bala, 4 ampersands have been defined...I think that shud help..anyway will confirm and then close this thread...thanks
‎2008 Aug 16 6:02 PM
hey Bala, But message class F2 also uses 4 ampersands for message number 899 !! But its works ...how ??
‎2008 Aug 16 6:05 PM
I have defined a message classs ZZ, and inside that i have message number 011,
and i defined this way
011 & & & &
and now in my program
i coded this way...
message e011(zz) with 'my message'.
but i got direct message. you are missing some thing thats for sure.
check it once
‎2008 Aug 16 6:13 PM
‎2008 Aug 16 6:27 PM
My bad, typo error, the message class name was typed wrong !!! Sorry...but wont the existence of message class be checked during syntax check ??
thks
‎2008 Aug 16 6:31 PM
as i told you, if you give wrong message calss or non existing class you get the same behaviour.
it won't check in syntax check also.that is the reason it tries to display in that fashion.
Edited by: Vijay Babu Dudla on Aug 16, 2008 1:35 PM
‎2008 Aug 16 6:35 PM
see my reply in my first post.
>if the message class in not there , then you get the similar behaviour.
>check in SE91 there any message class or not.
‎2008 Aug 16 7:00 PM
Hi for ZZ message class it is giving like that, may be it is maintained in DE language.
Try to create a new message class and to any message num assign only 1&.
Sorry in my previous message i said 3 or 5 &, its only 1 & in short message text, and use that message number in program
‎2008 Aug 16 5:58 PM
Hi,
In any message class if any number
Ex:- 000 has a &&&, that means we can use it for our dynamic text in program.
Some time we may require other messages to display according to our need and in message class there will be no such text, in that situation we can use 000 for our custom text messages.
Regards
Bala Krishna
‎2008 Aug 16 6:25 PM
>i havea message class defined with message number 000 and message short text as & & & &.
is message class and message number created by you now or it is already there .
if you created , check the message class and number saved or not.
a message can take max 4 & , minimum 0 . that is nothing to do with the current problem.
even if you define 5 & nothing will happen. you can supply only 4 variables to the message.