<?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 data to submit program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265611#M1529460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forget export/import....look at your ABAP help for SUBMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 13:51:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-22T13:51:06Z</dc:date>
    <item>
      <title>passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265609#M1529458</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;i am submiting a report via job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am using export/import to have data in the called program and its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if there are any other options how i can achieve the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export data... to memory data&lt;/P&gt;&lt;P&gt;call function job_open&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit called_report via job  v_job and return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function job close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;called_report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import data from memory id.&lt;/P&gt;&lt;P&gt;here i am getting sy-subrc as 4. Am i doing some thing wrrong or suggest me some other ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vidhyarthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 12:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265609#M1529458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265610#M1529459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are the documents which you can use for the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.s001.org/ABAP-Hlp/abapexport_data_cluster.htm" target="test_blank"&gt;http://www.s001.org/ABAP-Hlp/abapexport_data_cluster.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import:-&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/import01.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/import01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are transferring data with in session you can use 'import and export'. If it is in different sessions you should use 'set and get parameters'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export &amp;amp; import are ABAP memory.&lt;/P&gt;&lt;P&gt;set &amp;amp; get parameters are SAP memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265610#M1529459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265611#M1529460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forget export/import....look at your ABAP help for SUBMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265611#M1529460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265612#M1529461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; forget export/import....look at your ABAP help for SUBMIT.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you want to imply, this works fine for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest01.
DATA: v_name TYPE char20 VALUE 'Suhas Saha'.

EXPORT v_name TO MEMORY ID 'TEST_SDN'.

SUBMIT ztest02 AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest02.
DATA: v_name TYPE char20.

IMPORT v_name FROM MEMORY ID 'TEST_SDN'.
IF sy-subrc = 0.
  WRITE: / v_name.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265612#M1529461</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-22T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265613#M1529462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a file for saving / loading your data or try sth like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT ZFBPET00 WITH BR_BUKRS IN BR_BUKRS&lt;/P&gt;&lt;P&gt;                  WITH CPUDATUM IN DATUM&lt;/P&gt;&lt;P&gt;                  EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              LISTOBJECT = LISTE&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              NOT_FOUND  = 1&lt;/P&gt;&lt;P&gt;              OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265613#M1529462</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-09-22T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265614#M1529463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that although the issue looks pretty easy, the reason why that doesn't work is not straightforward. We need to consider &lt;STRONG&gt;memory&lt;/STRONG&gt; organization here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all know that when submiting program the new &lt;STRONG&gt;internal&lt;/STRONG&gt; session is opened (either placed atop a current internal session or replacing it). If we use ABAP memory, the data is stored in the memory which allows exchaning data b/w different internal sessions (within one external session). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently submiting a program via job works similarly to &lt;EM&gt;CALL FUNCTION ... STARTING NEW TASK&lt;/EM&gt; . In this case new &lt;STRONG&gt;external&lt;/STRONG&gt; session is opened and paraller processing takes place there. In such case only SAP Memory can be used to exchange data. I might suspect that submiting via job only runs the program &lt;DEL&gt;and then restore the control to orignial program.&lt;/DEL&gt;  in separate session (paraller processing will take place only when submited with immediate execution). So maybe using SAP memory will help. Otherwise consider exchaning data using DB table or &lt;EM&gt;shared memory&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I would lie saying I am sure about this - I am only suspecting. Anyhow I think it is worth trying;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Sep 22, 2010 4:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 14:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265614#M1529463</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-22T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265615#M1529464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a custom program?(which looks like it is)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of data you are trying to pass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its a custom program and data that needs to be passed is fairly simple, you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; in your custom program declare a screen field for the data you want to pass. If you want you can hide this screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt; Use submit WITH SELECTION-TABLE rspar options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data is huge then you may research the shared objects-- tcode SHMA. Or something as simple as a database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 15:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265615#M1529464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T15:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: passing data to submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265616#M1529465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also see this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="75471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-submit-program/m-p/7265616#M1529465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T18:18:29Z</dc:date>
    </item>
  </channel>
</rss>

