Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How deactivate a selection-screen based on radio-buttons

0 Kudos

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.

3 REPLIES 3

former_member751591
Participant
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with Community Q&A , as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your Profile you encourage readers to respond.

FredericGirod
Active Contributor

I think your question is one of the most asked question:

https://answers.sap.com/questions/4312306/5-radio-buttons-enable-disable.html

.....

raymond_giuseppi
Active Contributor
0 Kudos

Could you post the code you wrote in AT SELECTION-SCREEN OUTPUT (everything?)

(But this is a FAQ)