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 button in standard selection screen is not working properly

Former Member
0 Kudos

Hi all,

in my program there are 2 screens. one is standard selection screen(10) and Table control (100).

when i enter some values in 10 and press execute it moves to 100.

i put pfstatus to table control(100). when i press BACK ( standard tool bar) button in 100 it takes to 10. it is fine .

but when i press back button in 10 ( standard tool bar) it again takes me to 100. instead of sap easy access screen.

i tried with pfstatus for selection screen but it is not solved..

while debugging the control came to pbo of 100 when press back button of 10.

waiting for ur replys

1 ACCEPTED SOLUTION

Former Member

Hi,

Kindly try with folllowing command in ur standard selection screen

(10).

AT SELECTION-SCREEN ON EXIT-COMMAND.

LEAVE PROGRAM.

IF useful.............

Regards.

S.Senthil kumar.

10 REPLIES 10

Former Member
0 Kudos

hi kiran,

u can try the following code for back button...

write this code in the PAI of screen 10 so that it does not goes to the next screen 100.

when 'BACK'

leave program.

please let me know if it helps u.

with best regards,

kanika

Former Member
0 Kudos

Hi,

Try this code on PAI module of screen 10.

data: ok_code type sy-ucomm.
module user_command_010 input.
case ok_code.
when 'BACK'.
leave program.
endcase.
endmodule.

Regards,

Sri

0 Kudos

screen 10 is a standard selection screen.

how can we write code in PAI of screen 10.

0 Kudos

Hi Kirankumar Peram,

By what code you get back to the SELECTION-SCREEN 10?

If through

CALL SELECTION-SCREEN 10.

then change it to as follow,

  SET SCREEN 0.
  LEAVE SCREEN.  

Try this.

Regards,

R.Nagarajan.

-


We can -


Former Member
0 Kudos

it should come back from screen 100 to screen 10..when press back at screen 100.

if i write above code it will directly take from screen 100 to sap easy access screen

Edited by: kirankumar peram on Oct 9, 2008 8:09 AM

0 Kudos

Hi Kirankumar Peram,

By what code you get back to the SELECTION-SCREEN 10?

or else just the screen definition.

SELECTION-SCREEN : BEGIN OF ...
...
SELECTION-SCREEN : END   OF ...

Regards,

R.Nagarajan.

-


We can -


0 Kudos

In screen 100 set next screen as 10

Former Member

Hi,

Kindly try with folllowing command in ur standard selection screen

(10).

AT SELECTION-SCREEN ON EXIT-COMMAND.

LEAVE PROGRAM.

IF useful.............

Regards.

S.Senthil kumar.

Former Member
0 Kudos

thankyou very much senthil.its working fine..

0 Kudos

Thanks Senthil. It works like charm.