Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

warning message behave like error message why

Former Member
0 Likes
5,407

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

19 REPLIES 19
Read only

former_member404244
Active Contributor
0 Likes
3,691

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

Read only

0 Likes
3,691

in fact i have try every way and using "W"

it's behaving like ERROR

Read only

0 Likes
3,691

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,691

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

Read only

0 Likes
3,691

Hey Suhas !!!!

That was amazing !!!!

Keshu

Read only

0 Likes
3,691

Hi Suhas,

You rock... excellent... thanks for noting us....

Regards,

Nagaraj

Read only

0 Likes
3,691

HI newbie82 c

I hope you got the answer.

Regards,

Nagaraj

Read only

0 Likes
3,691

Thanks for the info ...

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,691

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

Read only

0 Likes
3,691

so the

START-OF-SELECTION

message W

END-OF-SELECTION

have the same attributes as error one that is red warning on statut bas

Read only

0 Likes
3,691

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,691

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

Read only

0 Likes
3,691

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,691

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

Read only

0 Likes
3,691

i check the program yes not the documentation yet

Read only

0 Likes
3,691

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!

Read only

Former Member
0 Likes
3,691

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,691

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.

Read only

nishant_krishen3
Explorer
0 Likes
3,691

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