ABAP Keyword Documentation → ABAP - Reference → User Dialogs
User Dialogs
This example demonstrates the classic user dialog - selection screen, screen, 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 screen that displays the value of the
field. The MESSAGE
statement sends the text as a message. Finally, it is written to the basic list of the program using a WRITE
statement.