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

How to return back to selection screen

Former Member
0 Likes
19,084

Hi

I have 1 selection screen in my program. Through this selection screen when clicking on radio-button i am calling another screen. On that called screen i have attached an application toolbar button(BACK) so that i can come back to selection screen on pressing BACK button. But this thing is not working.

When i press back button it gives Error that selection screen is not called using call selection screen, but i have called selection screen by this way only.

Can u plz solve my problem...

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
7,195

Hi,

set screen '0'.

leave screen.

Hi

I have 1 selection screen in my program. Through this selection screen when clicking on radio-button i am calling another screen. On that called screen i have attached an application toolbar button(BACK) so that i can come back to selection screen on pressing BACK button. But this thing is not working.

When i press back button it gives Error that selection screen is not called using call selection screen, but i have called selection screen by this way only.

Can u plz solve my problem...

5 REPLIES 5
Read only

Former Member
0 Likes
7,195

Hello Vijay,

<b>If sy-ucomm = 'BACK'.

CALL SELECTION-SCREEN 1000.

endif.</b>

If useful reward,

Vasanth

Read only

0 Likes
7,195

This in fine that its taking back to selection-screen.

But when I gives new input on selection screen after coming back to selection screen its not executing according to that new input.... its showing result of previous run????

How i can solve this???

Read only

0 Likes
7,195

Hi vijay,

1. I have used just like u, and it works fine.

(ie., it shows results of current selection only, and not the previous).

2. I have used

call SCREEN '9000'. (to call 9000 screen)

leave screen. (to return back)

3. u can cross-verify with this code.

(u can also simply copy paste also, and design a new dummy 9000 screen)

REPORT abc.

*----


parameters : a(10) type c.

parameters : r1 radiobutton group g1 user-command rd,

r2 radiobutton group g1 .

AT SELECTION-SCREEN OUTPUT.

IF R2 = 'X'.

call SCREEN '9000'.

ENDIF.

start-of-selection.

write 😕 a.

----


  • MODULE USER_COMMAND_9000 INPUT

----


*

----


MODULE USER_COMMAND_9000 INPUT.

leave screen.

ENDMODULE. " USER_COMMAND_9000 INPUT

regards,

amit m.

Read only

jayanthi_jayaraman
Active Contributor
7,196

Hi,

set screen '0'.

leave screen.

Read only

Former Member
7,195

case sy-ucomm.

when 'back'.

set screen 0.

endcase.

Try this code for back button created screen.

Cheers.