10-09-2008 9:11 AM
Hi All,
my probelm is, after executing the selection-screen ,
i m getting a report with each rows having a checkbox for selection option,
when we do some selections ,i have to click on a pushbutton which i hav created for Sending Mails,
so whn i click on it, it dispaly new screen showning the status for each selection....
its working fine...
now whn i click on BACK button it goes back to the report screen....
thats wt i dont want....
i want to go back to seleciotn screen..
Plz suggest me...
Rohit
10-09-2008 9:27 AM
Hi,
Use this.
AT USER-COMMAND.
if sy-ucomm = 'BACK'.
LEAVE TO SCREEN 0.
endif.
Regards
Marcin
10-09-2008 9:19 AM
i think setting the sy-lsind = 1 in every pushbutton will solve your problem.
or every sending mail add this
sy-lsind = sy-lsind - 1.
Edited by: Etrafanob on Oct 9, 2008 4:23 PM
Edited by: Etrafanob on Oct 9, 2008 4:24 PM
10-09-2008 9:20 AM
Hi Rohit Kumar ,
check the function code of BACK when it comes out of the program and in start-of-selection
case sy-ucomm.
when 'back'.
submit prgm name.
with regards,
Arunprasad.P
10-09-2008 9:27 AM
Hi,
Use this.
AT USER-COMMAND.
if sy-ucomm = 'BACK'.
LEAVE TO SCREEN 0.
endif.
Regards
Marcin
10-09-2008 12:45 PM
inplace of BACK
AT USER-COMMAND.
if sy-ucomm = 'BACK'.
LEAVE TO SCREEN 0.
endif.
.....i used..
AT USER-COMMAND.
if sy-ucomm = '&F3'.
LEAVE TO SCREEN 0.
endif.
its working....