‎2008 Jul 12 2:02 PM
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.....
‎2008 Jul 12 2:20 PM
hi
you should write function code in upper case and in parentheses.
at-selection screen.
case : sy-ucomm.
when 'EXIT'.
leave program.
endcase
‎2008 Jul 12 2:34 PM
no dude i have done like that only but still the problem is not resolved help pls.
‎2008 Jul 12 2:53 PM
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.
‎2008 Jul 12 3:03 PM