SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS p_r RADIOBUTTON GROUP g1 USER-COMMAND select DEFAULT 'X'. "日模式
PARAMETERS p_y RADIOBUTTON GROUP g1 . "月模式
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE T1.
SELECT-OPTIONS:
s_bukrs FOR bsid-bukrs . " 公司代碼
SELECTION-SCREEN END OF BLOCK b2.ide
AT SELECTION-SCREEN OUTPUT .spa
IF p_r IS NOT INITIAL.
t1 = '日'
ELSE.
t1 = '月'
ENDIF.it
這樣就好了。class
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE T1.變量
這裏已經聲明瞭t1這個變量,不須要從新定義select