Get Example source ABAP code based on a different SAP table
ID DYNPRO% • CALL SCREEN ABAP Statement
CALL SCREEN> Short Reference >
ABAP_SYNTAX CALL SCREEN dynnr $[STARTING AT col1 lin1 $[ENDING AT col2 lin2$]$].>
ABAP Addition ... STARTING AT col1 lin1 $[ENDING AT col2 lin2$]>
What does it do? This statement calls the dynpro> with the dynpro number> specified in dynnr >. dynnr> expects a data object of the type n> and the length 4. The call starts a new dynpro sequence>, which is embedded in the current dynpro sequence. The dynpro with dynpro number dynnr> is the initial dynpro of the dynpro sequence. In a dynpro sequence started by a transaction code, up to 50 other dynpro sequences can be nested. The called dynpro sequence is ended when one of the dynpros involved branches to the next dynpro> with the number 0. The program flow is then continued after CALL SCREEN>. The statement CALL SCREEN> accesses the dynpros of the relevant main program> of the current program group> and these use the global data and dialog modules of the main program. If the specified dynpro does not exist in the main program of the program group, an uncatchable exception is raised. By default, the screens> of all dynpros of the called dynpro sequence are displayed in the current GUI window. The addition STARTING AT> can be used to open a modal dialog box.
Latest notes: Except when calling a dynpro from an externally called subroutine, the main program, where the dynpro must be available, is usually the current program. In an externally called subroutine, the main program depends on the organization of the programs in the ABAP_ISESS > which depends on the current call sequence>. ABAP_HINT_END • STARTING AT CALL SCREEN • ENDING AT CALL SCREEN
ABAP Addition >
What does it do? The addition STARTING AT> opens a new popup level> and displays all screens of the called dynpro sequence in a modal dialog box. The upper left corner of the dialog box is determined by the values in col1> and lin1> for column and line. The values refer to the GUI window with popup level 0. The lower right corner is set automatically or col2 > and lin2> can be used to specify it after ENDING AT>. col1>, lin1>, col2>, and lin2> expect data objects of the type i> . The values of col1>, lin1> should be less than col2> , lin2>, otherwise the behavior will be undefined. The maximum popup level is 9.
Latest notes:
The called dynpro should not be a selection screen>. To call a selection screen, the statement CALL SELECTION-SCREEN>> must be used.