2022 Jan 21 11:56 PM
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
2022 Feb 01 8:19 PM
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
2022 Jan 22 6:18 AM
2022 Jan 22 9:24 AM
MESSAGE behaves differently depending on when/where it's triggered. The ABAP documentation explains all the differences.
2022 Jan 24 2:38 PM
Did you look for Messages - Behavior in Abap online documentation after Sandra and Matthew's advice?
2022 Jan 25 6:56 AM
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
2022 Feb 01 8:19 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |