<?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: Passing Selection parameters Using SUBMIT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168898#M459751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the options of Submit&lt;/P&gt;&lt;P&gt;In PROG1 use the submit&lt;/P&gt;&lt;P&gt;      SUBMIT priog2&lt;/P&gt;&lt;P&gt;                      WITH &amp;lt;selection Variant&amp;gt;&lt;/P&gt;&lt;P&gt;                      WITH p_locno  EQ p_loc&lt;/P&gt;&lt;P&gt;                      WITH s_matnr in  v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 10:09:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-07T10:09:39Z</dc:date>
    <item>
      <title>Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168896#M459749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Suppose there are 2 programs : PROG1 and PROG2. &lt;/P&gt;&lt;P&gt;PROG1 has two selction criteria say p_locno and s_matnr.&lt;/P&gt;&lt;P&gt;PROG2 has 3 selection criteria say p_disease, p_locno and p_matnr,&lt;/P&gt;&lt;P&gt;There is a variant in PROG2 which is maintained which fills the p_disease only and the rest two fields are blank (since these fields are to be filled using the PROG1).&lt;/P&gt;&lt;P&gt;I have a requirement of passing the selection parameters of PROG1 to PROG2.&lt;/P&gt;&lt;P&gt;Is it possible? If yes how do we go about it using the SUBMIT using option ? &lt;/P&gt;&lt;P&gt;   Points will be rewarded to the best answer. &lt;/P&gt;&lt;P&gt;             Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168896#M459749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168897#M459750</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;refer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3312872"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assing points if it helps.&lt;/P&gt;&lt;P&gt;-Gaurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168897#M459750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168898#M459751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the options of Submit&lt;/P&gt;&lt;P&gt;In PROG1 use the submit&lt;/P&gt;&lt;P&gt;      SUBMIT priog2&lt;/P&gt;&lt;P&gt;                      WITH &amp;lt;selection Variant&amp;gt;&lt;/P&gt;&lt;P&gt;                      WITH p_locno  EQ p_loc&lt;/P&gt;&lt;P&gt;                      WITH s_matnr in  v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168898#M459751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168899#M459752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debaprasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Refer this code in ur PROG2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SUBMIT  prog1 WITH P_LOCNO P_MATNR   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;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168899#M459752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168900#M459753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the following two programs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_82235_TEST1                                               *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  z_82235_test1                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

wa1-a = '1'.
wa1-b = '2'.
append wa1 to itab1.
clear wa1.

wa1-a = '3'.
wa1-b = '4'.
append wa1 to itab1.
clear wa1.


export itab1 to memory id '001'.
export itab2 to memory id '002'.

submit z_82235_test2 and return exporting list to memory .


import itab1 from memory id '003'.
import itab2 from memory id '004'.

write:/ 'ITAB1'.
loop at itab1 into wa1.
write : / wa1-a, wa1-b.
clear: wa1.
endloop.

write:/ 'ITAB2'.
loop at itab2 into wa2.
write : / wa2-c, wa2-d.
clear: wa2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  Z_82235_TEST2                                               *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  z_82235_test2                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

import itab1 from memory id '001'.
import itab2 from memory id '002'.

itab2[] = itab1[].

wa1-a = 'a'.
wa1-b = 'b'.
append wa1 to itab1.
clear wa1.




export itab1 to memory id '003'.
export itab2 to memory id '004'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168900#M459753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168901#M459754</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Code used to populate 'parameters' &amp;amp; execute report  
 SUBMIT zreport with p_param1 = 'value'
                with p_param2 = 'value'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168901#M459754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Selection parameters Using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168902#M459755</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;SUBMIT PROG2 VIA SELECTION-SCREEN WITH P_BUKRS EQ P_BUKRS&lt;/P&gt;&lt;P&gt;                                                                    with  P_var1  eq p_var2&lt;/P&gt;&lt;P&gt;                                                                     with p_var2 in p_var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U hav to fill those p_burks p_var1 and p_var2 values prior to submit statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it parameter use eq or if it is select-option use in operator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Anji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 10:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-selection-parameters-using-submit-statement/m-p/2168902#M459755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T10:15:50Z</dc:date>
    </item>
  </channel>
</rss>

