Show TOC

Processing Radio ButtonsLocate this document in the navigation structure

Use

In the PAI event of the selection screen, the

AT SELECTION-SCREEN ON RADIOBUTTON GROUP group

event is triggered. To define a radio button group , use the addition RADIOBUTTON GROUP group in the corresponding PARAMETERS statements. This event block allows you to check the whole group. If an error message occurs within this event block, the radio button group is made ready for input again on the selection screen. The individual fields of radio button groups do not trigger the event AT SELECTION-SCREEN ON field .

        


        
REPORT demo_at_selection_on_radio.
        
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
        
PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',
        
r2 RADIOBUTTON GROUP rad1,
        
r3 RADIOBUTTON GROUP rad1.
        
SELECTION-SCREEN END OF BLOCK b1.
        
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
        
PARAMETERS: r4 RADIOBUTTON GROUP rad2 DEFAULT 'X',
        
r5 RADIOBUTTON GROUP rad2,
        
r6 RADIOBUTTON GROUP rad2.
        
SELECTION-SCREEN END OF BLOCK b2.
        
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rad1.
        
IF r1 = 'X'.
        
MESSAGE w888(sabapdocu) WITH text-001.
        
ENDIF.
        
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rad2.
        
IF r4 = 'X'.
        
MESSAGE w888(sabapdocu) WITH text-001.
        
ENDIF.
        


        


         

If the user does not change one of the radio button groups, a warning is displayed.