<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hide selection screen based on radio button. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079875#M1970825</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Two Mistakes from Your end:&lt;/P&gt;&lt;P&gt;1) You did not Assign USER COMMAND value to your radio button group.&lt;/P&gt;&lt;P&gt;2) In the Loop at screen, you are comparing SC1 and SC2 using lowercase.&lt;/P&gt;&lt;P&gt;Below is the correct code for your reference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK search_block WITH FRAME TITLE TEXT-001.
PARAMETER: rad_flt RADIOBUTTON GROUP rgb USER-COMMAND cmd_rd DEFAULT 'X',
           rad_cus RADIOBUTTON GROUP rgb.
SELECTION-SCREEN END OF BLOCK search_block.

* Selection screen 1
SELECTION-SCREEN BEGIN OF BLOCK flight_block WITH FRAME TITLE TEXT-002.
PARAMETER: carrid TYPE sbook-carrid,
           connid TYPE sbook-connid,
           fldate TYPE sbook-fldate MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK flight_block.

*Selection screen 2
SELECTION-SCREEN BEGIN OF BLOCK customid_block WITH FRAME TITLE TEXT-003.
PARAMETER: customid TYPE sbook-customid MODIF ID sc2.
SELECTION-SCREEN END OF BLOCK customid_block.

AT SELECTION-SCREEN OUTPUT.
* Toggle the selection screens based on radio buttons
  LOOP AT SCREEN.
    IF rad_flt = 'X' AND screen-group1 = 'SC2'.
      screen-active = 0.
      MODIFY SCREEN.
    ELSEIF rad_cus = 'X' AND screen-group1 = 'SC1'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards!&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Nov 2019 03:45:35 GMT</pubDate>
    <dc:creator>former_member1716</dc:creator>
    <dc:date>2019-11-21T03:45:35Z</dc:date>
    <item>
      <title>Hide selection screen based on radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079872#M1970822</link>
      <description>&lt;P&gt;I'm new to abap. Toggling(hide) the selection screens based on radio button input. But the code seems not working. &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;* Radio button block
SELECTION-SCREEN BEGIN OF BLOCK search_block WITH FRAME TITLE text-001.
PARAMETER: rad_flt RADIOBUTTON GROUP rgb DEFAULT 'X',
 rad_cus RADIOBUTTON GROUP rgb.
SELECTION-SCREEN END OF BLOCK search_block.


* Selection screen 1
SELECTION-SCREEN BEGIN OF BLOCK flight_block WITH FRAME TITLE text-002.
PARAMETER: carrid TYPE sbook-carrid,
 connid TYPE sbook-connid,
 fldate TYPE sbook-fldate MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK flight_block.


*Selection screen 2
SELECTION-SCREEN BEGIN OF BLOCK customid_block WITH FRAME TITLE text-002.
PARAMETER: customid TYPE sbook-customid MODIF ID sc2.
SELECTION-SCREEN END OF BLOCK customid_block.


AT SELECTION-SCREEN OUTPUT.
* Toggle the selection screens based on radio buttons
 LOOP AT SCREEN.
 IF rad_flt = 'X' AND screen-group1 = 'sc2'.
 screen-active = 0.
 MODIFY SCREEN.
 ELSEIF rad_cus = 'X' AND screen-group1 = 'sc1'.
 screen-active = 0.
 MODIFY SCREEN.
 ENDIF.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079872#M1970822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-20T19:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide selection screen based on radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079873#M1970823</link>
      <description>&lt;P&gt;Question also asked at &lt;A href="https://stackoverflow.com/questions/58960894/not-able-to-toggle-selection-screens-based-on-radio-button-input"&gt;StackOverflow&lt;/A&gt; with a comment/answer.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079873#M1970823</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-20T19:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hide selection screen based on radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079874#M1970824</link>
      <description>&lt;P&gt;Hi, there are lots of example on the forums. please search ..&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/6427270/dynamic-selection-screen-change-in-selection-scree.html"&gt;https://answers.sap.com/questions/6427270/dynamic-selection-screen-change-in-selection-scree.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/4404812/dynamic-selection-screen-modification.html"&gt;https://answers.sap.com/questions/4404812/dynamic-selection-screen-modification.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hint: you are missing something in your program...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 02:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079874#M1970824</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-11-21T02:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hide selection screen based on radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079875#M1970825</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Two Mistakes from Your end:&lt;/P&gt;&lt;P&gt;1) You did not Assign USER COMMAND value to your radio button group.&lt;/P&gt;&lt;P&gt;2) In the Loop at screen, you are comparing SC1 and SC2 using lowercase.&lt;/P&gt;&lt;P&gt;Below is the correct code for your reference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK search_block WITH FRAME TITLE TEXT-001.
PARAMETER: rad_flt RADIOBUTTON GROUP rgb USER-COMMAND cmd_rd DEFAULT 'X',
           rad_cus RADIOBUTTON GROUP rgb.
SELECTION-SCREEN END OF BLOCK search_block.

* Selection screen 1
SELECTION-SCREEN BEGIN OF BLOCK flight_block WITH FRAME TITLE TEXT-002.
PARAMETER: carrid TYPE sbook-carrid,
           connid TYPE sbook-connid,
           fldate TYPE sbook-fldate MODIF ID sc1.
SELECTION-SCREEN END OF BLOCK flight_block.

*Selection screen 2
SELECTION-SCREEN BEGIN OF BLOCK customid_block WITH FRAME TITLE TEXT-003.
PARAMETER: customid TYPE sbook-customid MODIF ID sc2.
SELECTION-SCREEN END OF BLOCK customid_block.

AT SELECTION-SCREEN OUTPUT.
* Toggle the selection screens based on radio buttons
  LOOP AT SCREEN.
    IF rad_flt = 'X' AND screen-group1 = 'SC2'.
      screen-active = 0.
      MODIFY SCREEN.
    ELSEIF rad_cus = 'X' AND screen-group1 = 'SC1'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards!&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2019 03:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079875#M1970825</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-11-21T03:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide selection screen based on radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079876#M1970826</link>
      <description>&lt;P&gt;ABAP documentation: &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/abapparameters_screen.htm#!ABAP_ADDITION_5@5@"&gt;PARAMETERS ... RADIOBUTTON GROUP ... [USER-COMMAND ...]&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-selection-screen-based-on-radio-button/m-p/12079876#M1970826</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-21T07:59:06Z</dc:date>
    </item>
  </channel>
</rss>

