<?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: Dynamic selection in a submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479153#M1418671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check declaring like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS2&amp;gt; type any table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 16:32:50 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-01-20T16:32:50Z</dc:date>
    <item>
      <title>Dynamic selection in a submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479150#M1418668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;I have a questions about dynamic selection.&lt;/P&gt;&lt;P&gt;I would like to submit a report but one of the parameters change . It parameter depend on the screen selection p_new.&lt;/P&gt;&lt;P&gt;The line   "WITH SO_CMOVI IN R_RANGE1 " or "     WITH SO_CMOVI IN R_RANGE2" is the difference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if p_new = 'X'.
SUBMIT Z_BW_CIECONT WITH SO_SOC IN PSO_SOC
                        WITH SO_OPER IN PSO_OPERBW
                        WITH P_INI EQ &amp;lt;FS1&amp;gt;
                        WITH P_FIN EQ &amp;lt;FS1&amp;gt;
                        WITH SO_TIPO EQ P_MOVI
*                        WITH SO_CMOVI IN R_RANGE1
                        WITH P_TEST EQ PP_TEST.
ELSE
SUBMIT Z_BW_CIECONT WITH SO_SOC IN PSO_SOC
                        WITH SO_OPER IN PSO_OPERBW
                        WITH P_INI EQ &amp;lt;FS1&amp;gt;
                        WITH P_FIN EQ &amp;lt;FS1&amp;gt;
                        WITH SO_TIPO EQ P_MOVI
*                        WITH SO_CMOVI IN R_RANGE2
                        WITH P_TEST EQ PP_TEST.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;I would like something like this :
range : R_RANGE2 for VTBFHA-SGSART.
data: G_PRODUCTO(13) type c value 'R_RANGE1'.
if p_new = '00'. 
      G_PRODUCTO =' R_RANGE2'.
endif.

FIELD-SYMBOLS: &amp;lt;FS2&amp;gt; TYPE ANY.
ASSIGN (G_PRODUCTO) TO &amp;lt;FS2&amp;gt;
if sy-subrc eq 0.
SUBMIT Z_BW_CIECONT WITH SO_SOC IN PSO_SOC
                        WITH SO_OPER IN PSO_OPERBW
                        WITH P_INI EQ &amp;lt;FS1&amp;gt;
                        WITH P_FIN EQ &amp;lt;FS1&amp;gt;
                        WITH SO_TIPO EQ P_MOVI
*                        WITH SO_CMOVI IN &amp;lt;FS2&amp;gt;
                        WITH P_TEST EQ PP_TEST.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code is wrong because &amp;lt;FS2&amp;gt; is not an internal table.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Ana &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479150#M1418668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T16:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection in a submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479151#M1418669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the addition  WITH SELECTION-TABLE rspar of the SUBMIT syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479151#M1418669</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-01-20T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection in a submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479152#M1418670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is ok, you only have two problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs2&amp;gt; should be declared as type table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the assing you should place 'R_RANGE2[]' instead of 'R_RANGE2'. The first one is a table, the second is a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another reason to stop using the range instruction and just declare the variable as TYPE RANGE OF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479152#M1418670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T16:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic selection in a submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479153#M1418671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check declaring like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS2&amp;gt; type any table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-in-a-submit/m-p/6479153#M1418671</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-20T16:32:50Z</dc:date>
    </item>
  </channel>
</rss>

