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

leave program issue

Former Member
0 Likes
577

hi to all

i have an issue in leave program key word.

i have added 2 push buttons one is save and one is exit. when i click exit i wrote leave program in AT-Selection screen event.

but it is not cmg back to program instead it is gng to output screen and shows the output.

at-selection screen.

case : sy-ucomm.

when exit.

leave program.

endcase.

pls solve wat mistake i have done.

thnx in advance.....

4 REPLIES 4
Read only

Former Member
0 Likes
523

hi

you should write function code in upper case and in parentheses.

at-selection screen.
case : sy-ucomm.
when 'EXIT'.
leave program.
endcase

Read only

Former Member
0 Likes
523

no dude i have done like that only but still the problem is not resolved help pls.

Read only

Former Member
0 Likes
523

HI...

DONT USE LEAVE PROGRAM..this will exit the enitire program...instead you can use leave screen0.

set screen 0.

that might help you...

if you use leave program it will exit the program itself.

Read only

Former Member
0 Likes
523

where to key in leave to and set screen ?????????