<?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: How to pass variable while using SUBMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100389#M103321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the following code...&lt;/P&gt;&lt;P&gt;Say u have program p1 with parameters which needs to be passed to program p2.&lt;/P&gt;&lt;P&gt;SUBMIT p2&lt;/P&gt;&lt;P&gt;  AND  return&lt;/P&gt;&lt;P&gt;    with p2-&amp;lt;parameter1&amp;gt; = p1-&amp;lt;parameter1&amp;gt;&lt;/P&gt;&lt;P&gt;    with p2-&amp;lt;parameter2&amp;gt; = p1-&amp;lt;parameter1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. award appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2005 11:14:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-06T11:14:46Z</dc:date>
    <item>
      <title>How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100385#M103317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone tell me how to pass the parameter variables to other report program while using the 'submit' keyword?&lt;/P&gt;&lt;P&gt;I've modified some variables &amp;amp; want to pass them to the report I'm calling with 'submit' keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;Hemant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100385#M103317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100386#M103318</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;sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SUBMIT ZFBPET00 WITH BR_BUKRS IN BR_BUKRS
                  WITH BLART    IN BLART
                  WITH BR_GJAHR in s_gjahr
                  WITH EXTRAKT EQ 'X'
                  WITH DS_NAME EQ DS_NAME
                  WITH CPUDATUM IN DATUM
                  EXPORTING LIST TO MEMORY
                  AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100386#M103318</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-06T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100387#M103319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) using ranges addition&lt;/P&gt;&lt;P&gt;2) using export and Import statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu have to declare ranges in the current program and populate the data in them and pass them with the submit statement using the &amp;lt;b&amp;gt;With&amp;lt;/b&amp;gt; addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu have to declare the select-option which receive the values from the calling program with no-display addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100387#M103319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100388#M103320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   U can use EXPORT/IMPORT ing of Data ie using ABAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXPORT the variable in the Current program and IMPORT it inside the SUBMIT program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100388#M103320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100389#M103321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the following code...&lt;/P&gt;&lt;P&gt;Say u have program p1 with parameters which needs to be passed to program p2.&lt;/P&gt;&lt;P&gt;SUBMIT p2&lt;/P&gt;&lt;P&gt;  AND  return&lt;/P&gt;&lt;P&gt;    with p2-&amp;lt;parameter1&amp;gt; = p1-&amp;lt;parameter1&amp;gt;&lt;/P&gt;&lt;P&gt;    with p2-&amp;lt;parameter2&amp;gt; = p1-&amp;lt;parameter1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. award appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100389#M103321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100390#M103322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program accessed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT report1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA text(10) TYPE c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 1100. &lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS: selcrit1 FOR text, &lt;/P&gt;&lt;P&gt;                  selcrit2 FOR text. &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN 1100. &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;P&gt;Calling program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT report2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text(10)   TYPE c, &lt;/P&gt;&lt;P&gt;      rspar_tab  TYPE TABLE OF rsparams, &lt;/P&gt;&lt;P&gt;      rspar_line LIKE LINE OF rspar_tab, &lt;/P&gt;&lt;P&gt;      range_tab  LIKE RANGE OF text, &lt;/P&gt;&lt;P&gt;      range_line LIKE LINE OF range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rspar_line-selname = 'SELCRIT1'. &lt;/P&gt;&lt;P&gt;rspar_line-kind    = 'S'. &lt;/P&gt;&lt;P&gt;rspar_line-sign    = 'I'. &lt;/P&gt;&lt;P&gt;rspar_line-option  = 'EQ'. &lt;/P&gt;&lt;P&gt;rspar_line-low     = 'ABAP'. &lt;/P&gt;&lt;P&gt;APPEND rspar_line TO rspar_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_line-sign   = 'E'. &lt;/P&gt;&lt;P&gt;range_line-option = 'EQ'. &lt;/P&gt;&lt;P&gt;range_line-low    = 'H'. &lt;/P&gt;&lt;P&gt;APPEND range_line TO range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_line-sign   = 'E'. &lt;/P&gt;&lt;P&gt;range_line-option = 'EQ'. &lt;/P&gt;&lt;P&gt;range_line-low    = 'K'. &lt;/P&gt;&lt;P&gt;APPEND range_line TO range_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report1 USING SELECTION-SCREEN '1100' &lt;/P&gt;&lt;P&gt;               WITH SELECTION-TABLE rspar_tab &lt;/P&gt;&lt;P&gt;               WITH selcrit2 BETWEEN 'H' AND 'K' &lt;/P&gt;&lt;P&gt;               WITH selcrit2 IN range_tab &lt;/P&gt;&lt;P&gt;               AND RETURN. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100390#M103322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100391#M103323</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;  If there is any variant avilable for the report, you can use the following statement to submit the report,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex,&lt;/P&gt;&lt;P&gt;SUBMIT report(report_name)&lt;/P&gt;&lt;P&gt;USING SELECTION-SET 'variant_name'   &lt;/P&gt;&lt;P&gt;wiTH s_werks = p_werks  "Plant value&lt;/P&gt;&lt;P&gt;           AND RETURN.&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;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100391#M103323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T11:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100392#M103324</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;First of all,make sure the report program that you are calling contain the passing variable, for example: &lt;/P&gt;&lt;P&gt;FORM test TABLES itab&lt;/P&gt;&lt;P&gt;     USING  variable1&lt;/P&gt;&lt;P&gt;            variable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you may called you program using:&lt;/P&gt;&lt;P&gt;PERFORM &amp;lt;i&amp;gt;FORMNAME&amp;lt;/i&amp;gt; IN PROGRAM &amp;lt;i&amp;gt;PROGRAMNAME&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES itab&lt;/P&gt;&lt;P&gt;USING  variable1 &lt;/P&gt;&lt;P&gt;       variable2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopes it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 02:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100392#M103324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T02:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable while using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100393#M103325</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;Sorry, i oversee that you want to use 'SUBMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use this:&lt;/P&gt;&lt;P&gt;    SUBMIT ZFIXXXXR00_CUSTLINE&lt;/P&gt;&lt;P&gt;           WITH dd_kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;           WITH dd_kunnr = p_bukrs&lt;/P&gt;&lt;P&gt;           WITH pa_stida = s_datum-low&lt;/P&gt;&lt;P&gt;           WITH x_opsel = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          WITH x_aisel = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           WITH x_shbv  = v_indicator&lt;/P&gt;&lt;P&gt;           AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, the dd_kunnr, dd_kunnr, pa_stida, x_opsel, x_shbv are coming from the select option or the parameters from the program you are calling from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you may use import statement in your program to retrieve the values from the program you are calling too.Do remember to use export statement inside the program you are calling from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 02:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-variable-while-using-submit/m-p/1100393#M103325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T02:16:16Z</dc:date>
    </item>
  </channel>
</rss>

