09-25-2008 10:09 AM
hi all,
I was using modify screen in my program to change some fields in at selection-screen.
when my program flow encounters any error in the code then it has to stop execution and display the selection screen content.
without using the "EXIT" statement is there any way to do that.
i even tried "LEAVE TO SCREEN 0" but it doesint worked.
09-25-2008 10:12 AM
09-25-2008 10:12 AM
09-25-2008 10:13 AM
You can write STOP inside AT SELECTION-SCREEN.
This will take you to END-OF-SELECTION.
09-25-2008 1:17 PM
hai thanks by giving the stop statement the program breaks at my error position and jumps to the end of selection directly.
but the leave program does some problems i wont let the control to the selection screen back insted it returns the control to the abap editor...
09-26-2008 4:44 AM
Hi
"but the leave program does some problems i wont let the control to the selection screen back insted it returns the control to the abap editor..."
I think this is because, you are executing the program using SE38, assign a transaction to program and execute, it may work properly
Regards
MD