<?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: Graying out Select-Option in the Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463233#M1554160</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 are not very clear in explaining your requirement. To the extent of my understanding, you want &lt;STRONG&gt;s_progf&lt;/STRONG&gt;  to be disabled when you select &lt;STRONG&gt;rb_type&lt;/STRONG&gt; and &lt;STRONG&gt;s_prog&lt;/STRONG&gt; when you select &lt;STRONG&gt;rb_type2&lt;/STRONG&gt;. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the screen group for the select options in your selection screen code. Then in AT SELECTION SCREEN OUTPUT write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
    IF rb1 = 'x' AND ( screen-group1 = co_sc2 ).
      screen-input = '0'.
      MODIFY SCREEN.
    ENDIF.

    IF rb2 = 'x' AND ( screen-group1 = co_sc1 ).
      screen-input = '0'.
      MODIFY SCREEN.
    ENDIF.

    CLEAR screen.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 04:59:57 GMT</pubDate>
    <dc:creator>sridhar_meesala</dc:creator>
    <dc:date>2010-12-01T04:59:57Z</dc:date>
    <item>
      <title>Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463231#M1554158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement that if i select an option of the radiobutton in the selection-screen, the other must be grayed out. And at the same time, if the 1st option is re-selected, the other one is grayed out. Hope someone can help me with this. By the way, here's my declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS : rb_type RADIOBUTTON GROUP grp1 DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 7(26) text-004 FOR FIELD rb_type.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_prog  FOR trdir-name.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS : rb_type2 RADIOBUTTON GROUP grp1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 7(26) text-006 FOR FIELD rb_type2.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_progf FOR tfdir-funcname.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 02:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463231#M1554158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T02:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463232#M1554159</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;Write as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.
*PARAMETERS : rb_type RADIOBUTTON GROUP grp1 DEFAULT 'X' user-command UCOM.*SELECTION-SCREEN COMMENT 7(26) text-004 FOR FIELD rb_type.
SELECT-OPTIONS : s_prog FOR trdir-name.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : rb_type2 RADIOBUTTON GROUP grp1.
SELECTION-SCREEN COMMENT 7(26) text-006 FOR FIELD rb_type2.
SELECT-OPTIONS : s_progf FOR tfdir-funcname.
SELECTION-SCREEN END OF LINE.


INITIALIZATION.
  loop at screen.

    if rb_type = 'X'.
      if screen-name = 'S_PROGF-LOW' OR
         screen-name = 'S_PROGF-HIGH'.
          SCREEN-ACTIVE = '0'.
          MODIFY SCREEN.
      endif.
    endif.

  endloop.

    
AT SELECTION-SCREEN OUTPUT.
  loop at screen.

    if rb_type = 'X'.
      if screen-name = 'S_PROGF-LOW' OR
         screen-name = 'S_PROGF-HIGH'.
          SCREEN-ACTIVE = '0'.
          MODIFY SCREEN.
      endif.
    elseif rb_type2 = 'X'.
      if screen-name = 'S_PROG-LOW' OR
         screen-name = 'S_PROG-HIGH'.
          SCREEN-ACTIVE = '0'.
          MODIFY SCREEN.
      endif.
    endif.

  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 04:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463232#M1554159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T04:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463233#M1554160</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 are not very clear in explaining your requirement. To the extent of my understanding, you want &lt;STRONG&gt;s_progf&lt;/STRONG&gt;  to be disabled when you select &lt;STRONG&gt;rb_type&lt;/STRONG&gt; and &lt;STRONG&gt;s_prog&lt;/STRONG&gt; when you select &lt;STRONG&gt;rb_type2&lt;/STRONG&gt;. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the screen group for the select options in your selection screen code. Then in AT SELECTION SCREEN OUTPUT write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
    IF rb1 = 'x' AND ( screen-group1 = co_sc2 ).
      screen-input = '0'.
      MODIFY SCREEN.
    ENDIF.

    IF rb2 = 'x' AND ( screen-group1 = co_sc1 ).
      screen-input = '0'.
      MODIFY SCREEN.
    ENDIF.

    CLEAR screen.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 04:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463233#M1554160</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2010-12-01T04:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463234#M1554161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0. MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;How can you reselect the other radiobutton if it is grayed out :P. Doing that is meaning less. &lt;/P&gt;&lt;P&gt;Please correct your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sree134 on Dec 1, 2010 6:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 05:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463234#M1554161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T05:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463235#M1554162</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;Excute below code then u can understand code.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-005.&lt;/P&gt;&lt;P&gt;PARAMETERS:R1 RADIOBUTTON GROUP G3 USER-COMMAND com  modif id aa DEFAULT 'X',&lt;/P&gt;&lt;P&gt;R2 RADIOBUTTON GROUP G3 MODIF ID bb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-004.&lt;/P&gt;&lt;P&gt;PARAMETERS:   p_copyt RADIOBUTTON GROUP g2 MODIF ID 002,&lt;/P&gt;&lt;P&gt;           p_copyi RADIOBUTTON GROUP g2 MODIF ID 002.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_test RADIOBUTTON GROUP g1 MODIF ID 001,&lt;/P&gt;&lt;P&gt;           p_flag RADIOBUTTON GROUP g1 MODIF ID 001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;loop AT SCREEN.&lt;/P&gt;&lt;P&gt;*******&lt;STRONG&gt;MODIFIED TO CHECKBOX&lt;/STRONG&gt;*****************&lt;/P&gt;&lt;P&gt;    if r1 = 'X'.&lt;/P&gt;&lt;P&gt;    if screen-group1 eq '001'." and screen-group1 eq 003.&lt;/P&gt;&lt;P&gt;      screen-INPUT = 1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if screen-group1 eq '002'." and screen-group1 eq 003.&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;   elseif r2 = 'X'.&lt;/P&gt;&lt;P&gt;     CLEAR:P_TEST,P_FLAG.&lt;/P&gt;&lt;P&gt;    if screen-group1 eq '001'." and screen-group1 eq 003.&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;    if screen-group1 eq '002'." and screen-group1 eq 003.&lt;/P&gt;&lt;P&gt;      screen-INPUT = 1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;muralii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 05:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463235#M1554162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T05:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Graying out Select-Option in the Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463236#M1554163</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;Thanks for all your replies. My code is working fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 05:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/graying-out-select-option-in-the-selection-screen/m-p/7463236#M1554163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T05:19:22Z</dc:date>
    </item>
  </channel>
</rss>

