10-16-2008 1:00 PM
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
10-16-2008 1:04 PM
Hi,
U try with SET SCREEN 0.
or LEAVE TO SCREEN 0.
or CALL SCREEN..
Regards..
10-16-2008 1:05 PM
Hi
Use this
IF SY-UCOMM = 'WB_BACK'.
it will go to prevous screen.
Rewards if helpful
10-16-2008 1:06 PM
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
10-16-2008 1:16 PM
10-21-2008 11:52 AM
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
10-21-2008 1:56 PM
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