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

call selection screen after displaying error messge

Former Member
0 Likes
585

Hi,

I am genearting a zreport but I am not able to come to the selection screen of the Report program after I display the error message. It simply exits from the program. If I use information message, its working fine. But I want to display an error message only (after checking from data base, when data is invalid). So, can you help me with this.

how to come back to selection screen or to go to other tcode after displaying error message..

any help

regards sarabjit

Hi,

I am genearting a zreport but I am not able to come to the selection screen of the Report program after I display the error message. It simply exits from the program. If I use information message, its working fine. But I want to display an error message only (after checking from data base, when data is invalid). So, can you help me with this.

how to come back to selection screen or to go to other tcode after displaying error message..

any help

regards sarabjit

3 REPLIES 3
Read only

Former Member
0 Likes
554

Hi,

You can display a information message like error message. Try like this,


MESSAGE l_errmsg TYPE 'I' DISPLAY LIKE 'E'. 

This is a information message but it will display in red like a error message thus enabling you to come back to the selection screen.

Regards,

Vikranth

Read only

Former Member
0 Likes
554

You can use the statement mentioned above and give an addition

LEAVE LIST-PROCESSING

Regards

Ansari

Read only

Former Member
0 Likes
554

thanks to both of u