Skip to Content
avatar image
Former Member

Help on Back Button on a custom screen

Hi,

I am running a custom report which calls the screen 100 first and upon double click on a particular line item it calls the screen 200. I am facing a problem with back button. When i click back button from screen 200 screen 100 is called properly. But when i click back from screen 100 it should go to selection screen but its again calling the same screen. Please let me know how can i solve this.

Thank You,

Regards,

Swaroop

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 21, 2007 at 10:20 PM

    LEAVE TO SCREEN 0.

    will return you to the selection screen.

    Good luck

    Brian

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 10:21 PM

    In the PAI of the screen 100, do something like this.

    case ok_code. 
      when 'BACK'.
        set screen 0.
        leave screen.
    
    endcase.

    Regards,

    RIch Heilman

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rich, I was doing the same thing...but to my surprise when i come from screen 200 to 100 and then back button with leave to screen 0 its calling screen 100 again.

      Thank You,

      Regards,

      Swaroop