‎2009 Dec 02 12:30 PM
hiii
I have done a simple test program where i have put
MESSAGE W015(ZXXX) with "XXXXXX"
and this when i execute will bahave like error message
I even did like MESSAGE I0015(ZXXX) with "Xxxxx" display like I. and this also behave like error message
Note: my code is found between the start or selection and end of selection
‎2009 Dec 02 12:39 PM
hi,
if you are using message class then no need for WITH 'XXXX'.
MESSAGE W015(ZXXX) . This is enough.. You will get yellow colour waring message.... Error means it should be red colour.
Regards,
Nagaraj
‎2009 Dec 02 12:40 PM
in fact i have try every way and using "W"
it's behaving like ERROR
‎2009 Dec 02 12:43 PM
Hi,
the warning message will appear in the status bar as error message only but you will the difference in icon for warning and error messages...Yellow for warning and red for error...
Please share your code...
Regards,
Nagaraj
‎2009 Dec 02 12:47 PM
Hello,
Please have a look at this SAP documentation for [MESSAGE|http://help.sap.com/saphelp_nw04/helpdata/EN/e5/e719bab1d711d295bf0000e8353423/frameset.htm].
@Nagaraj & KSD:
Hi there is no chance to happen like this
You have to check the program DEMO_MESSAGES & see how a warning message behave. Be ready for some pleasant surprise;)
BR,
Suhas
‎2009 Dec 02 12:57 PM
‎2009 Dec 02 1:01 PM
Hi Suhas,
You rock... excellent... thanks for noting us....
Regards,
Nagaraj
‎2009 Dec 02 1:02 PM
‎2009 Dec 02 1:03 PM
‎2009 Dec 02 1:03 PM
Guys,
I was also in your league when i got the same issue. Did an F1 & read the documentation.
In fact SAP documentation roxx
Cheers,
Suhas
‎2009 Dec 02 1:08 PM
so the
START-OF-SELECTION
message W
END-OF-SELECTION
have the same attributes as error one that is red warning on statut bas
‎2009 Dec 02 1:12 PM
Hi,
yes you are right.. if you do some validation in AT SELECTION-SCREEN eveny you will be warning message as warning message.
Regards,
Nagaraj
‎2009 Dec 02 1:13 PM
Unfortunately the answer is "Yes" ...
Atleast SAP documentation says so. Did you check the documentation i had mentioned in my post & also did you check the program?
BR,
Suhas
‎2009 Dec 02 1:15 PM
Looks like there are many hidden treasures from SAP in the form of demo programs like DEMO_MESSAGES which we are not aware of . Time to dig those
‎2009 Dec 02 1:17 PM
For me the greatest treasure is the transaction ABAPDOCU. Whenever in doubt i type ABAPDOCU in the command bar & delve into the treasure hunt
Cheers,
Suhas
‎2009 Dec 02 1:36 PM
‎2009 Dec 02 5:18 PM
That is the normal behaviour for warning messages issued in START-OF-SELECTION (as already suggested, check the documentation).
If you want your program to issue a message and continue running (for example the behaviour of the status message) yet show it like a Warning message, you can use the DISPLAY LIKE addition (only in newer releases):
START-OF-SELECTION.
MESSAGE s000(oo) WITH 'test' DISPLAY LIKE 'W'.
WRITE sy-uzeit.
Adding to Suhas comment:
In fact SAP documentation roxx
Sure...when it does exist!
‎2009 Dec 02 12:43 PM
You probably need to describe the "behave" statement... Do you mean you get pop-up Dialog messages? If so, check your dialog box message settings in "options" from the GUI Status toolbar icon that's a three color box (customize local layout) to the right of the ?Help icon.
‎2009 Dec 02 12:44 PM
Hi there is no chance to happen like this.
Clearly check whether its triggering from this line or some other places.
put a bug point in his message and check
may be its getting triggered from some where else.
‎2010 Apr 19 10:51 AM
hi
basic difference between error and warnig is
in case of warning it will allow us to move the cursor to next position but in case of error it will not allow us to move the control to next position and in case of error also controls remains within the program also