<?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: Changing fields with radiobuttons in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506469#M234040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="169471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 13:25:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-14T13:25:26Z</dc:date>
    <item>
      <title>Changing fields with radiobuttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506465#M234036</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 group of radiobuttons in a selection screen and when a radiobutton is chosen I want some output fields on the selection screen to be changed right away. Does anyone know how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Magnus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 13:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506465#M234036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T13:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fields with radiobuttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506466#M234037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the AT SELECTION-SCREEN event, you can write the code to disable the fields depending on the radio button selection,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen output.&lt;/P&gt;&lt;P&gt;  if rdb1 = 'X'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-name = 'xyz'.&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>Mon, 14 Aug 2006 13:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506466#M234037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fields with radiobuttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506467#M234038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters: p_rad1 radiobutton group grp1 default 'X'
&amp;lt;b&amp;gt;                         user-command check.&amp;lt;/b&amp;gt;
parameters: p_rad2 radiobutton group grp1 .

parameters: p_fld1(10) type c.
parameters: p_fld2(10) type c.

at selection-screen output.


loop at screen.

&amp;lt;b&amp;gt;if p_rad1 = 'X'
  and screen-name = 'P_FLD2'.
 screen-input = '0'.
endif.

if p_rad2 = 'X'
  and screen-name = 'P_FLD1'.
 screen-input = '0'.
endif.&amp;lt;/b&amp;gt;

modify screen.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 13:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506467#M234038</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-14T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fields with radiobuttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506468#M234039</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 this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-100.
PARAMETERS: rad_locl RADIOBUTTON GROUP main
                                            MODIF ID aa USER-COMMAND abc
                                                            DEFAULT 'X',
            rad_appl RADIOBUTTON GROUP main MODIF ID aa .

SELECTION-SCREEN END OF BLOCK b1 .

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-101.
PARAMETERS: p_lcl TYPE rlgrap-filename MODIF ID bb.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-101.
PARAMETERS: p_appl(150) MODIF ID cc.
SELECTION-SCREEN END OF BLOCK b3.
*
AT SELECTION-SCREEN ON P_LCL.
MESSAGE I032(ZI) WITH 'TEST'.
*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lcl.
  CALL FUNCTION 'F4_FILENAME'
       EXPORTING
            program_name  = syst-cprog
            dynpro_number = syst-dynnr
            field_name    = ''
       IMPORTING
            file_name     = p_lcl.

AT SELECTION-SCREEN OUTPUT .
*Selection by local file
  IF rad_locl = 'X'.
    PERFORM deactivate USING 'CC'.
  ELSE.
    PERFORM deactivate USING 'BB'.
  ENDIF  .

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  deactivate
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0041   text
*----------------------------------------------------------------------*
FORM deactivate USING    value(p_grp).

  LOOP AT SCREEN.
    screen-active = '1'.
    IF screen-group1 = p_grp.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 13:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506468#M234039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing fields with radiobuttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506469#M234040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="169471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 13:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-fields-with-radiobuttons/m-p/1506469#M234040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T13:25:26Z</dc:date>
    </item>
  </channel>
</rss>

