Skip to Content

purpose of call screen 0

Hello Experts,

I know the difference between call screen and set screen , In call screen the current processing of the screen is terminated and a new screen is called and once we press back from the new screen the original screen logic is processed and in set the screen once the current screen is completely processed the next screen would be set under set screen.

I want to know the purpose of call screen 0 and what does this 0 mean and what is the purpose of set screen 0 and what does this zero mean.

Thanks,

RG

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 26, 2016 at 12:14 PM

    With Call Screen 0, you need to have a screen numbered 0 in your program. When you call it, it will reset the screen call stack - from the documentation "The called dynpro sequence is terminated as soon as one of the involved dynpros branches to a next dynpro with number 0. The program continues after CALL SCREEN." If you try calling screen 0 with out creating it, you will get a short dump. The problem with this premise though - is that you cannot create a screen numbered 0.

    Leave to Screen 0 goes back to the previous screen in the call stack. So, confusingly, you will be using LEAVE TO SCREEN 0 along with CALL SCREEN xyz.

    For example, from SCREEN 100...

    CALL SCREEN 200. "Call stack is now 100, 200

    CALL SCREEN 300. "Call stack is now 100, 200, 300

    LEAVE TO SCREEN 0. "Call stack is now 100, 200

    LEAVE TO SCREEN 0. "Call stack is now 100

    LEAVE TO SCREEN 0. "This will leave the program, because there are no other screens in the stack

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2016 at 04:41 PM

    I have never seen "call screen 0" ! Dynpro 0 cannot be created. But "SET SCREEN 0" exists to "leave the current screen sequence" (or using the variant "leave to screen" if one needs to EXIT the current dynpro event (PBO/PAI/...)).

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2016 at 11:49 AM

    I hope Call screen 2000 ->Screen number.

    It might be Leave to Screen 0,

    Now i am at 2000
    you are using Call screen 4000.
    Now i am at 4000.
    If you use Leave to screen 0. Means From(2000) Where the Screen called that place moving.

    Add comment
    10|10000 characters needed characters exceeded