10-08-2010 12:59 PM
Hi,
I can call my transaction from a button on two reports output or by directly giving transaction.
Now my requirement is that how do I go back to the previous report from where the transaction is called or to the selection screen if it is directly called through transaction when presses back button.
10-08-2010 1:02 PM
Hi,
If you are using selection screen then on at selection screen command write below logic.
at selection-screen.
case sy-ucomm.
when 'STRT'.
leave to screen 0.
endcase.
If back having some other function code, please check in dibugger the value of sy-ucomm.
If you are using module pool then IN PAI of both the reports write below logic
Module exit.
Module exit.
case sy-ucomm.
when 'BACK'.
leave to screen 0.
endcase.
endmodule.
Edited by: UMANGmehta on Oct 8, 2010 2:07 PM
10-08-2010 1:02 PM
Hi,
If you are using selection screen then on at selection screen command write below logic.
at selection-screen.
case sy-ucomm.
when 'STRT'.
leave to screen 0.
endcase.
If back having some other function code, please check in dibugger the value of sy-ucomm.
If you are using module pool then IN PAI of both the reports write below logic
Module exit.
Module exit.
case sy-ucomm.
when 'BACK'.
leave to screen 0.
endcase.
endmodule.
Edited by: UMANGmehta on Oct 8, 2010 2:07 PM
10-08-2010 1:05 PM
hi
You can do it by either by using leave to transaction or use set screen no. This will do for you.. Hope this information is useful to you.
Regards
Vinodh
10-08-2010 2:03 PM
Hi,
In your transaction write
LEAVE TO SCREEN 0
for back button.
Close the threat if aswered.
THanks,
Anmol.
10-08-2010 2:05 PM
Hi Anmol,
Please check answers already given, before giving any reply, as the same answer has already been given, please check.
Umang Mehta
10-08-2010 2:09 PM
Hi Umang,
I know the threat is aswered, but not clossed, asking user to close the threat, thats it.
Thanks,
Anmol.
10-09-2010 7:20 AM