<?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: FM RS_REFRESH_FROM_SELECTOPTIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921246#M687936</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 the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : * Internal table for Selection screen parameters&lt;/P&gt;&lt;P&gt;       i_seltable   TYPE STANDARD TABLE OF rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_selection_screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Subroutine to get the user selection on selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_selection_screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report     = sy-repid&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table = i_seltable&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found       = 01&lt;/P&gt;&lt;P&gt;      no_report       = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    REFRESH i_seltable.&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;ENDFORM.                    " get_selection_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  display_selection_criteria&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Subroutine to display the selction criteria in the output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_selection_criteria .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_LIST_SELECTION_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      report        = sy-repid&lt;/P&gt;&lt;P&gt;      seltext       = c_x&lt;/P&gt;&lt;P&gt;      newpage       = space&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      sel_tab       = i_seltable&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      sel_tab_empty = 1&lt;/P&gt;&lt;P&gt;      OTHERS        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    REFRESH i_seltable.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " display_selection_criteria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if hlpful.&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, 17 Oct 2007 07:15:36 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-10-17T07:15:36Z</dc:date>
    <item>
      <title>FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921244#M687934</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;I'm using FM RS_REFRESH_FROM_SELECTOPTIONS in a report in order to get a value from selection screen.&lt;/P&gt;&lt;P&gt;I need this value in order to populate F4 list for another field according to this value.&lt;/P&gt;&lt;P&gt;Meaning: according to field company code (obligatory) in the selection screen I need to populate F4 list for field plant (all plant associated to the specified company code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
   EXPORTING
      CURR_REPORT = repname
   TABLES
      SELECTION_TABLE = it_sels
   EXCEPTIONS
       NOT_FOUND = 1
       NO_REPORT = 2
       OTHERS       = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I don't get the values from the selection screen in it_sels, I only get all the fields from the selection screen but the values are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would by appreciated..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 07:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921244#M687934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T07:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921245#M687935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well my dear to get the value enter on the Selection screen u dont have to call a FM u just access the variable i.e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_sels (select option on the selection screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hw ever if u want to know all the fields name on the screen that u might use the FM u mention above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Rewards Plz..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 07:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921245#M687935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921246#M687936</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 the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : * Internal table for Selection screen parameters&lt;/P&gt;&lt;P&gt;       i_seltable   TYPE STANDARD TABLE OF rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_selection_screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Subroutine to get the user selection on selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_selection_screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report     = sy-repid&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table = i_seltable&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found       = 01&lt;/P&gt;&lt;P&gt;      no_report       = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    REFRESH i_seltable.&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;ENDFORM.                    " get_selection_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  display_selection_criteria&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Subroutine to display the selction criteria in the output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_selection_criteria .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_LIST_SELECTION_TABLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      report        = sy-repid&lt;/P&gt;&lt;P&gt;      seltext       = c_x&lt;/P&gt;&lt;P&gt;      newpage       = space&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      sel_tab       = i_seltable&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      sel_tab_empty = 1&lt;/P&gt;&lt;P&gt;      OTHERS        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    REFRESH i_seltable.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " display_selection_criteria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if hlpful.&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, 17 Oct 2007 07:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921246#M687936</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-17T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921247#M687937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alnoor,&lt;/P&gt;&lt;P&gt;Can't loop on that field becuase it's a parameter and not selection.&lt;/P&gt;&lt;P&gt;Another problem is that the data is not available at the time I choose F4 on the field for which I need the  value of the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921247#M687937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921248#M687938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still get no values in   i_seltable even after calling the second FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921248#M687938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921249#M687939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hagit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whatever u write in the code is absolutely correct..I have got the correct result from the two FM'S which i gave....It should come my friend..plz check that u r passing correct program name...&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921249#M687939</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-18T08:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921250#M687940</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;Please go through the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t001k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Identification Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_bwkey OCCURS 0,&lt;/P&gt;&lt;P&gt;        bwkey LIKE t001k-bwkey,&lt;/P&gt;&lt;P&gt;      END OF it_bwkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_bukrs(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Run date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_bukrs OCCURS 0,&lt;/P&gt;&lt;P&gt;        bukrs LIKE t001k-bukrs,&lt;/P&gt;&lt;P&gt;      END OF it_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:    p_bukrs(4) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation Section&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.&lt;/P&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        = 'BUKRS'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'P_BUKRS'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_bukrs&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;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES: t130r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei &amp;gt;F4&amp;lt;&lt;/P&gt;&lt;P&gt;  DATA: END OF   dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : sy_repid LIKE sy-repid,&lt;/P&gt;&lt;P&gt;         sy_dynnr LIKE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR dynpfields.&lt;/P&gt;&lt;P&gt;  REFRESH dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynpfields-fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;  APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  Lesen des akt. Wertes von Dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sy_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  sy_dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname     = sy_repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy_dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = dynpfields&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS     = 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      v_bukrs = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bwkey FROM t001k&lt;/P&gt;&lt;P&gt;  INTO TABLE it_bwkey&lt;/P&gt;&lt;P&gt;  WHERE bukrs = v_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_bwkey.&lt;/P&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        = 'BWKEY'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'S_BWKEY'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_bwkey&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;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921250#M687940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921251#M687941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program name is correct.&lt;/P&gt;&lt;P&gt;I get all the fields from the selection screen but all values are initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921251#M687941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921252#M687942</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;R you giving any values on the selection-screen or not?I u give values in the selection screen then it will come in the internal table.&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921252#M687942</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-18T09:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921253#M687943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's Valangini, it's working great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 09:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921253#M687943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T09:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: FM RS_REFRESH_FROM_SELECTOPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921254#M687944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Velangini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this example you gave you got only the value from the LOW field: &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I need to get the value of the entire range on the SELECT-OPTIONS parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I'm trying to retrieve values on the event "AT SELECTION-SCREEN ON VALUE REQUEST FOR" .&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;At this time I use the function module RS_REFRESH_FROM_SELECTOPTIONS, but it doesn't give me the values on the screen, just the values that have been entered (like when you click enter, or other button on the screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/2921254#M687944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-23T14:54:08Z</dc:date>
    </item>
  </channel>
</rss>

