ABAP Keyword Documentation → ABAP - Reference → Calling and leaving program units → Calling Programs → Calling Executable Programs → SUBMIT → SUBMIT - list_options
Program Calls, Influencing the Basic List
The example shows how to influence the basic list of a program called.
Other versions: 7.31 | 7.40 | 7.54
Source Code
    DATA prog_type TYPE trdir-subc.
    CALL SELECTION-SCREEN 1100 STARTING AT 10 10.
    IF sy-subrc <> 0.
      RETURN.
    ENDIF.
    SELECT SINGLE subc
           FROM trdir
           WHERE name = @name
           INTO @prog_type.
    IF sy-subrc <> 0 OR prog_type <> '1'.
      MESSAGE 'Program not found or wrong type' TYPE 'I'
                                               DISPLAY LIKE 'E'.
      RETURN.
    ENDIF.
    name = security_check( name ).
    IF  name IS INITIAL.
      MESSAGE 'Program execution not allowed' TYPE 'I'
                                             DISPLAY LIKE 'E'.
      RETURN.
    ENDIF.
    SUBMIT (name) LINE-SIZE width LINE-COUNT length AND RETURN.
Description
If the program called does not have its own LINE-SIZE or LINE-COUNT
specifications in the REPORT statement, the values width and length are used for its basic list.