Skip to Content
-2
Dec 13, 2021 at 10:55 AM

How deactivate a selection-screen based on radio-buttons

51 Views

I have three radiobuttons (p_displ, p_sort, p_filter). If p_displ is selected (default), both selection-screens (sort_options and filter_options) should be inactive or invisible.

If p_sort is selected, the block sort_options should be visible; if p_filter is selected the block filter_options.

I tried nearly everything, but it wasn't successfull. It would be great if you could take a look and give me a hint or idea!

These are my selection-screens:

SELECTION-SCREEN BEGIN OF BLOCK task WITH FRAME TITLE TEXT-t01.
PARAMETERS p_displ RADIOBUTTON GROUP opt user-command flag DEFAULT 'X'. "Anzeigen (Default)
PARAMETERS p_sort RADIOBUTTON GROUP opt. "Sortieren
PARAMETERS p_filter RADIOBUTTON GROUP opt. "Filtern
SELECTION-SCREEN END OF BLOCK task.

SELECTION-SCREEN BEGIN OF BLOCK sort_options WITH FRAME TITLE TEXT-t01.
PARAMETERS p_status RADIOBUTTON GROUP opt2. "Nach Status sortieren
PARAMETERS p_genre RADIOBUTTON GROUP opt2. "Nach Genre sortieren
PARAMETERS p_medium RADIOBUTTON GROUP opt2. "Nach Medium sortieren
SELECTION-SCREEN END OF BLOCK sort_options.

SELECTION-SCREEN BEGIN OF BLOCK filter_options WITH FRAME TITLE TEXT-t01 .
PARAMETERS p_sta_in TYPE ztgmbb_moviestatus modif id 002. "Nach eingegebenem Status sortieren
PARAMETERS p_gen_in TYPE ztgmbb_moviegenre modif id 002. "Nach eingegebenem Genre sortieren
PARAMETERS p_med_in TYPE ztgmbb_moviemedium modif id 002. "Nach eingegebenem Medium sortieren
SELECTION-SCREEN END OF BLOCK filter_options.