Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Calling and leaving program units →  Calling ABAP 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
           INTO prog_type
           WHERE name = name.
    IF sy-subrc = 0 AND prog_type = '1'.
      SUBMIT (name) LINE-SIZE width LINE-COUNT length AND RETURN.
    ELSE.
      MESSAGE 'Program not found or wrong type' TYPE 'I'
                                               DISPLAY LIKE 'E'.
    ENDIF.

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.