Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  SAP GUI User Dialogs 

User Dialogs

This example demonstrates the classic user dialogs selection screen, dynpro, message, and list.

Other versions: 7.31 | 7.40 | 7.54

Source Code

<span class="blue">* Selection Screen</span>
    CALL SELECTION-SCREEN 1100 STARTING AT 10 10.
    IF sy-subrc <> 0.
      LEAVE PROGRAM.
    ENDIF.

<span class="blue">* Dynpro</span>
    CALL SCREEN 100.

<span class="blue">* Message</span>
    MESSAGE input TYPE 'I'.

<span class="blue">* List</span>
    WRITE input.

Description

First, an input field is created on the standard selection screen using PARAMETERS. Then, CALL SCREEN is used to call a dynpro that displays the value of the field. The statement MESSAGE sends the text as a message. Finally, it is written to the basic list of the program using WRITE.