<?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: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566488#M1432142</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;   Add user-command uc1 at the first radiobutton, and remove obligatory at the file parameter. And check if the file is initial on at selection-screen event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X' user-command gr1,
                           p_down RADIOBUTTON GROUP rbg1,
                           p_file TYPE file_name.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    IF p_up = 'X'.
        PERFORM up_dialog CHANGING p_file.
    ELSEIF p_down = 'X'.
        PERFORM down_dialog CHANGING p_file.
  ENDIF.

at selection-screen.
if sy-ucomm &amp;lt;&amp;gt; 'GR1' and p_file is initial.
  message...
 endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diego Alvarez on Feb 10, 2010 12:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 11:02:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-10T11:02:15Z</dc:date>
    <item>
      <title>Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566480#M1432134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a radiobutton to choose if the user wants to upload or download a file. And then a file parameter for the path. My problem is that in F4 help for path the value of the radiobutton selected is not updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is the following (in the AT SELECTION-SCREEN ON VALUE-REQUEST p_up = 'X' always!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X',
            p_down RADIOBUTTON GROUP rbg1.
            p_file TYPE file_name OBLIGATORY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  CASE 'X'.
    WHEN p_up.
      PERFORM up_dialog CHANGING p_file.
    WHEN p_down.
      PERFORM down_dialog CHANGING p_file.
  ENDCASE.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566480#M1432134</guid>
      <dc:creator>Marcal_Oliveras</dc:creator>
      <dc:date>2010-02-10T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566481#M1432135</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;a small change..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X' user-command app,
            p_down RADIOBUTTON GROUP rbg1.
            p_file TYPE file_name OBLIGATORY.
 
&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, 10 Feb 2010 10:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566481#M1432135</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2010-02-10T10:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566482#M1432136</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;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CASE p_up.&lt;/P&gt;&lt;P&gt;    WHEN 'X'.&lt;/P&gt;&lt;P&gt;      PERFORM up_dialog CHANGING p_file.&lt;/P&gt;&lt;P&gt;    WHEN others.&lt;/P&gt;&lt;P&gt;      PERFORM down_dialog CHANGING p_file.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566482#M1432136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T10:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566483#M1432137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nagaraj, thanks but it's still not working, the value of the radiobutton is not updated until START-OF-SELECTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566483#M1432137</guid>
      <dc:creator>Marcal_Oliveras</dc:creator>
      <dc:date>2010-02-10T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566484#M1432138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marshall,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is quite tricky. Instead, why don't you have two separate parameters for the two radiobuttons: One parameter will take the file name as input for uploading, the other will take the file path for downloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle the visibility of these two parameters in the AT SELECTION-SCREEN OUTPUT event, so that depending on which radiobutton is selected, the corresponding parameter is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, you don't have to worry about the F4 event, because you don't have to check the radiobutton at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! Do revert if you want the specific source code, or if have any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shailesh&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Always provide feedback for helpful answers&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566484#M1432138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T10:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566485#M1432139</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;P&gt;Did you check the &lt;STRONG&gt;p_down&lt;/STRONG&gt; radio-button &amp;amp; did an F4 on &lt;STRONG&gt;p_file&lt;/STRONG&gt; ? After this in the debug mode you find that in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file, the value for p_up = 'X' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try like this &amp;amp; check ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X',
            p_down RADIOBUTTON GROUP rbg1.
            p_file TYPE file_name OBLIGATORY.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
 
  IF p_up = 'X'.
      PERFORM up_dialog CHANGING p_file.
ELSEIF p_down = 'X'.
      PERFORM down_dialog CHANGING p_file.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Nagaraja: Adding USER-COMMAND will trigger the AT SELECTION-SCREEN OUTPUT event &amp;amp; not AT SELECTION-SCREEN ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566485#M1432139</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-10T10:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566486#M1432140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You pointed me , i was just checking the radiobutton part which was not working.. :)..Didn't check the event.. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&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, 10 Feb 2010 10:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566486#M1432140</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2010-02-10T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566487#M1432141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas, yes the problem is that the value of p_up is always 'X' in ON VALUE-REQUEST event. And p_down is always initial. Your solution doesn't correct this, but thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To  Shailesh: Yes, I had thought about this solution,  or starting the file dialog when the user begins the program execution, deleting the p_file parameter from the selection screen. It seems that I must go this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 10:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566487#M1432141</guid>
      <dc:creator>Marcal_Oliveras</dc:creator>
      <dc:date>2010-02-10T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566488#M1432142</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;   Add user-command uc1 at the first radiobutton, and remove obligatory at the file parameter. And check if the file is initial on at selection-screen event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X' user-command gr1,
                           p_down RADIOBUTTON GROUP rbg1,
                           p_file TYPE file_name.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    IF p_up = 'X'.
        PERFORM up_dialog CHANGING p_file.
    ELSEIF p_down = 'X'.
        PERFORM down_dialog CHANGING p_file.
  ENDIF.

at selection-screen.
if sy-ucomm &amp;lt;&amp;gt; 'GR1' and p_file is initial.
  message...
 endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diego Alvarez on Feb 10, 2010 12:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 11:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566488#M1432142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566489#M1432143</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;Check below code. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_up   RADIOBUTTON GROUP rbg1 DEFAULT 'X' USER-COMMAND ucomm,
            p_down RADIOBUTTON GROUP rbg1 ,
            p_file TYPE file_name .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  CASE 'X'.
    WHEN p_up.
     PERFORM up_dialog CHANGING p_file.
    WHEN p_down.
      PERFORM down_dialog CHANGING p_file.
  ENDCASE.

AT SELECTION SCREEN.
CHECK po_file IS IITIAL.
MESSAGE 'Please enter file name' TYPE 'E'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is because, till you fill all the OBLIGATORY fields, selection screen values are not updated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternate way is, you need to call the FM DYNP_VALUES_UPDATE/DYNP_UPDATE_FIELDS which is not required with above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 11:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566489#M1432143</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-02-10T11:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Radiobutton value in AT SELECTION-SCREEN ON VALUE REQUEST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566490#M1432144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Diego, I didn't imagine that the OBLIGATORY option causes this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 11:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radiobutton-value-in-at-selection-screen-on-value-request/m-p/6566490#M1432144</guid>
      <dc:creator>Marcal_Oliveras</dc:creator>
      <dc:date>2010-02-10T11:06:28Z</dc:date>
    </item>
  </channel>
</rss>

