<?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: Submit report with dynamic selections in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537248#M1072058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reshma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: trange  type rsds_trange,
          g_repid type sy-repid.

g_repid = 'RPCADVQ0'.
  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
    exporting
      curr_report        = g_repid
      mode_write_or_move = 'M'
    importing
      p_trange           = trange
    exceptions
      not_found          = 1
      wrong_type         = 2
      others             = 3.
  if sy-subrc eq 0.
" Do the changes to the trange

CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.

submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 11:01:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T11:01:36Z</dc:date>
    <item>
      <title>Submit report with dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537247#M1072057</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;&lt;/P&gt;&lt;P&gt;I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the dynamic selections are not getting passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you to kindly provide some inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &lt;/P&gt;&lt;P&gt;DATA: trange TYPE rsds_trange,&lt;/P&gt;&lt;P&gt;      trange_line LIKE LINE OF trange,&lt;/P&gt;&lt;P&gt;      trange_frange_t_line LIKE LINE OF trange_line-frange_t,&lt;/P&gt;&lt;P&gt;      trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,&lt;/P&gt;&lt;P&gt;      texpr TYPE rsds_texpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trange_line-tablename = 'PA0002'.&lt;/P&gt;&lt;P&gt;*trange_frange_t_line-tablename = 'PA0002'.&lt;/P&gt;&lt;P&gt;trange_frange_t_line-fieldname = 'GBJHR'.&lt;/P&gt;&lt;P&gt;trange_frange_t_selopt_t_line-sign   = 'I'.&lt;/P&gt;&lt;P&gt;trange_frange_t_selopt_t_line-option = 'EQ'.&lt;/P&gt;&lt;P&gt;trange_frange_t_selopt_t_line-low    = '1987'.&lt;/P&gt;&lt;P&gt;trange_frange_t_selopt_t_line-high   = '1987'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND trange_frange_t_selopt_t_line TO   trange_frange_t_line-selopt_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND trange_frange_t_line TO trange_line-frange_t.&lt;/P&gt;&lt;P&gt;APPEND trange_line TO trange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    field_ranges = trange&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    expressions  = texpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit RPCADVQ0&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;                WITH SELECTION-TABLE rspar_tab&lt;/P&gt;&lt;P&gt;                WITH FREE SELECTIONS it_texpr&lt;/P&gt;&lt;P&gt;                and returN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide your inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 10:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537247#M1072057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T10:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Submit report with dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537248#M1072058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reshma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: trange  type rsds_trange,
          g_repid type sy-repid.

g_repid = 'RPCADVQ0'.
  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
    exporting
      curr_report        = g_repid
      mode_write_or_move = 'M'
    importing
      p_trange           = trange
    exceptions
      not_found          = 1
      wrong_type         = 2
      others             = 3.
  if sy-subrc eq 0.
" Do the changes to the trange

CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.

submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537248#M1072058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Submit report with dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537249#M1072059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: trange  type rsds_trange.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      curr_report        = sy-repid&lt;/P&gt;&lt;P&gt;      mode_write_or_move = 'M'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      p_trange           = trange&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      not_found          = 1&lt;/P&gt;&lt;P&gt;      wrong_type         = 2&lt;/P&gt;&lt;P&gt;      others             = 3.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-with-dynamic-selections/m-p/4537249#M1072059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:08:12Z</dc:date>
    </item>
  </channel>
</rss>

