cancel
Showing results for 
Search instead for 
Did you mean: 

message type

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

I was told by someone who work on ecc5 that i can write:

"display like e" and then i can display it in red.

I am working on 4.6 and i get a "compailer error" when i tried to write "display like e".

Former Member
0 Kudos

Ofer,

First of all at least as of 4.6c there is no statement like DISPLAY LIKE E. So, you haven't got too many options.

ECC 5 works on WAS 6.40, I will check and let you know.

regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

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

Former Member
0 Kudos

In vrs 4.7

Message W002 Display Like 'E'.

-Displays Warning msg, but displays as 'E' level. Does not abend program, and is in red.

God Bless,

Daniel Perecky

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Nop, didn't know that. That's what happens when your stuck in a 46c system.

REgards,

Rich Heilman

Former Member
0 Kudos

Wait... I jumped the gun. My SM36 list was not in Date/time order (wrong spool).

It looks like what 'Display Like' / Display Like 'E' does is it changes the icon in the pop-up window.

That's all I see it doing...

If anyone can explain this feature further... please do.

Thank You,

Daniel Perecky