‎2007 Sep 20 12:43 PM
Hi,
I want to trigger an error msg when sy-subrc <> 0 but i do not want to use any message class or message no.want to generate my own error message.
The syntax i used is
MESSAGE 'SUCCESS' TYPE 'I'.
however,i get the error message.
Three-digit error number XXX required in the 'MESSAGE EXXX.." Statement.
‎2007 Sep 20 12:45 PM
Hi,
check this,
message 'error' type 'I'.
Thanks,
Reward If Helpful.
‎2007 Sep 20 12:46 PM
hi
MESSAGE i001 WITH text-026.
message i001(00) with 'sucess ful'.
regards
kk.
‎2007 Sep 20 12:46 PM
Hi,
You can write like,
If sy-subrc <> 0.
message 'DATA ALREADY EXISTS!' type 'E'.
endif.
Regards,
pritha
Reward if helpful.
‎2007 Sep 20 12:46 PM
hi,
create ur own message class by SE91.
there wiu can create ur own messages.
Than write like this.
MESSAGE s000(<b>zmsg_fmtr</b>)
<b>S</b> for Status Message
<b>zmsg_fmtr</b> is my message class
Hope it will b helpful.
Reward if useful.
‎2007 Sep 20 12:47 PM
hi
pls follow as below
MESSAGE i001 WITH text-026.
message i001(00) with 'sucess ful'.
‎2007 Sep 20 12:48 PM
hi,
you can use like
Message 'error message' type 'E'.
regards,
‎2007 Sep 20 12:54 PM
Please try using following statement with your TEXT replacement in single quotes.
MESSAGE E999 WITH 'Please enter a valid Purch Org.'(001).
Note: you need to define a message class using statement MESSAGE-ID in the REPORT statement.
Award points, if this hint helps you.