<?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: by using submit can i pass parameter value to another program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772930#M907854</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report  Z_TEST_SUBMIT&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;REPORT  Z_TEST_SUBMIT.&lt;BR /&gt;DATA:       s     TYPE STRING,&lt;BR /&gt;            i     TYPE I,&lt;BR /&gt;            n(10) TYPE N,&lt;BR /&gt;            c(10) TYPE C.&lt;BR /&gt;s = 'string'.&lt;BR /&gt;i = 123.&lt;BR /&gt;n = '987'.&lt;BR /&gt;c = 'ABC'.&lt;BR /&gt;SUBMIT Z_TEST_SUBMITTED&lt;BR /&gt;   WITH parm_s EQ s&lt;BR /&gt;   WITH parm_i EQ i&lt;BR /&gt;   WITH parm_n EQ n&lt;BR /&gt;   WITH parm_c EQ c&lt;BR /&gt; AND RETURN.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report  Z_TEST_SUBMITTED=&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;REPORT  Z_TEST_SUBMITTED.&lt;BR /&gt;&lt;BR /&gt;PARAMETERS: parm_s TYPE STRING,&lt;BR /&gt;            parm_i TYPE I,&lt;BR /&gt;            parm_n(10) TYPE N,&lt;BR /&gt;            parm_c(10) TYPE C.&lt;BR /&gt;&lt;BR /&gt;WRITE: / 'Z_TEST_SUBMITTED: parm_s=', parm_s,&lt;BR /&gt;                         ', parm_i=', parm_i,&lt;BR /&gt;                         ', parm_n=', parm_n,&lt;BR /&gt;                         ', parm_c=', parm_c.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 Jul 2022 23:09:51 GMT</pubDate>
    <dc:creator>erp_superman</dc:creator>
    <dc:date>2022-07-18T23:09:51Z</dc:date>
    <item>
      <title>by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772922#M907846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;   i am shabeer abap fresher , i hava scenario in that is like this.&lt;/P&gt;&lt;P&gt;prog1:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; parameters: path type string ,&lt;/P&gt;&lt;P&gt;                    r1 radiobutton group rd,&lt;/P&gt;&lt;P&gt;                    r2 radiobutton group rd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r1 eq 'x'.&lt;/P&gt;&lt;P&gt;submit &amp;lt;zxxxxxxx&amp;gt; and return.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i pass that path value to zxxxxxxxxxx. is it possible if not i must get that in zxxxxxxxx send some exaples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772922#M907846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772923#M907847</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;Yes you can do that ...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772923#M907847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772924#M907848</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;u can pass the parameters value along with the submit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to this link for example code&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/rep_submit.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/rep_submit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772924#M907848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772925#M907849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the sample code to achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say u have the following parameters on your selection screen of the report:&lt;/P&gt;&lt;P&gt;1. s_aufnr (order)&lt;/P&gt;&lt;P&gt;2. s_werks (plant)&lt;/P&gt;&lt;P&gt;3. p_matnr (material)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT X&lt;/P&gt;&lt;P&gt;WITH s_aufnr IN s_aufnr&lt;/P&gt;&lt;P&gt;WITH s_werks IN s_werks&lt;/P&gt;&lt;P&gt;WITH p_matnr EQ p_matnr&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete details about the submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} selscreen_options&lt;/P&gt;&lt;P&gt;list_options&lt;/P&gt;&lt;P&gt;job_options&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;Addition:&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;Effect&lt;/P&gt;&lt;P&gt;The SUBMIT statement accesses an executable program rep. The executable program is executed as described under Calling Executable Reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program name rep can either be specified directly or as the content of a character-like data object name. The data object name must contain the name of the program to be accessed in block capitals. If the program specified in name is not found, an irretrievable exception is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selscreen_options additions can be used to determine the selection screen for the program accessed and to supply it with values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list_options additions allow you to influence the output medium and the page size in the basic list for the program accessed.&lt;/P&gt;&lt;P&gt;SUBMIT - selscreen_options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;... USING SELECTION-SCREEN dynnr&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;selscreen_parameters ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras:&lt;/P&gt;&lt;P&gt;1. ... USING SELECTION-SCREEN dynnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;The addition USING SELECTION-SCREEN specifies the selection screen, VIA SELECTION-SCREEN specifies whether it is displayed. The additions selscreen_parameters provide values for the parameters, selection criteria, and the free selection of the called selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are transferred to the selection screen between the events INITIALIZATION and AT SELECTION-SCREEN OUTPUT The following hierarchy applies for transferring values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the variant of the addition USING SELECTION-SET is transferred, which sets all parameters and selection criteria to the values of the variant. The values previously set in the called program are overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of the table of the addition WITH SELECTION-TABLE are then transferred. All parameters and selection criteria specified there are overwritten accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the values of the additions WITH sel value are transferred. All parameters and selection criteria are overwritten accordingly. If the addition WITH sel value is used more than once for the same parameter, this is overwritten with the last specified value. If the addition WITH sel value is used more than once for the same selection criterion, a selection table with the corresponding number of lines is transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Providing values for free selections is independent of this hierarchy. &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;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you can achieve this by following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use EXPORT and IMPORT statement for transferring Values from one program to another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling Program:&lt;/P&gt;&lt;P&gt;EXPORT matnr field1 field2 field3 to MEMORY ID 'MEM1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Called Program:&lt;/P&gt;&lt;P&gt;IMPORT matnr field1 field2 field3 FROM MEMORY ID 'MEM1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772925#M907849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772926#M907850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Calling program..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZAK_SUBMIT                                 .

data: rspar type table of rsparams with header line.

rspar-selname = 'P_NAME'.
rspar-kind = 'P'.
rspar-low = 'Hello'.
append rspar.

submit zak_submitted via selection-screen with selection-table rspar and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the called program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zak_submitted.

parameters: name(10), salary type i.

end-of-selection.

write:/ name, salary.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772926#M907850</guid>
      <dc:creator>asik_shameem</dc:creator>
      <dc:date>2008-05-05T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772927#M907851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in program &amp;lt;zxxxxxxx&amp;gt; define &lt;/P&gt;&lt;P&gt;parameter :  zpath type string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in prog1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;zxxxxxxx&amp;gt; USING SELECTION-SCREEN '1000' &lt;/P&gt;&lt;P&gt;               WITH zpath = path .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 12:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772927#M907851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772928#M907852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT&amp;lt;zxxxxxxx&amp;gt; WITH path EQ path AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju K. Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772928#M907852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-17T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772929#M907853</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;Yes u can pass the path Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ZXXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with path = ' XYZ '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ZXXXX should also contain a selection-screen parameter called path with same datatype/data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772929#M907853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-17T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: by using submit can i pass parameter value to another program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772930#M907854</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report  Z_TEST_SUBMIT&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;REPORT  Z_TEST_SUBMIT.&lt;BR /&gt;DATA:       s     TYPE STRING,&lt;BR /&gt;            i     TYPE I,&lt;BR /&gt;            n(10) TYPE N,&lt;BR /&gt;            c(10) TYPE C.&lt;BR /&gt;s = 'string'.&lt;BR /&gt;i = 123.&lt;BR /&gt;n = '987'.&lt;BR /&gt;c = 'ABC'.&lt;BR /&gt;SUBMIT Z_TEST_SUBMITTED&lt;BR /&gt;   WITH parm_s EQ s&lt;BR /&gt;   WITH parm_i EQ i&lt;BR /&gt;   WITH parm_n EQ n&lt;BR /&gt;   WITH parm_c EQ c&lt;BR /&gt; AND RETURN.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report  Z_TEST_SUBMITTED=&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;REPORT  Z_TEST_SUBMITTED.&lt;BR /&gt;&lt;BR /&gt;PARAMETERS: parm_s TYPE STRING,&lt;BR /&gt;            parm_i TYPE I,&lt;BR /&gt;            parm_n(10) TYPE N,&lt;BR /&gt;            parm_c(10) TYPE C.&lt;BR /&gt;&lt;BR /&gt;WRITE: / 'Z_TEST_SUBMITTED: parm_s=', parm_s,&lt;BR /&gt;                         ', parm_i=', parm_i,&lt;BR /&gt;                         ', parm_n=', parm_n,&lt;BR /&gt;                         ', parm_c=', parm_c.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 23:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/by-using-submit-can-i-pass-parameter-value-to-another-program/m-p/3772930#M907854</guid>
      <dc:creator>erp_superman</dc:creator>
      <dc:date>2022-07-18T23:09:51Z</dc:date>
    </item>
  </channel>
</rss>

