Search code examples
abapdynpro

How to get back to the calling screen?


my current screen-build looks like this:

current-program

But when i try to get back from Screen 250(called screen) to 100(the calling screen) it just leaves the program.

    CASE OK_CODE.
*Navigation back to the calling screen
    WHEN 'BACK'.
      SET SCREEN 0.

I hope you guys could help me out. Thanks!


Solution

  • Assign the OK code field in screen 250 to OK_CODE. In screen painter set the OK code in the screen (it's the bottom attribute with the type OK) to OK_CODE and your original code should work.