02-01-2010 3:59 AM
Hi friends,
How to display the error msg (red color) in statusbar and other msg is green color in same report of the status bar .
Plz help any one.
Thanks in advance.
02-01-2010 4:04 AM
Hi
Please find the code.
MESSAGE s086 WITH text-m04 DISPLAY LIKE 'E'..
Regards
Praveen
02-01-2010 4:04 AM
Hi
Please find the code.
MESSAGE s086 WITH text-m04 DISPLAY LIKE 'E'..
Regards
Praveen
02-01-2010 4:04 AM
Hi,
To display the message on the status bar use MESSAGE cammand.
to display any message as error (Red) use MESSAGE TYPE 'E'. to display the message into green (Success) use messge type 'S'.
02-01-2010 4:07 AM
Hi
For displaying messages, you have to make use of MESSAGE tnnn(message_class) statement.
where, t is the type of message you want to display
nnn is the 3 digit message number.
For diaplaying the ERROR message you hve to pass a value E in place of t in the above syntax. It automatically wii be diaplayed in the status bar in red color.
Similarly, for SUCCESS message the value of t is S, and it is displayed in green color in status bar.
Other messages have different colors and i don't think sap provide the option to change those.
Regards
Gaurav
02-01-2010 4:13 AM
chk this help doc for messages
http://help.sap.com/saphelp_NW70EHP1/helpdata/en/9f/dbaaaf35c111d1829f0000e829fbfe/content.htm
02-01-2010 5:01 AM
For Error Message (in red color) you simply need to use
Message 'text' type 'S' display like 'E'.
For Other messages (in green color) you can write
Message 'text' type 'E' display like 'S'.
02-01-2010 6:50 AM
Hi YUMKUMAR ,
You can use the below code.
Create a message class : ZMSSG or with any other name and use the below code.
IF SY-SUBRC NE 0 .
MESSAGE : E000(ZMSSG) WITH 'Data not available for this entry'.
ENDIF .
or
IF SY-SUBRC NE 0 .
MESSAGE : S000(ZMSSG) WITH 'Data not available for this entry'.
ENDIF .
Regards,
Kittu
Edited by: Kittu on Feb 1, 2010 7:51 AM
02-02-2010 12:02 PM
Thank u frnd,
but err meg in red color is display for next screen why
?
03-09-2010 9:41 AM