2011 Mar 14 1:12 PM
Hi all.
I have developed a report. I have to do a check in program ( in start-of-selection, no in at selection-screen), and if this check is wrong, I want to show an error message and back to selection screen. How can I get it?
Thanks a lot.
Hi all.
I have developed a report. I have to do a check in program ( in start-of-selection, no in at selection-screen), and if this check is wrong, I want to show an error message and back to selection screen. How can I get it?
Thanks a lot.
2011 Mar 14 1:16 PM
you can use a message Type I , which shows a dialogbox and then return.
like.
if ....
Message 'Error' type 'I'.
return.
endif.
2011 Mar 14 1:16 PM
Hi,
you can either use an error message or can use display like option and exit the selection screen routine.
message s000 with 'Error at selection screen' display like 'E'.
Exit.
Regards,
Anil N.
2011 Mar 14 1:26 PM
Please use the syntaxes DISPLAY LIKE and LEAVE LIST-PROCESSING to go back to selection screen after error in START-OF-SELECTION event. Something like
start-of-selection.
message s000 display like 'E'.
leave list-processing.
Regards
Ranganath
2011 Mar 14 3:09 PM
I prefer to use :
MESSAGE 'PLEASE INSERT THE RIGHT NUMBER' TYPE 'E' DISPLAY LIKE 'I'.
d_error = 0.
and then give every code
check d_error ne 0. (so it will pass all of the code and back to selection screen.
well it depends on the situation actually.
you also could try by putting :
MESSAGE 'PLEASE INSERT THE RIGHT NUMBER' TYPE 'E' DISPLAY LIKE 'I'.
exit.
or
MESSAGE 'PLEASE INSERT THE RIGHT NUMBER' TYPE 'E' DISPLAY LIKE 'I'.
leave to screen 0.
hope it works.