‎2007 Oct 17 5:41 AM
hi friends..
i hav 2 pgm in se38, for eg zpgm1 and zpgm2..
zpgm1 contain selectionscreen
zpgm2 is an alv report with back button(user command)
zpgm2 is called by using submit statement from zpgm1 based on the selection screen in zpgm1
my issue is
while pressing the back button in zpgm2 program i want to return to zpgm1 selection screen..
how can i get tis..
thanks in advance
‎2007 Oct 17 5:44 AM
Assign a transaction to Zprogram1 say ZP1.
LEAVE TO TRANSACTION ZP1.
‎2007 Oct 17 5:47 AM
hi prashant..
thanks 4 ur effort on my query..
is there any other way by using leave screen statement
‎2007 Oct 17 5:46 AM
‎2007 Oct 17 5:46 AM
‎2007 Oct 17 5:47 AM
IN PAI section write (if you are using oops)
Or for normal also
CASE sy-ucomm.
WHEN 'PUSHBUTTON'.
SUBMIT zpgm2.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.
so that zpgm2 is called by using submit statement from zpgm1 based on the selection screen in zpgm1
Rewards if useful...........
Minal
‎2007 Oct 17 5:48 AM
Hi,
In the back button user command use any one of this
Leave to Screen XXXX(give the selection screen no.) or
Leave to list processing.
Thanks,
Muthu
‎2007 Oct 17 5:53 AM
Have u tried using SUBMIT again..
I mean when u write
<b>case sy-ucomm</b> for pushbutton
write <b>submit program zpgm1</b>
I think it shud work out
‎2007 Oct 17 6:01 AM
hi prasant..
still i hav a issue..
i tried wit submit once again from zpgm2 to zpgm1
‎2007 Oct 17 6:05 AM
‎2007 Oct 17 6:34 AM
its not possible to use return becoz
in zpgm1 i do some selection.
zpgm2 i do some updation in database..
if i give submit and return
it enter into the zpgm1..
i don't want control return back to zpgm1
i want the control in the selction screen of zpgm1