通过AT SELECTION-SCREEN实现,举例如下:
REPORT zsunfeiquan.
PARAMETERS: rb1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND f1,
rb2 RADIOBUTTON GROUP g1.
PARAMETERS: pc_file LIKE rlgrap-filename OBLIGATORY.
AT SELECTION-SCREEN OUTPUT.
IF rb2 = 'X'.
pc_file = 'D:\Parts_Bonus_Template.xls'.
ELSEIF rb1 = 'X'.
pc_file = 'D:\Parts_Bonus.txt'.
ENDIF.