10-01-2008 1:30 PM
Hi all
I have a strange problem that every warning message is getting triggrred as an error message.
for exp even a simple code like below is throwing error message instead of warning
start-of-selection.
write: 'Welcome'.
message 'warning1' type 'W'.
write 'pavan'.
I have no clue why it should happen.
<removed_by_moderator>
Edited by: Julius Bussche on Oct 1, 2008 3:30 PM
10-01-2008 1:42 PM
GO to SAP Easy Access Screen.
Click ALT + F12
Select Options
In the Option Tab check out the check boxes for Messages
all should be blank
10-01-2008 1:53 PM
ajay,
this is typical system behaviour. Message types - how they appear is all dependent upon, the context where it is called from. if u call a warning message in start of selection..it will appear as an error message..
see help for message types... it has detailed description about it.
The message type specifies how the message is displayed, and also specifies the subsequent program flow. Valid message types are A, E, I, S, W, and X. The abbreviations stand for termination message, error message, information message, status message, warning, and exit message, respectively.
The system behavior after sending a message of a specific message type depends on the context. It is shown in the following table for dialog modules and event blocks.
Processing block Message type
--------------------------------------------------------------
A E I S W X
--------------------------------------------------------------
PAI module 1 2 3 4 5 6
PAI module for POH 1 7 3 4 7 6
PAImodule for POV 1 7 3 4 7 6
--------------------------------------------------------------
AT SELECTION-SCREEN for PAI 1 8 3 4 9 6
AT SELECTION-SCREENfor POH 1 7 3 4 7 6
AT SELECTION-SCREENfor POV 1 7 3 4 7 6
AT SELECTION-SCREEN ON EXIT 1 7 3 4 7 6
--------------------------------------------------------------
AT LINE-SELECTION 1 10 3 4 10 6
AT PF## 1 10 3 4 10 6
AT USER-COMMAND 1 10 3 4 10 6
--------------------------------------------------------------
INITIALIZATION 1 11 3 4 11 6
START-OF-SELECTION 1 11 3 4 11 6
GET 1 11 3 4 11 6
END-OF-SELECTION 1 11 3 4 11 6
--------------------------------------------------------------
TOP-OF-PAGE 1 11 3 4 11 6
END-OF-PAGE 1 11 3 4 11 6
TOP-OF-PAGE DURING ... 1 10 3 4 10 6
--------------------------------------------------------------
LOAD-OF-PROGRAM 1 1 4 4 4 6
--------------------------------------------------------------
PBO module 1 1 4 4 4 6
AT SELECTION-SCREEN OUTPUT 1 1 4 4 4 6
--------------------------------------------------------------
this says that W has a behaviour 11 , in start of selection.
see explanation for 11 below.
bold
The program is interrupted and an empty screen with an empty GUI status is displayed. By default, the message is displayed in the status bar of the current window. The system returns to the call position of the program after a user action
10-01-2008 5:09 PM
Thanks Sujamol
I got your point.
My real situation is something like this. I have a warning message after END-OF-SELECTION . Now since this is throwing an error as I explained but the requirement is that we should be able to proceed further even after message. One way to do this is by using message type 'I' . But is there any other way so that we can display warning so that the message can be bypassed and continue further just like a normal warning message.
10-01-2008 5:20 PM
Hi,
Try this..
START-OF-SELECTION.
MESSAGE 'My message' TYPE 'W' DISPLAY LIKE 'W'.
Thanks
Naren
10-01-2008 5:29 PM
Thanks Naren
I tried using what you said. This way I do get a warning message but the point is that the behavior is again that of an error message. What i mean to say is that still i am a not able to proceed further when i press enter. In a typical warning message we are able to continue with rest of program. But in this case the program is terminated with warning message.
10-01-2008 5:36 PM
At start-of-selection event both error and warning behaviour is same it will not allow the program to proceed further. Change to I.
10-01-2008 5:36 PM
Hi,
Then probably you might have to give the type as I or S, if you want to continue processing.
MESSAGE 'My message' TYPE 'S' DISPLAY LIKE 'W'.
Thanks
Naren
10-01-2008 5:53 PM
Thanks a lot to all of you.
I think i will go with using message type 'I'
04-16-2015 5:24 PM