<?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: Help needed for the FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403815#M1046712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;you could use RS_REFRESH_FROM_DYNAMICAL_SEL to get the values entered by the users in the dynamic selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 03:49:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T03:49:18Z</dc:date>
    <item>
      <title>Help needed for the FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403814#M1046711</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;Can any one tell me what is the use of the FM 'RS_REFRESH_FROM_DYNAMICAL_SEL',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srihasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 03:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403814#M1046711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T03:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for the FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403815#M1046712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;you could use RS_REFRESH_FROM_DYNAMICAL_SEL to get the values entered by the users in the dynamic selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 03:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403815#M1046712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T03:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for the FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403816#M1046713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srihasa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_REFRESH_FROM_DYNAMICAL_SEL - Returns values of dynamic selections (selection screen) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"---------------------------------------------------------------------- 
*" Macro MAKE_RANGE &amp;amp;1 
*"---------------------------------------------------------------------- 
*"*"Local interface: 
*"    &amp;lt;= &amp;amp;1 first_date 
*"    &amp;lt;= &amp;amp;2 last_date 
*"    =&amp;gt; &amp;amp;3 DAY_IN 
*"    =&amp;gt; &amp;amp;4 date 
*"---------------------------------------------------------------------- 
DEFINE make_range. 
  &amp;amp;1-SIGN   = 'I'. 
  &amp;amp;1-OPTION = ld_rsdsexpr-option. 
  &amp;amp;1-LOW    = ld_rsdsexpr-low. 
  &amp;amp;1-HIGH   = ld_rsdsexpr-high. 
  APPEND &amp;amp;1. 
END-OF-DEFINITION."make_range 

*&amp;amp;--------------------------------------------------------------------* 
*&amp;amp;      Form  GET_DYNAMIC_SELECTION 
*&amp;amp;--------------------------------------------------------------------* 
*       text 
*---------------------------------------------------------------------* 
form GET_DYNAMIC_SELECTION. 

  data: g_repid        like sy-repid. 
  data: rt_dyn_trange  type rsds_trange. 
  DATA: it_dyn_texpr   type rsds_texpr  with header line. 

  data: ld_rsds_expr type rsds_expr, 
        ld_rsdsexpr  type rsdsexpr. 

  REFRESH: it_dyn_texpr. 
  REFRESH: r_racct_ru, r_rzzlokkt_ru, 
           r_racct_ua, r_rzzlokkt_ua, 
           r_racct_kz, r_rzzlokkt_kz, 
           r_racct. 

  g_repid = sy-repid. 
* get report dynamic selections: 
  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL' 
    exporting 
      curr_report        = g_repid 
      mode_write_or_move = 'M' 
    importing 
      p_trange           = rt_dyn_trange 
    exceptions 
      not_found          = 1 
      wrong_type         = 2 
      others             = 3. 
  if sy-subrc ne 0. 
    exit. 
  endif. 
* delete rt_dyn_trange where tablename ne 'BSIS'.                "740027 
  call function 'FREE_SELECTIONS_RANGE_2_EX' 
    exporting 
      field_ranges = rt_dyn_trange 
    importing 
      expressions  = it_dyn_texpr[]. 

  loop at it_dyn_texpr into ld_rsds_expr. 
    loop at ld_rsds_expr-expr_tab into ld_rsdsexpr. 

      CASE ld_rsds_expr-tablename. 
      WHEN 'ZSLI01T'. 
        make_range r_racct. 
      WHEN 'ZSLRU'. 
        IF ld_rsdsexpr-fieldname EQ 'RACCT'. 
          make_range r_racct_ru. 
        ELSEIF ld_rsdsexpr-fieldname EQ 'RZZLOKKT'. 
          make_range r_rzzlokkt_ru. 
        ENDIF. 
      ENDCASE. 
    endloop. 
  endloop. 
endform.                    "GET_DYNAMIC_SELECTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sapnet.ru" target="test_blank"&gt;www.sapnet.ru&lt;/A&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;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 04:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403816#M1046713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T04:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for the FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403817#M1046714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While processing a report with dynamic selections we go for the function module RS_REFRESH_FROM_DYNAMICAL_SEL.&lt;/P&gt;&lt;P&gt;This returns an object of the type RSDS_TRANGE() which a subsequent  function module E_SELECTIONS_RANGE_2_EX then converts to an object of the type RSDS_TEXPR (texpr is an internal table of the type RSDS_TEXPR(see type pool RSDS)). In this way, you can pass on the dynamic selections of the current report with SUBMIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 04:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-for-the-fm/m-p/4403817#M1046714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T04:05:31Z</dc:date>
    </item>
  </channel>
</rss>

