2008 Nov 12 11:13 AM
Hi,
How will the screen go back to selection screen after display an ERROR message?
Regards,
Darpana
Hi,
How will the screen go back to selection screen after display an ERROR message?
Regards,
Darpana
2008 Nov 12 11:14 AM
hi ,
Use the following statement.
Leave to screen 1000.
message.....Thanks & Regards
2008 Nov 12 11:16 AM
Hello,
If it is a report program and you are giving a error E statement then it will take you to a blank screen. If you want to return back to selection screen then give a Information type I message and use LEAVE TO LIST-PROCESSING to return to selection screen.
Thanks,
Jayant
2021 Nov 24 12:48 PM
2008 Nov 12 11:17 AM
Hi Darpana,
When you want to give your error message, do it as follows.
MESSAGE (msgnumber) TYPE S.
LEAVE TO LIST-PROCESSING.
The message type needs to be status message.
This would give a message, plus this would take you back to the selection screen.
Regards,
Nitin.
2008 Nov 12 11:17 AM
2008 Nov 12 11:19 AM
Hi,
Use the statement LEAVE LIST-PROCESSING. after the error message.
For example:
-
-
If sy-subrc NE 0.
MESSAGE "Errro Message" .
LEAVE LIST-PROCESSING.
Endif.
Regards,
Ravi...
2008 Nov 12 11:20 AM
2008 Nov 12 11:22 AM
2008 Nov 12 11:24 AM
Then there is a lot of help for you in the responce given to your question in this thread.
Hope it helps.
Thanks,
Jayant
2008 Nov 12 11:25 AM
Then try;
LEAVE TO SCREEN <your selection-screen number>Regards
Karthik D
2008 Nov 12 11:28 AM
That is the probelm after displaying an error message we cannot continue and go back to selection screen. It stays at the current screen. And it has to be an ERROR message.
2008 Nov 13 6:27 AM
Hi,
Thanx for all the help.
I found the answer myself.
What i have done is that
MESSAGE text-007 TYPE 'I' DISPLAY LIKE 'E'.
CALL SELECTION-SCREEN scr_no.
LEAVE PROGRAM.
where scr_no is 1000.
In your responses:
Using leave to screen 1000 gives an error saying that the selection-screen is called without using Call Selection-Screen command.
Regards,
Darpana.