Application Development 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: 

Back to selection screen

former_member187457
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

Hi,

Use this.


AT USER-COMMAND.
if sy-ucomm = 'BACK'.
   LEAVE TO SCREEN 0.
endif.

Regards

Marcin

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

MarcinPciak
Active Contributor
0 Kudos

Hi,

Use this.


AT USER-COMMAND.
if sy-ucomm = 'BACK'.
   LEAVE TO SCREEN 0.
endif.

Regards

Marcin

0 Kudos

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....