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

Blank screen

Former Member
0 Likes
1,030

hi,

how to show blank screen with error message ???

and how to end the program by giving the proper error message ??

Jimmy

9 REPLIES 9
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
915

If you want to error the program and give an error message, all you need to do is somthing like this.

message A001(00) with 'Error, the program is ending'.

Regards,

Rich Heilman

Read only

0 Likes
915

thanks

but my program is dialog programm so after writin this ,i can see some weiard window with error message .

Can't i show blank screnn and on status bar with error message

Jimmy

Read only

Former Member
0 Likes
915

message e000(<your message calss>) with 'Error'.

in se91 create a message class and also create a message 000 with place holders (&).

Regards,

Ravi

Read only

rahulkavuri
Active Contributor
0 Likes
915

If its regular reporting then

MESSAGE E000 with "ERROR MESSAGE".

This will display blank screen with error

If u want to end the program then use

EXIT.

LEAVE TO SCREEN 0.

Read only

0 Likes
915

hi thanks all,

but when error message is comming i can see in background some screen . but i axpect it should be blank screen .

jimmy

Read only

0 Likes
915

hi jimmy,

create an empty screen.say '0100' in se51.

then call it in your program.

call screen '0100'.

message e000(ZZ) with 'Error'.

REgards,

Ravi

Read only

0 Likes
915

Do you want that the program should end immediately after throwing the message? If so, please look at my previous post about the "Abort" message. This will throw the error in a dialog box and end the program.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
915

Hi,

You can end the program by using

message e000(ZZ) 'Error'.

Regards,

Amole

Read only

Former Member
0 Likes
915

hi,

message E100(Message_id).

E---Error ( u can also use A, S , W , I )

100---Error Message Number

Message_id --- go to se91 for message id