<?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 Disabling a desired screen attribute . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107241#M439918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!! My question goes as follows.&lt;/P&gt;&lt;P&gt;There are 2 radiobuttons belonging to the same group.For each radiobutton,there is a corresponding field in a seperate block on the same selection screen that needs to be enabled and simultaneously the other field needs to be disabled.How do I disable the other field, when at a time I can access only the first input field through the SCREEN table? &lt;/P&gt;&lt;P&gt;Thanks everyone in advance.I would highly appreciate your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 00:57:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-13T00:57:45Z</dc:date>
    <item>
      <title>Disabling a desired screen attribute .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107241#M439918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!! My question goes as follows.&lt;/P&gt;&lt;P&gt;There are 2 radiobuttons belonging to the same group.For each radiobutton,there is a corresponding field in a seperate block on the same selection screen that needs to be enabled and simultaneously the other field needs to be disabled.How do I disable the other field, when at a time I can access only the first input field through the SCREEN table? &lt;/P&gt;&lt;P&gt;Thanks everyone in advance.I would highly appreciate your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 00:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107241#M439918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling a desired screen attribute .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107242#M439919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zrich_001.

selection-screen begin of block b1 with frame.
PARAMETERS p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                  USER-COMMAND chk.
PARAMETERS p_rad2 RADIOBUTTON GROUP grp1.
selection-screen end of block b1.
selection-screen begin of block b2 with frame.
SELECT-OPTIONS s_datum1 FOR sy-datum MODIF ID dt1.
SELECT-OPTIONS s_datum2 FOR sy-datum MODIF ID dt2.
selection-screen end of block b2.

AT SELECTION-SCREEN OUTPUT.


  LOOP AT SCREEN.
    IF p_rad1 = 'X'.
      IF screen-group1 = 'DT2'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    IF p_rad2 = 'X'.
      IF screen-group1 = 'DT1'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 01:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107242#M439919</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-13T01:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling a desired screen attribute .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107243#M439920</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 have set SCREEN-INPUT = 1 for enabling, and SCREEN-INPUT = 0 for disabling, at AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see this sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  Z_JR04                                  .

SELECTION-SCREEN BEGIN OF BLOCK BL02 WITH FRAME TITLE TEXT-S20.
SELECTION-SCREEN BEGIN OF LINE.
  PARAMETER RB_VIEW RADIOBUTTON GROUP GRP0 USER-COMMAND RB1.
  SELECTION-SCREEN COMMENT (25) TEXT-S21.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN POSITION 4.
  SELECTION-SCREEN COMMENT (15) TEXT-S23.
  PARAMETER P_VAR LIKE DISVARIANT-VARIANT.
SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
  PARAMETER RB_GEN RADIOBUTTON GROUP GRP0.
  SELECTION-SCREEN COMMENT (25) TEXT-S22.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK BL02.

*-----------------------------------------------------------------------
* I.N.I.T.I.A.L.I.Z.A.T.I.O.N.
*-----------------------------------------------------------------------
INITIALIZATION.
  RB_VIEW = 'X'.

*-----------------------------------------------------------------------
* A.T.  .S.E.L.L.E.C.T.I.O.N.  .S.C.R.E.E.N.
*-----------------------------------------------------------------------
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF RB_VIEW = 'X'.
      IF SCREEN-NAME CS 'P_VAR'.
        SCREEN-INPUT = 1.
        MODIFY SCREEN.
      ENDIF.
    ELSE.
      IF SCREEN-NAME CS 'P_VAR'.
        SCREEN-INPUT = 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 01:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-a-desired-screen-attribute/m-p/2107243#M439920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T01:05:03Z</dc:date>
    </item>
  </channel>
</rss>

