<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333845#M513770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Submit statement basically tries to access an executable program from your calling program.There can be various sceanrios you can have to be able to use a SUBMIT statement. I would like to discuss 2 of such scenarios here:&lt;/P&gt;&lt;P&gt;A.  Lets say i want to access an executable report Y from my calling program X.  &lt;/P&gt;&lt;P&gt;     The program Y has thr following selection-screen options:&lt;/P&gt;&lt;P&gt;     1.s_werks for t001w-werks(Plant)&lt;/P&gt;&lt;P&gt;     2.s_matnr for mara-matnr(Material Number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Now from my calling program X , i want to execute report Y by passing values  &lt;/P&gt;&lt;P&gt;     of plant and material to this program. After that i want to return to my main &lt;/P&gt;&lt;P&gt;     program X. &lt;/P&gt;&lt;P&gt;    So the syntax for the same would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT Y 
WITH s_werks IN s_werks
WITH s_matnr IN s_matnr 
AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_matnr and s_werks should be there in program X as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. The second scenario can be where you have an ALV in your report Y and you &lt;/P&gt;&lt;P&gt;     want to get the list from this report back to your main program X. In this case &lt;/P&gt;&lt;P&gt;     your syntax would be : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT Y WITH s_werks IN s_werks
                         WITH s_matnr IN s_matnr 
                         EXPORTING LIST TO MEMORY 
                         AND RETURN. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be many other instances where you can use SUMBIT statement.&lt;/P&gt;&lt;P&gt;For more information , please refer to the SAP help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2007 23:05:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-03T23:05:11Z</dc:date>
    <item>
      <title>SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333843#M513768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one tell me how to use the SUBMIT and what are the syntax and advantages for using it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 18:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333843#M513768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T18:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333844#M513769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Ayan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT is used to call a report directly, without using a transaction code, thus you can pass values to its parameters/select-options, which you cannot do directly when using transactions (only possible by mapping screens with SHDB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT report [VIA SELECTION-SCREEN]
          [USING SELECTION-SET var]
          [WITH sel criterion]
          [WITH FREE SELECTIONS freesel]
          [WITH SELECTION-TABLE rspar]
          [AND RETURN].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report is a report name, without apostrophes (' '). The report name can be also a variable enclosed in parantheses, so, the report name can be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN: The selection screen of the called executable program appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USING SELECTION-SET &amp;lt;var&amp;gt;: This addition tells the system to start the called program with the variant &amp;lt;b&amp;gt;var&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH sel criterion: Use this addition to fill individual elements sel of the selection screen (selection tables and parameters) with the help of the language elements &amp;lt;b&amp;gt;criterion&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH FREE SELECTION freesel: User dialog for dynamic selections. To use this option, the called program must be connected to a logical database that supports dynamic selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE rspar: Dynamic transfer of different values. An internal table rspar with the Dictionary structure RSPARAMS is created. This table can be filled dynamically in the calling program with all the required values for the selection screen of the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND RETURN: The system stores the data of the calling executable program and returns to the calling after processing the called program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information can be found &amp;lt;a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm"&amp;gt;here&amp;lt;/a&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 23:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333844#M513769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T23:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333845#M513770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Submit statement basically tries to access an executable program from your calling program.There can be various sceanrios you can have to be able to use a SUBMIT statement. I would like to discuss 2 of such scenarios here:&lt;/P&gt;&lt;P&gt;A.  Lets say i want to access an executable report Y from my calling program X.  &lt;/P&gt;&lt;P&gt;     The program Y has thr following selection-screen options:&lt;/P&gt;&lt;P&gt;     1.s_werks for t001w-werks(Plant)&lt;/P&gt;&lt;P&gt;     2.s_matnr for mara-matnr(Material Number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Now from my calling program X , i want to execute report Y by passing values  &lt;/P&gt;&lt;P&gt;     of plant and material to this program. After that i want to return to my main &lt;/P&gt;&lt;P&gt;     program X. &lt;/P&gt;&lt;P&gt;    So the syntax for the same would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT Y 
WITH s_werks IN s_werks
WITH s_matnr IN s_matnr 
AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_matnr and s_werks should be there in program X as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. The second scenario can be where you have an ALV in your report Y and you &lt;/P&gt;&lt;P&gt;     want to get the list from this report back to your main program X. In this case &lt;/P&gt;&lt;P&gt;     your syntax would be : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT Y WITH s_werks IN s_werks
                         WITH s_matnr IN s_matnr 
                         EXPORTING LIST TO MEMORY 
                         AND RETURN. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be many other instances where you can use SUMBIT statement.&lt;/P&gt;&lt;P&gt;For more information , please refer to the SAP help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 23:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333845#M513770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333846#M513771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have requirement like passing the data between two abap programs,then we go for submit command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use mainly for ABAP memory like export and import commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one program first use export and  use submit  and again create second program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the simple example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_AMEM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_lfa1 occurs 0 ,&lt;/P&gt;&lt;P&gt;       lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;       end of i_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr&lt;/P&gt;&lt;P&gt;       name1&lt;/P&gt;&lt;P&gt;       land1 from lfa1&lt;/P&gt;&lt;P&gt;       into table i_lfa1 up to 100 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Export&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;export i_lfa1 to memory id 'SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ztest_amem2 and return.&lt;/P&gt;&lt;P&gt;write:/ 'hello'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create second program and use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZTEST_AMEM2&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_AMEM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of j_lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;       lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;       end of j_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import i_lfa1 to j_lfa1 from memory id 'SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at j_lfa1.&lt;/P&gt;&lt;P&gt;write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 00:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/2333846#M513771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T00:35:33Z</dc:date>
    </item>
  </channel>
</rss>

