<?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/3402716#M817052</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 can do this in at selection-screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;Pass the values to selection screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 16:14:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T16:14:37Z</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/3402715#M817051</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;Is there any FM which do reverse of FM RS_REFRESH_FROM_SELECTOPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above FM returns data from selection screen in an internal table of type RSPARAMS.&lt;/P&gt;&lt;P&gt;My requiernmrnt is opposite of this.I have internal table of type RSPARAMS with data. How can i load this data on selection screen. Is there any FM ofr this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&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;Edited by: Alvaro Tejada Galindo on Feb 25, 2008 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 16:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/3402715#M817051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T16:10:23Z</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/3402716#M817052</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 can do this in at selection-screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;Pass the values to selection screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 16:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/3402716#M817052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T16:14:37Z</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/3402717#M817053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes correct but my problem is&lt;/P&gt;&lt;P&gt;I have an internal table with fields parameter name and parameter value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row1:  P_A  Value&lt;/P&gt;&lt;P&gt;Row2: P_B   Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to proceed in this condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 16:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/3402717#M817053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T16:21:31Z</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/3402718#M817054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find any standard function for that, unfortunately. So I created one, below. The only thing to be aware of, is that the report must be in memory when the function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION z_selectoptions_to_selscreen .
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(CURR_REPORT) LIKE  RSVAR-REPORT
*"  TABLES
*"      SELECTION_TABLE STRUCTURE  RSPARAMS
*"  EXCEPTIONS
*"      PROGRAM_NOT_LOADED
*"      NAME_NOT_IN_PROGRAM
*"      INVALID_KIND
*"      NAME_IS_NOT_A_SELECT_OPTIONS
*"----------------------------------------------------------------------

  DATA ls_selection TYPE rsparams.
  DATA l_fieldname TYPE fieldname.
  FIELD-SYMBOLS &amp;lt;l_any_selopt_itab&amp;gt; TYPE STANDARD TABLE.
  FIELD-SYMBOLS &amp;lt;l_any_selopt&amp;gt; TYPE ANY.
  FIELD-SYMBOLS &amp;lt;l_any_field&amp;gt; TYPE ANY.

  CONCATENATE '(' curr_report ')SY-REPID' INTO l_fieldname.
  ASSIGN (l_fieldname) TO &amp;lt;l_any_field&amp;gt;.
  IF sy-subrc NE 0.
    RAISE program_not_loaded.
  ENDIF.

  LOOP AT selection_table INTO ls_selection.
    CONCATENATE '(' curr_report ')' ls_selection-selname INTO l_fieldname.
    CASE ls_selection-kind.
      WHEN 'S'.
        CONCATENATE l_fieldname '[]' INTO l_fieldname.
        ASSIGN (l_fieldname) TO &amp;lt;l_any_selopt_itab&amp;gt;.
        IF sy-subrc NE 0.
          RAISE name_not_in_program.
        ENDIF.
        APPEND INITIAL LINE TO &amp;lt;l_any_selopt_itab&amp;gt; ASSIGNING &amp;lt;l_any_selopt&amp;gt;.
        IF sy-subrc = 0.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE &amp;lt;l_any_selopt&amp;gt; TO &amp;lt;l_any_field&amp;gt;.
          IF sy-subrc NE 0.
            RAISE name_is_not_a_select_options.
          ENDIF.
          &amp;lt;l_any_field&amp;gt; = ls_selection-sign.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE &amp;lt;l_any_selopt&amp;gt; TO &amp;lt;l_any_field&amp;gt;.
          IF sy-subrc NE 0.
            RAISE name_is_not_a_select_options.
          ENDIF.
          &amp;lt;l_any_field&amp;gt; = ls_selection-option.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE &amp;lt;l_any_selopt&amp;gt; TO &amp;lt;l_any_field&amp;gt;.
          IF sy-subrc NE 0.
            RAISE name_is_not_a_select_options.
          ENDIF.
          &amp;lt;l_any_field&amp;gt; = ls_selection-low.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE &amp;lt;l_any_selopt&amp;gt; TO &amp;lt;l_any_field&amp;gt;.
          IF sy-subrc NE 0.
            RAISE name_is_not_a_select_options.
          ENDIF.
          &amp;lt;l_any_field&amp;gt; = ls_selection-high.
        ENDIF.
      WHEN 'P'.
        ASSIGN (l_fieldname) TO &amp;lt;l_any_field&amp;gt;.
        IF sy-subrc NE 0.
          RAISE name_not_in_program.
        ENDIF.
        &amp;lt;l_any_field&amp;gt; = ls_selection-low.
      WHEN OTHERS.
        RAISE invalid_kind.
    ENDCASE.
  ENDLOOP.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 16:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/3402718#M817054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T16:06:44Z</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/3402719#M817055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is helpful in your scenario but have a look at the documentation of ABAP statement &lt;STRONG&gt;SUBMIT&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SUBMIT  ... WITH SELECTION-TABLE rspar.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"If you specify this addition, parameters and selection criteria on the selection screen&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;are supplied from an internal table &lt;STRONG&gt;rspar&lt;/STRONG&gt;. You must specify an internal table&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;with the row type &lt;STRONG&gt;RSPARAMS&lt;/STRONG&gt; for rspar...."&lt;/EM&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 20:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-rs-refresh-from-selectoptions/m-p/3402719#M817055</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-05T20:20:59Z</dc:date>
    </item>
  </channel>
</rss>

