Application Development and Automation 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: 
Read only

Back to selection screen

RahulKeshav
Active Contributor
0 Likes
939

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
Read only

MarcinPciak
Active Contributor
0 Likes
675

Hi,

Use this.


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

Regards

Marcin

4 REPLIES 4
Read only

Former Member
0 Likes
675

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

Read only

Former Member
0 Likes
675

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

Read only

MarcinPciak
Active Contributor
0 Likes
676

Hi,

Use this.


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

Regards

Marcin

Read only

0 Likes
675

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