Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Calling and leaving program units →  Calling Programs →  Calling Executable Programs →  SUBMIT →  SUBMIT - list_options 

Program Calls, Modifying the Basic List

The example shows how to modify the basic list of a called program.

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 called program does not specify LINE-SIZE or LINE-COUNT itself in the REPORT statement, the values width and length are used for its basic list.