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

Regarding Back Button

Former Member
0 Likes
680

Hi,

I have created one module pool program which has screen no's 100, 200 300. I have one docking container on the main screen i.e. screen 100. When i go to screen 200 and click Back button i am not getting the docking container.

I tried these two codes.

CASE SY-UCOMM.

WHEN 'BACK'.

SET SCREEN 100.

ENDCASE.

********************

Case SY-UCOMM.

WHEN 'BACK'.

CALL SCREEN 100.

ENDCASE.

Both are not working. Can anyone help

6 REPLIES 6
Read only

Former Member
0 Likes
644

Hi,

U try with SET SCREEN 0.

or LEAVE TO SCREEN 0.

or CALL SCREEN..

Regards..

Read only

Former Member
0 Likes
644

Hi

Use this

IF SY-UCOMM = 'WB_BACK'.

it will go to prevous screen.

Rewards if helpful

Read only

Former Member
0 Likes
644

hi,

make sure you have to write this code in PBO of screen 200

case sy-ucomm.

when 'BACK'.

call screen '100'.

endcase.

BACK must be defined in gui status.

regards,

lokesh

Read only

Former Member
0 Likes
644

Hi eveyone,

its not working

Read only

0 Likes
644

Hi Mohammed,

Case sy-ucomm.

when 'BACK'.

LEAVE TO SCREEN 0. (or) CALL SCREEN 100.

Endcase.

write it in PAI of screen 200. ( dont forget to set the PF status for screen 200).

Regards,

Goutham

Read only

Former Member
0 Likes
644

Hi,

If you have given the function code for back button as 'BACK' in the pf status of screen '200' then you dont have to code for that as the working of that button will be taken care by sap.

But if yougave some other Function code for back button lets say 'BK'.

then for that you have to do coding in the USER_command module in PAI in the screen 200.

You can code like this.

Case sy-ucomm.

when 'BK'.

LEAVE TO SCREEN '0'.

.......

ENDCASE.

**********************

Regards,

Syed