<?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: Disabling screen elements on a selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522939#M1069264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the guys said to you, u need to change the attribute of selection-screen in the event AT SELECTION-SCREEN OUTPUT, but u need to assign an OK-CODE to the radiobutton of group1, in this way after pressing a radiobutton the event will be triggered automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your modification should be like following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: r1 RADIOBUTTON GROUP g1 default 'X' USER-COMMAND AAA,
            r2 RADIOBUTTON GROUP g1,
            r3 RADIOBUTTON GROUP g1.

PARAMETERS: r4 RADIOBUTTON GROUP g2 DEFAULT 'X' MODIF ID 001,
            r5 RADIOBUTTON GROUP g2             MODIF ID 001,
            r6 RADIOBUTTON GROUP g2             MODIF ID 001.

AT SELECTION-SCREEN OUTPUT.

  case 'X'.
    when r3.
    when r1 or r2.
      loop at screen.
        if screen-group1 = '001'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
  endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 16:41:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T16:41:36Z</dc:date>
    <item>
      <title>Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522934#M1069259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can one disbale/enable radio buttons on a standard selection screen, like the one created for a report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Radio buttons 1,2, and 3 are in the same group G1.&lt;/P&gt;&lt;P&gt;Radio button 1&lt;/P&gt;&lt;P&gt;Radio button 2&lt;/P&gt;&lt;P&gt;Radio button 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another radio button group G2, that has 3 other radio buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to enable the user to be able to select radio buttons from G2 only if they have selected radio button 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the available AT SELECTION-SCREEN statements but with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522934#M1069259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522935#M1069260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always use the SCREEN table to modify the elements on the screen.&lt;/P&gt;&lt;P&gt;Loop at SCREEN.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522935#M1069260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522936#M1069261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the code at "AT SELECTION-SCREEN OUTPUT" and assign a Modify Id of what all needed to be visible &amp;amp; hided on Radio button select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF radio button one&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'MD3' OR&lt;/P&gt;&lt;P&gt;         screen-group1 = 'MD4' OR&lt;/P&gt;&lt;P&gt;         screen-group1 = 'MD2'.&lt;/P&gt;&lt;P&gt;        screen-active = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSEIF radio button two&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'MD3' OR&lt;/P&gt;&lt;P&gt;         screen-group1 = 'MD4' OR&lt;/P&gt;&lt;P&gt;        screen-group1 = 'MD5'.&lt;/P&gt;&lt;P&gt;        screen-active = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSEIF radio button three&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'MD2' OR&lt;/P&gt;&lt;P&gt;        screen-group1 = 'MD5'.&lt;/P&gt;&lt;P&gt;        screen-active = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'MD2' OR&lt;/P&gt;&lt;P&gt;      screen-group1 = 'MD3'.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know, if anything else required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522936#M1069261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522937#M1069262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pramod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand you can only use the ability to modify the screen elements when you are processing it (before or after - pbo/pai), not when the screen has been displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my scenario, the selection screen is displayed and the user is then choosing different radio button selections, and based on the user response, I am trying to see if the selection screen can be dynamically changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to understand the scenario I am trying to work with,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mujtaba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522937#M1069262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522938#M1069263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me clarify something here.&lt;/P&gt;&lt;P&gt;When you define 2 radiobutton groups with some radiobuttons by default any one of the radiobuttons will be checked I am not sure whether we can uncheck it or not. Even if you do not define a default check value for a variable, in both the groups one of the variables will be checked. Now when the user changes the value of one of the screen radio button groups you 'at selection-screen on' statement is triggered. I think what you can do is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on radiobutton group G1.&lt;/P&gt;&lt;P&gt;Disable Group2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on radiobutton group G2.&lt;/P&gt;&lt;P&gt;Disable Group1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant think of any better answer as of now &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522938#M1069263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling screen elements on a selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522939#M1069264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the guys said to you, u need to change the attribute of selection-screen in the event AT SELECTION-SCREEN OUTPUT, but u need to assign an OK-CODE to the radiobutton of group1, in this way after pressing a radiobutton the event will be triggered automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your modification should be like following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: r1 RADIOBUTTON GROUP g1 default 'X' USER-COMMAND AAA,
            r2 RADIOBUTTON GROUP g1,
            r3 RADIOBUTTON GROUP g1.

PARAMETERS: r4 RADIOBUTTON GROUP g2 DEFAULT 'X' MODIF ID 001,
            r5 RADIOBUTTON GROUP g2             MODIF ID 001,
            r6 RADIOBUTTON GROUP g2             MODIF ID 001.

AT SELECTION-SCREEN OUTPUT.

  case 'X'.
    when r3.
    when r1 or r2.
      loop at screen.
        if screen-group1 = '001'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
  endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-screen-elements-on-a-selection-screen/m-p/4522939#M1069264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T16:41:36Z</dc:date>
    </item>
  </channel>
</rss>

