Skip to Content
avatar image
Former Member

Regarding Back Button

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Oct 16, 2008 at 12:04 PM

    Hi,

    U try with SET SCREEN 0.

    or LEAVE TO SCREEN 0.

    or CALL SCREEN..

    Regards..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 12:05 PM

    Hi

    Use this

    IF SY-UCOMM = 'WB_BACK'.

    it will go to prevous screen.

    Rewards if helpful

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 12:16 PM

    Hi eveyone,

    its not working

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Oct 21, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded