To define the input field of a parameter as a radio button, you use the following syntax:
PARAMETERS p ...... RADIOBUTTON GROUP group......
Parameter p is created with type c and length 1, and is assigned to group group. The maximum length of the character string group is 4. You can use additions TYPE and LIKE, but you must refer to a field of type c with length 1. You must assign at least two parameters to each radi group. Only one parameter per group can have a default value assigned using the DEFAULT addition. The default value must be 'X'. If you do not use the DEFAULT addition, the first parameter of each group is set to 'X'.
When the user clicks a radio button on the selection screen, the respective parameter is assigned the value 'X', while all other parameters of the same group are assigned the value ' '.
REPORT demo_sel_screen_param_radiob .
PARAMETERS: r1 RADIOBUTTON GROUP rad1,
r2 RADIOBUTTON GROUP rad1 DEFAULT 'X',
r3 RADIOBUTTON GROUP rad1,
RADIOBUTTON GROUP rad2,
s2 RADIOBUTTON GROUP rad2,
s3 RADIOBUTTON GROUP rad2 DEFAULT 'X'.
The selection screen looks as follows:
Radio buttons r1, r2, and r3 form group rad1, while s1, s2, and s3 form group rad2. On the selection screen, r2 und s3 are selected, while all others are not.