<?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 radio button selection programatically. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884798#M371265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     Thx for your work &amp;amp; solution......keep doin gud.....&lt;/P&gt;&lt;P&gt;     rewarded points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Gopinath N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 07:01:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T07:01:17Z</dc:date>
    <item>
      <title>changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884780#M371247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement where in when user selects a file using file open dialog, the appropriate &lt;/P&gt;&lt;P&gt;radio button should be selected programatically based on file type. For ex. if user selects '.csv' file the &lt;/P&gt;&lt;P&gt;radio button 'CSV' should be selected automatically &amp;amp; the screen should get refreshed. Now I need to know how the screen should be repainted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 09:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884780#M371247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T09:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884781#M371248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopinath , &lt;/P&gt;&lt;P&gt;  You will have to get the file type , may be from the extension of the file and then use the at selection-screen output event for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a sample program which works when you enter file as 'CSV' or 'DOC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : FILE(10),
             RB1 RADIOBUTTON GROUP G1 USER-COMMAND RB ,
             RB2 RADIOBUTTON GROUP G1.

AT SELECTION-SCREEN OUTPUT.

 LOOP AT SCREEN.
   IF FILE = 'CSV'.
     IF SCREEN-NAME = 'RB2'.
       SCREEN-ACTIVE =   0.
       MODIFY SCREEN.
     ENDIF.
   ELSEIF FILE = 'DOC'.
     IF SCREEN-NAME = 'RB1'.
       SCREEN-ACTIVE =   0.
       MODIFY SCREEN.
     ENDIF.
    ENDIF .

 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code will hide the other radio button ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Do fell free to revert back if you have any issues , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884781#M371248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884782#M371249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the corresponding block for output ( AT SELECTION-SCREEN OUTPUT if there is a selection screen or within a PBO module) you just set desired radiobutton to 'X' and clear all other radiobuttons from the same radiogroup (otherwise you'll get a short dump).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please ask if questions (but firstly give all relevant info)&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884782#M371249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884783#M371250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using selection screen for that you have to use&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;if p_file = 'CSV'.&lt;/P&gt;&lt;P&gt; radio1 = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you have any your screen you have to do it in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884783#M371250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884784#M371251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. use the event AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There, just put&lt;/P&gt;&lt;P&gt;   if filetype = 'CSV'.&lt;/P&gt;&lt;P&gt;   radiocsv  = 'X'.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884784#M371251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884785#M371252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arun,  Thx for the reply&lt;/P&gt;&lt;P&gt;     am using selection screens.&lt;/P&gt;&lt;P&gt;    At selection-screen output will trigger only once. but in my case whenever the user selects a file for the first text field, in the same screen the radio buttons below should be automatically selected based on file type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884785#M371252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884786#M371253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopinath , &lt;/P&gt;&lt;P&gt;  Seelction screen output is triggered each time an event is executed , so it goes this way any event is triggered it goes to AT SELECTION-SCREEN , if it is there ,else at selection-screen output is executed&lt;/P&gt;&lt;P&gt;Could you please past your code for selection screen  so that we can provide a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ARUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884786#M371253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884787#M371254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you shouldn't take the things said by others and post-edit your reply inserting what others said.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884787#M371254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884788#M371255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry as per as i know if you enter some value in the selection screen field and press enter it will trigger at selection-screen and then again it will trigger at selection-screen output. Correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884788#M371255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884789#M371256</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 AT SELECTION-SCREEN OUTPUT is executed everytime something happens in the screen (enter values, push buttons, etc) since is the correspondent of the PBO for normal screens.&lt;/P&gt;&lt;P&gt;so, if you want to modify the screen elements (activating/deactivating, modifying input, etc) or want to modify values you must do it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884789#M371256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884790#M371257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upload.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      WINDOW_TITLE            = 'Select the file'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DEFAULT_EXTENSION       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DEFAULT_FILENAME        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      FILE_FILTER             = filter&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     INITIAL_DIRECTORY       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MULTISELECTION          = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WITH_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_TABLE              = filetable&lt;/P&gt;&lt;P&gt;      RC                      = rc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     USER_ACTION             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     FILE_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      FILE_OPEN_DIALOG_FAILED = 1&lt;/P&gt;&lt;P&gt;      CNTL_ERROR              = 2&lt;/P&gt;&lt;P&gt;      ERROR_NO_GUI            = 3&lt;/P&gt;&lt;P&gt;      NOT_SUPPORTED_BY_GUI    = 4&lt;/P&gt;&lt;P&gt;      others                  = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0 AND rc = 1.&lt;/P&gt;&lt;P&gt;    READ TABLE filetable INDEX 1 INTO line.&lt;/P&gt;&lt;P&gt;    fpath = p_upload = line-filename.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        COMPLETE_FILENAME       = fpath&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CHECK_DOS_FORMAT        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DRIVE                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXTENSION               = ext&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NAME                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      NAME_WITH_EXT           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PATH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       INVALID_DRIVE           = 1&lt;/P&gt;&lt;P&gt;       INVALID_EXTENSION       = 2&lt;/P&gt;&lt;P&gt;       INVALID_NAME            = 3&lt;/P&gt;&lt;P&gt;       INVALID_PATH            = 4&lt;/P&gt;&lt;P&gt;       OTHERS                  = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IF ext = c_tab.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       p_csv = ' '.  "first radio button&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       p_tab = 'X'.  "second radio button&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ELSEIF ext = c_csv.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       p_tab = ' '.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       p_csv = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &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;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gopinath Natesan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 11:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884790#M371257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884791#M371258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to loop at screen and modify the screen inorder to choose the corresponding radio button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 11:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884791#M371258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T11:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884792#M371259</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;Execute the code and see if this is working for u .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : fname like rlgrap-filename." memory id m01.
      DATA : filename TYPE string.
      DATA : table1 TYPE filetable,
             rc TYPE i.

PARAMETERS : R1 RADIOBUTTON GROUP RG user-command r modif id abc
DEFAULT
 'X'.
PARAMETERS : R2 RADIOBUTTON GROUP RG modif id def.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.

  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
      EXPORTING
        default_filename = '*.*'
      CHANGING
        file_table       = table1
        rc               = rc.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000(zXXX) WITH 'Error'.
    ENDIF.

    LOOP AT table1 INTO fname.

    ENDLOOP.


at selection-screen output.

IF fname cs '.CSV'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
r1 = 'X'.
r2 = ' '.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

elseif fname cs '.DOC'.
LOOP AT SCREEN.
IF screen-group1 = 'DEF'.
 r2 = 'X'.
 r1 = ' '.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make the f4 select .CSV or .DOC and the radio button is taking the position based on the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 11:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884792#M371259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884793#M371260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay, &lt;/P&gt;&lt;P&gt;    thx for the reply.&lt;/P&gt;&lt;P&gt;    the code will work only when user interacts with the radio button. But what am expecting is the moment user selects a file, the appropriate radio button should be selected automatically w.r.t file extension.&lt;/P&gt;&lt;P&gt;hope I clarified.&lt;/P&gt;&lt;P&gt;awaiting ur response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 12:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884793#M371260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884794#M371261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the input file and hit an &amp;lt;b&amp;gt;enter&amp;lt;/b&amp;gt; . either manually or by F4&lt;/P&gt;&lt;P&gt;give .CSV and an enter or .DOC and an enter .&lt;/P&gt;&lt;P&gt;For the system to process the logic it has to trigger at selection-screen output.&lt;/P&gt;&lt;P&gt;so u need to hit the &amp;lt;b&amp;gt;ENTER&amp;lt;/b&amp;gt; button .&lt;/P&gt;&lt;P&gt;The code is working fine till here .&lt;/P&gt;&lt;P&gt;just confirm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//the code will work only when user interacts with the radio button&lt;/P&gt;&lt;P&gt;u need not touch the radiobutton after the value is fetched just hit enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next..&lt;/P&gt;&lt;P&gt;Now in order to do that dynamically ie based on extension of file  to select the radiobutton dynamically i need to catch that event ..  im working on that how to capture the enter ,,  let me get back to u once i have a hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 13:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884794#M371261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884795#M371262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you said, the code is working bearing in mind that the user has to press &amp;lt;b&amp;gt;ENTER&amp;lt;/b&amp;gt;. But we can't demand for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 13:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884795#M371262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884796#M371263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. immediately after calling the file open dialog,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. we can use the fm SET_DYNP_VALUE'&lt;/P&gt;&lt;P&gt;   to set the value of any field on the screen,&lt;/P&gt;&lt;P&gt;  eg. input field, radiobutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. But the problem with radiobutton is,&lt;/P&gt;&lt;P&gt;    it gives error that TWO buttons are active at same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. just use this kind of code to get a taste of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : VAL LIKE DYNPREAD-FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR VAL.&lt;/P&gt;&lt;P&gt;  VAL = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SET_DYNP_VALUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_FIELD = 'MYRADIO1'&lt;/P&gt;&lt;P&gt;      I_REPID = SY-REPID&lt;/P&gt;&lt;P&gt;      I_DYNNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;      I_VALUE = VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  VAL = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SET_DYNP_VALUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_FIELD = 'MYRADIO2'&lt;/P&gt;&lt;P&gt;      I_REPID = SY-REPID&lt;/P&gt;&lt;P&gt;      I_DYNNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;      I_VALUE = VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 13:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884796#M371263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884797#M371264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah its working fine ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : fname like rlgrap-filename.
      DATA : filename TYPE string.
      DATA : table1 TYPE filetable,
             rc TYPE i.
DATA : VAL LIKE DYNPREAD-FIELDVALUE.

data: dynfields type table of dynpread with header line.

PARAMETERS : R1 RADIOBUTTON GROUP RG  modif id abc.
PARAMETERS : R2 RADIOBUTTON GROUP RG modif id def.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.

  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
      EXPORTING
        default_filename = '*.*'
      CHANGING
        file_table       = table1
        rc               = rc.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000(zXXX) WITH 'Error'.
    ENDIF.

read table table1 index 1 into fname.


IF fname cs '.XLS'.             "substitute .csv
dynfields-fieldname = 'R1'.
dynfields-fieldvalue = 'X'.
append dynfields.
dynfields-fieldname = 'R2'.
dynfields-fieldvalue = ' '.
append dynfields.

elseif fname cs '.DOC'.
dynfields-fieldname = 'R1'.
dynfields-fieldvalue = ' '.
append dynfields.
dynfields-fieldname = 'R2'.
dynfields-fieldvalue = 'X'.
append dynfields.

ENDIF.

call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 06:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884797#M371264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884798#M371265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     Thx for your work &amp;amp; solution......keep doin gud.....&lt;/P&gt;&lt;P&gt;     rewarded points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Gopinath N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884798#M371265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T07:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: changing radio button selection programatically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884799#M371266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopinath  , &lt;/P&gt;&lt;P&gt;  One small addition to the code , please refresh  the table &amp;lt;b&amp;gt;table1&amp;lt;/b&amp;gt; ,before you call the method , if you dont do it you wont get the desired result , on repated execution.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 07:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-radio-button-selection-programatically/m-p/1884799#M371266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T07:14:11Z</dc:date>
    </item>
  </channel>
</rss>

