
To assign a default value to a parameter, you use the following syntax:
PARAMETERS p ...... DEFAULT f ......
Default value f can be either a literal or a field name. You can only use fields that contain a value when the program is started. These fields include several predefined data objects .
The input field of the parameter on the selection screen is filled with the default value. The user can accept or change this value.
REPORT demo_sel_screen_parameters_3.
PARAMETERS: value TYPE i DEFAULT 100,
name TYPE sy-uname DEFAULT sy-uname,
date TYPE sy-datum DEFAULT '19980627'.
If the name of the program user is FRED, the selection screen appears as follows:

Note that the default value of the field date appears formatted according to the user's master record on the selection screen.