Dialog Programming is a special type of programming in SAP ABAP. The ABAP/4 Module is called only if the user has entered the value in the field value since the last screen If both names are the same, it transfers screen fields values to ABAP/4 programs fields and Vice Versa.This happens.
my current screen-build looks like this:
But when i try to get back from Screen 250(called screen) to 100(the calling screen) it just leaves the program.
I hope you guys could help me out. Thanks!
user6814009
4 Answers
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.
Gert BeukemaGert Beukema
You might want to try LEAVE TO SCREEN 100 instead of SET SCREEN 0.
This post gives detailed infos about it.
TobsenTobsen
Solved
Had to set ok_code = sy-ucomm because the ok_code value didnt change.
user6814009
leave to screen 0
or
set screen 0
both variants work to return to previous screen, but it is important that you called the subsequent screen with
call screen '1234'
so it behaves like a stack of screens.
instead of
set screen '1234'
(the latter would replace the current screen with the new screen, so no 'pop from screen stack' is possible)