CALL SCREEN statement is used for calling a sequence of screens (dynpros) belongs to the current ABAP program. When the screen with number 0 will reach the sequence of screens will be terminated and the program execution will continue from the portion after the CALL SCREEN statement
CALL SCREEN <scr>
[STARTING AT <X1> <Y1>]
[ENDING AT <X2> <Y2>].
Here <scr> will contain the number of screen to call.
STARTING AT and ENDING AT are used for specifying the coordinates (row, column) for the position and size of the screen to display.
The maximum number of screens in a sequence is allowed is 50 at present. If the call exceeding the limit error DYNP_TOO_MANY_CALL_SCREENS will display. If the specified screen cannot be find in that ABAP program the error DYNPRO_NOT_FOUND will be generated. Using CALL SCREEN statement we cannot call a selection screen. For this we need to use the following statement.
CALL SELECTION-SCREEN statement is used for calling a selection screen in the program. Rest everything is similar to CALL SCREEN statement.
CALL SELECTION-SCREEN numb
[STARTING AT x1 y1]
[ENDING AT x2 y2].
- sy-subrc = 0 if the user select execute on the selection screen
- sy-subrc = 4 if the user cancel the selection screen
Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes