cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear All,

I need to know a way in order to raise an error message in programme i.e when there is an error in the programme and if I run this program it should raise an error message.

With Regards,

Madhu.S.N

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

write the statement :

message E001 with text-001.

Depending on the program context, an error dialog appears

here the program stops because of the eerror message, if you correct that and reexecute then this will work.

whateer you give in the TEXT-001, that will come as a message, and this message will show in the status bar...

if you write this in the selection screen : -

Selection screen processing terminates, and the selection screen is redisplayed. The screen fields specified through the additions to the AT SELECTION-SCREEN statement are ready for input. The user must enter a new value. The system then restarts the selection screen processing using the new values. You cannot use error messages with the ON HELP-REQUEST or ON VALUE-REQUEST additions. Instead, a runtime error occurs.

Regards

Sudheer