Application Development 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: 

hi i need to break the program flow...

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

try leave program

Regads

MD

4 REPLIES 4

Former Member
0 Kudos

Hi

try leave program

Regads

MD

Former Member
0 Kudos

You can write STOP inside AT SELECTION-SCREEN.

This will take you to END-OF-SELECTION.

0 Kudos

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...

0 Kudos

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