<?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: Processing Value request based on selection screen radio button entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967833#M1490844</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;Use the FM DYNP_VALUES_READ to get the runtime value at event at selection-screen on value-request. Then check the radio button which is checked and do your own processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 12:18:25 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2010-06-04T12:18:25Z</dc:date>
    <item>
      <title>Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967825#M1490836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; i'm trying to populate the list of relevant values during value request based on the radiobutton entry  in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the radiobutton selected i need to display the possible values in the select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code structure im using. I'm getting inconsistent results and unable to see the acutal radio button selected almost always when executing in background. Let me know where i'm going wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_but1 type c radiobutton group rb1,&lt;/P&gt;&lt;P&gt;                     p_but2 type c radiobutton group rb1,&lt;/P&gt;&lt;P&gt;                    p_but3 type c radiobutton group rb1.&lt;/P&gt;&lt;P&gt;select-options : s_selop for table-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_selop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populate values into t_var based on the radio button.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        retfield    = 'VARIANT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       dynpprog    = sy-repid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        dynprofield = 'S_VAR-LOW'&lt;/P&gt;&lt;P&gt;        value_org   = 'S'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        value_tab   = t_var&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        parameter_error = 1&lt;/P&gt;&lt;P&gt;        no_values_found = 2&lt;/P&gt;&lt;P&gt;        OTHERS          = 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 15:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967825#M1490836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T15:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967826#M1490837</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 to execute the populate subroutine in "at selection-screen on value-request for s_selop" and in start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : p_but1 type c radiobutton group rb1,
p_but2 type c radiobutton group rb1,
p_but3 type c radiobutton group rb1.
select-options : s_selop for table-field.


at selection-screen on value-request for s_selop.

* populate values into t_var based on the radio button.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'VARIANT'
* dynpprog = sy-repid
dynprofield = 'S_VAR-LOW'
value_org = 'S'
TABLES
value_tab = t_var


EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.

start-of-selection.

if sy-batch = 'X'.
   * populate values into t_var based on the radio button.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 17:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967826#M1490837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967827#M1490838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leandro  ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks for the quick response. here are the issues im having&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when i do an F4 the values doesn't showup and i have to hit bottom right corner of the window to see the actual values..Not sure if this is an GUI related issue&lt;/P&gt;&lt;P&gt;2. how to clear t_var entries when i select a radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 19:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967827#M1490838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T19:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967828#M1490839</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;I hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: sflight.

TYPES:
    BEGIN OF tp_sflight,
      carrid TYPE sflight-carrid,
      connid TYPE sflight-connid,
      fldate TYPE sflight-fldate,
    END OF tp_sflight.

  DATA: t_var TYPE STANDARD TABLE OF tp_sflight.

PARAMETERS : p_but1 TYPE c RADIOBUTTON GROUP rb1 DEFAULT 'X' USER-COMMAND c1,
             p_but2 TYPE c RADIOBUTTON GROUP rb1,
             p_but3 TYPE c RADIOBUTTON GROUP rb1.

SELECT-OPTIONS : s_fldate for sflight-fldate.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_fldate-low.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield     = 'FLDATE'
      dynpprog     = sy-repid
      dynpnr       = sy-dynnr
      dynprofield  = 'S_VAR-LOW'
      value_org    = 'S'
      window_title = 'Flight date'
    TABLES
      value_tab = t_var
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
    OTHERS = 3.

AT SELECTION-SCREEN OUTPUT.
  CASE 'X'.
    WHEN p_but1.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100101' AND '20100131'.

    WHEN p_but2.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100201' AND '20100228'.

    WHEN p_but3.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100301' AND '20100331'.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Paulo Carvalho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 23:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967828#M1490839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T23:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967829#M1490840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paulo,&lt;/P&gt;&lt;P&gt; Appreciate your quick response. i'm still trying to figure out on how to clear the existing values in the selection options when the user selects another radiobutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is necessary when the user selects radiobutton 1 and input multiple values in the select options and selects radiobutton 2  later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 10:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967829#M1490840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967830#M1490841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly do it in this way refresh the select option  under at selection -screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF r1 = 'X'.&lt;/P&gt;&lt;P&gt; refresh: select_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF r2 = 'X'.&lt;/P&gt;&lt;P&gt; refresh: select_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 11:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967830#M1490841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967831#M1490842</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;when the user selects another radiobutton with a USER COMMAND defined, the event AT SELECTION-SCREEN OUTPUT is triggered, you can clear the existing values in this moment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

  CASE 'X'.
    WHEN p_but1.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100101' AND '20100131'.

      DELETE s_fldate WHERE low NOT BETWEEN '20100101' AND '20100131'.

    WHEN p_but2.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100201' AND '20100228'.

      DELETE s_fldate WHERE low NOT BETWEEN '20100201' AND '20100228'.

    WHEN p_but3.
      SELECT carrid connid fldate
        INTO TABLE t_var
        FROM sflight
        WHERE fldate BETWEEN '20100301' AND '20100331'.

      DELETE s_fldate WHERE low NOT BETWEEN '20100301' AND '20100331'.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Paulo Carvalho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 12:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967831#M1490842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T12:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967832#M1490843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS : selop1 FOR sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Put if condition for the radio button selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    REFRESH: selop1.&lt;/P&gt;&lt;P&gt;    CLEAR : selop1.&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;&lt;/P&gt;&lt;P&gt;Walter D'souza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 12:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967832#M1490843</guid>
      <dc:creator>former_member623449</dc:creator>
      <dc:date>2010-06-04T12:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Value request based on selection screen radio button entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967833#M1490844</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;Use the FM DYNP_VALUES_READ to get the runtime value at event at selection-screen on value-request. Then check the radio button which is checked and do your own processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 12:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-value-request-based-on-selection-screen-radio-button-entry/m-p/6967833#M1490844</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-06-04T12:18:25Z</dc:date>
    </item>
  </channel>
</rss>

