<?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 Regarding Enable and Disable fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417040#M1408664</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;There is one requirement if i select one radio button in selection screen, the field should be active releted to that one ,another one is in disable mode.&lt;/P&gt;&lt;P&gt;could you check this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_pre(100) TYPE c,&lt;/P&gt;&lt;P&gt;            p_app(100) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'x' USER-COMMAND com1,&lt;/P&gt;&lt;P&gt;            r_app RADIOBUTTON GROUP g1.&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;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;    IF r_pre = 'x' AND screen-name = 'p_app'.&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ELSEIF r_app = 'x' AND screen-name = 'p_pre'.&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;i tried with this code but am getting reeeor like this: A parameter of a radio button group can only have 'x' as a default.&lt;/P&gt;&lt;P&gt;if i remove 'x' both fields are in Enabe mode. could you currect this one.p plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;SHAIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 07:45:49 GMT</pubDate>
    <dc:creator>shadow</dc:creator>
    <dc:date>2009-12-16T07:45:49Z</dc:date>
    <item>
      <title>Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417040#M1408664</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;There is one requirement if i select one radio button in selection screen, the field should be active releted to that one ,another one is in disable mode.&lt;/P&gt;&lt;P&gt;could you check this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_pre(100) TYPE c,&lt;/P&gt;&lt;P&gt;            p_app(100) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'x' USER-COMMAND com1,&lt;/P&gt;&lt;P&gt;            r_app RADIOBUTTON GROUP g1.&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;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;    IF r_pre = 'x' AND screen-name = 'p_app'.&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;    ELSEIF r_app = 'x' AND screen-name = 'p_pre'.&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;i tried with this code but am getting reeeor like this: A parameter of a radio button group can only have 'x' as a default.&lt;/P&gt;&lt;P&gt;if i remove 'x' both fields are in Enabe mode. could you currect this one.p plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;SHAIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 07:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417040#M1408664</guid>
      <dc:creator>shadow</dc:creator>
      <dc:date>2009-12-16T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417041#M1408665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
make the changes below to your code.

PARAMETERS: r_pre RADIOBUTTON GROUP g1 USER-COMMAND COM1 DEFAULT 'X',

IF r_pre = 'X' AND screen-name = 'P_APP'.

ELSEIF r_app = 'X' AND screen-name = 'P_PRE'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 07:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417041#M1408665</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-12-16T07:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417042#M1408666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1, " &amp;lt;- 'X' must be in CAPITAL LETTERS
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 07:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417042#M1408666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T07:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417043#M1408667</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;The parameters and value x must be in capital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 08:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417043#M1408667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T08:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417044#M1408668</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;Copy paste this code ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_pre(100) TYPE c,
p_app(100) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1,
r_app RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b2.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN .
IF r_pre = 'X' AND screen-name = 'P_APP'.
screen-input = 0.
MODIFY SCREEN .
ELSEIF r_app = 'X' AND screen-name = 'P_PRE'.
screen-input = 0.
MODIFY SCREEN .
ENDIF.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 09:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417044#M1408668</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-12-16T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417045#M1408669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;try the below code.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_pre(100) TYPE c,&lt;/P&gt;&lt;P&gt;p_app(100) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1,&lt;/P&gt;&lt;P&gt;r_app RADIOBUTTON GROUP g1.&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; if  r_pre = 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;IF screen-name = 'P_APP'.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN .&lt;/P&gt;&lt;P&gt;ELSEIF r_app = 'X' AND screen-name = 'P_PRE'.&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;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 09:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417045#M1408669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417046#M1408670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can sort out this by using "modif id" additon to your selection fieldsi.e., you can group all the related fields using the modif id then write the logic accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 09:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417046#M1408670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Enable and Disable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417047#M1408671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your's finally code..............&lt;/P&gt;&lt;P&gt;changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. default 'X' in caps.&lt;/P&gt;&lt;P&gt;2.parameters names are also in caps.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else is fine......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .

PARAMETERS: p_pre(100) TYPE c,
p_app(100) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .

PARAMETERS: r_pre RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND com1,
            r_app RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF BLOCK b2.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN .
IF r_pre = 'X' AND screen-name = 'P_APP'.
screen-input = 0.
MODIFY SCREEN .
ELSEIF r_app = 'X' AND screen-name = 'P_PRE'.
screen-input = 0.
MODIFY SCREEN .
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;Gaurav Khare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-enable-and-disable-fields/m-p/6417047#M1408671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T11:42:55Z</dc:date>
    </item>
  </channel>
</rss>

