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

EXIT command

Former Member
0 Likes
566

hi,

will EXIT command work in case i dont include START-OF-SELECTION event in my code?

In my requirement i have to use an EXIT command after select stmt but as i am writing the code inside an include program i can not use START-OF-SELECTION event.

3 REPLIES 3
Read only

Former Member
0 Likes
537

AFAIK, EXIT also works within an include, as it EXITs from the currently processed block. In my opinion, the ABAP runtime "adds" an implicit "START-OF-SELECTION" in your case. In case the Include is included in a FM, EXIT will do an EXIT from the FM.

Read only

Former Member
0 Likes
537

Hi,

Exit will work even if you do not have explicit start-of-selection in your program.

This event start after selection screen is executed even if you have not entered the line in the code.

Exit will ebd the event and proceed to next event.

Read only

Former Member
0 Likes
537

If there is anyother eventslike at selection-screen or at selection-screnn output , then you have to write strat-of-selection to work the EXIT command. Otherwise it will work without explicit strat-of-selection .