<?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: Regarding using SUBMIT report statement for dynamic selections in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305636#M1026640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but if you fill range SO_BUDAT with the first and last posting date of that year, you might have the same effect.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 11:48:13 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-10-17T11:48:13Z</dc:date>
    <item>
      <title>Regarding using SUBMIT report statement for dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305635#M1026639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am using  follwing for calling FBL3N transaction and giving input and copying the output to my program.&lt;/P&gt;&lt;P&gt;SUBMIT rfitemgl&lt;/P&gt;&lt;P&gt;    WITH sd_saknr IN so_hkont&lt;/P&gt;&lt;P&gt;    WITH sd_bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;    WITH x_opsel = ''&lt;/P&gt;&lt;P&gt;    WITH x_aisel = 'X'&lt;/P&gt;&lt;P&gt;    WITH pa_vari = '/Z_TDS'&lt;/P&gt;&lt;P&gt;    EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual thing I want to pass fiscal year value also in this statement other wise the program is going to dump as huge data is fetching more than 20 lacs records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but fiscal year is in dynamic selection in FBL3N transaction how to achieve it please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: naveenkumar baikati on Oct 17, 2008 5:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 07:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305635#M1026639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T07:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding using SUBMIT report statement for dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305636#M1026640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but if you fill range SO_BUDAT with the first and last posting date of that year, you might have the same effect.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 11:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305636#M1026640</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-17T11:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding using SUBMIT report statement for dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305637#M1026641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at [Filling the Selection Screen of a Called Program|http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you may use a [WITH FREE SELECTION|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=with&lt;EM&gt;FREE&lt;/EM&gt;SELECTION&amp;amp;adv=false]  clause (with data built from [FREE_SELECTIONS_INIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=free_selections_init&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] and [FREE_SELECTIONS_DIALOG|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=free_selections_dialog&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]) or a [WITH SELECTION-TABLE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=with&lt;EM&gt;SELECTION-TABLE&lt;/EM&gt;&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: if the dynamic criteria are select-options of a calling program you may use something like&lt;/EM&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 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 'BSID'.
  CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
       EXPORTING
            field_ranges = rt_dyn_trange
       IMPORTING
            expressions  = it_dyn_texpr[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you could also bypass the problem by selecting the Posting date (SO_BUDAT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 11:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305637#M1026641</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-10-17T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding using SUBMIT report statement for dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305638#M1026642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're willing to try, before you call the submit statement, can you try to set the corresponding ID with your fiscal year value?&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PARAMETER ID 'GJR' FIELD '2005'.
SUBMIT rfitemgl
WITH sd_saknr IN so_hkont
WITH sd_bukrs = p_bukrs
WITH x_opsel = ''
WITH x_aisel = 'X'
WITH pa_vari = '/Z_TDS'
EXPORTING LIST TO MEMORY
AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it works properly, in this example, this would give the values corresponding to your selection criteria, for 2005 fiscal year.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bruno Garcia on Oct 17, 2008 11:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 11:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305638#M1026642</guid>
      <dc:creator>BGarcia</dc:creator>
      <dc:date>2008-10-17T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding using SUBMIT report statement for dynamic selections</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305639#M1026643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try as below for declaring the RSDS structures.&lt;/P&gt;&lt;P&gt;Add your &lt;/P&gt;&lt;P&gt;p_cpudt, &lt;/P&gt;&lt;P&gt;it_seltab to following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or just use my declarations for filling of the Ranges&lt;/P&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;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : rsds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_selopt TYPE rsds_selopt_t,&lt;/P&gt;&lt;P&gt;wa_selopt TYPE rsdsselopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_frange TYPE rsds_frange_t,&lt;/P&gt;&lt;P&gt;wa_frange TYPE rsds_frange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_trange TYPE rsds_trange,&lt;/P&gt;&lt;P&gt;wa_trange TYPE rsds_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_texpr TYPE rsds_texpr,&lt;/P&gt;&lt;P&gt;wa_texpr TYPE rsds_expr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_trange-tablename = 'BSID'.&lt;/P&gt;&lt;P&gt;wa_frange-fieldname = 'CPUDT'.&lt;/P&gt;&lt;P&gt;wa_selopt-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_selopt-option = 'LE'.&lt;/P&gt;&lt;P&gt;wa_selopt-low = p_cpudt.&lt;/P&gt;&lt;P&gt;wa_selopt-high = '00000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_selopt TO wa_frange-selopt_t.&lt;/P&gt;&lt;P&gt;APPEND wa_frange TO wa_trange-frange_t.&lt;/P&gt;&lt;P&gt;APPEND wa_trange TO it_trange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_frange-fieldname = 'AUGDT'.&lt;/P&gt;&lt;P&gt;wa_selopt-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_selopt-option = 'GE'.&lt;/P&gt;&lt;P&gt;wa_selopt-low = p_cpudt.&lt;/P&gt;&lt;P&gt;wa_selopt-high = '00000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_selopt TO wa_frange-selopt_t.&lt;/P&gt;&lt;P&gt;APPEND wa_frange TO wa_trange-frange_t.&lt;/P&gt;&lt;P&gt;APPEND wa_trange TO it_trange.&lt;/P&gt;&lt;P&gt;&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 = it_trange&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;expressions = it_texpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rfitemar VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE it_seltab&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply how this code worked in ur system, with above i got 2 Active on Dynamic Selections . I did not have the values for &lt;/P&gt;&lt;P&gt;P_CPUDT&lt;/P&gt;&lt;P&gt;IT_SELTAB&lt;/P&gt;&lt;P&gt;So i tried with commenting that lines, u try with ur values to above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode :- FBL5N "RFITEMAR" - Standard Report name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1006870"&gt;&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;Bala Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 12:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-using-submit-report-statement-for-dynamic-selections/m-p/4305639#M1026643</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-10-17T12:04:43Z</dc:date>
    </item>
  </channel>
</rss>

