Default Values for Parameters
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.
PARAMETERS: VALUE TYPE I DEFAULT 100,
NAME LIKE SY-UNAME DEFAULT SY-UNAME,
DATE LIKE 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.