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 stops. I expect it will continue after displaying.

0 Likes
4,026

Hi Expert,

I put MESSAGE 'Staring....' TYPE 'I'. in my report, and I expect it displays warning message on status bar and program continue. But my program stops. Hope experts can help me out.

Thank you in advance.

Steven

1 ACCEPTED SOLUTION
Read only

0 Likes
3,265

I found the problem. If there is no global message handle exists, the warning message also will terminate program.

So we need to check if global message handle exists first. If it doesn't exist, we need to create one.

Hi Expert,

I put MESSAGE 'Staring....' TYPE 'I'. in my report, and I expect it displays warning message on status bar and program continue. But my program stops. Hope experts can help me out.

Thank you in advance.

Steven

5 REPLIES 5
Read only

matt
Active Contributor
3,265

Type I is informational, not warning.

Read only

Sandra_Rossi
Active Contributor
3,265

MESSAGE behaves differently depending on when/where it's triggered. The ABAP documentation explains all the differences.

Read only

RaymondGiuseppi
Active Contributor
3,265

Did you look for Messages - Behavior in Abap online documentation after Sandra and Matthew's advice?

Read only

Shruthi2979
Explorer
0 Likes
3,265

Hi ,

Messages are used to tell the user what is going on in the program.

There are types of messages.

1) Termination : denoted as A , The message appears in a dialog box, and the program terminates. when the user has confirmed the message ,control returns to the next-highest area menu.

2) Error : denoted as E, depending on the program , an error dialog box appears or the program terminates.

3) Information : denoted as I, the message appears in a dialog box, once the user conforms the message, the program execution continues from the next statement coded immediately after the message statement.

4) Success : denote by S , The total program executes normally and the message is displayed in the status bar on the screen.

5) Warning : denoted by W, the error message is displayed in the status bar on the screen, and the program execution terminates.

6) Exit or Abort : denoted by X, no message is displayed. The program terminates with the dump.

Thanks & Regards

Read only

0 Likes
3,266

I found the problem. If there is no global message handle exists, the warning message also will terminate program.

So we need to check if global message handle exists first. If it doesn't exist, we need to create one.