on 04-09-2006 6:39 AM
Hi,
I want to write an error message...
BUT, i want it to act like s (status).
I need the program not to stop while showing the error.
needs to be in RED.
THANKS
First, I don't think that you will be able to do what is required. Standard messaging dictates that errors will show with a red icon and it will stop the processing. You can either give a warning message will do almost the same with a yellow icon and allow the program to continue(user hits enter thru it) or you can use the following function module to show your message in the message line without the "red" icon.
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
text = 'Your Message Text'.
REgards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ofer,
When it shows RED, that mean the program will have to STOP. What you can do is to make it WARNING with w, so that the program will continue the execution.
However, with W, the message will be on the status bar. If you want the user to see the message make it a I (Information message). However, none of these will be RED. Warning will be YELLOW, that is the maximum you can get while continuing the execution.
Regards,
Ravi
Note : Please mark the helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, guess what. I tried this simple code on three different versions (4.6C / 4.7 - WAS 6.20 / 6.40)
PARAMETERS : P_FLIGHT TYPE S_CARRID.
START-OF-SELECTION.
IF P_FLIGHT IS INITIAL.
MESSAGE S002(00) DISPLAY LIKE 'E'.
ENDIF.
END-OF-SELECTION.
WRITE 😕 'Output'.
It works fine in WAS 6.20 and WAS 6.40, however, gives doesn't compile in 4.6c. So, obviously there is a new feature that I learnt in the messages.
Rich,
Did you know that?
Regards,
Ravi
Note : Please mark the helpful answers
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.