<?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 Submit &amp; export problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040314#M965684</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 using a sumbit program B and return in Program A and which calls Program B where i am exporting 2 internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the submit in a Loop in the Program A, for the first entry in the loop submit happens properly and returns, where else for the second time in the loop it does not returns with sy subrc as 4 and no internal tables are exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am clearing the memory id also, still then it happens the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give some idea to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points assured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 07:48:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T07:48:40Z</dc:date>
    <item>
      <title>Submit &amp; export problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040314#M965684</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 using a sumbit program B and return in Program A and which calls Program B where i am exporting 2 internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the submit in a Loop in the Program A, for the first entry in the loop submit happens properly and returns, where else for the second time in the loop it does not returns with sy subrc as 4 and no internal tables are exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am clearing the memory id also, still then it happens the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give some idea to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points assured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 07:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040314#M965684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T07:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Submit &amp; export problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040315#M965685</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;You can use EXPORT and IMPORT statement.&lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Program A :
SELECT-OPTIONS: S_BELNR FOR BKPF-BELNR.

EXPORT S_BELNR TO MEMORY ID 'ZXC9'.

Program B :
DATA: BEGIN OF S_BELNR OCCURS 10.
INCLUDE STRUCTURE STRUC1.
DATA: LOW LIKE BKPF-BELNR,
HIGH LIKE BKPF-BELNR.
DATA: END OF S_BELNR.

IMPORT S_BELNR FROM MEMORY ID 'ZXC9'.

For EXPORT: http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm

For IMPORT: http://www.geocities.com/siliconvalley/campus/6345/import01.htm

Hope this will help.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;VIkranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 07:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040315#M965685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Submit &amp; export problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040316#M965686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using submit and return in  a loop, for the first time it is ok for all the other itteration it does not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points assured&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 08:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040316#M965686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T08:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Submit &amp; export problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040317#M965687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zmio_manu_dmd_fcst_unit_extr WITH SELECTION-TABLE it_seltab2 VIA    JOB jobname  NUMBER jobnum AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'ZMIO_MANU_DMD_FCST_UNIT_LAUNCH'  TO jobname. "Creating a new job for DMD_FILE&lt;/P&gt;&lt;P&gt;  PERFORM open_job.------&amp;gt; call function module job_open&lt;/P&gt;&lt;P&gt;  PERFORM create_batch_job.---&amp;gt;submit command&lt;/P&gt;&lt;P&gt;  CONCATENATE '1 Job ' jobname ' scheduled' INTO g_name.&lt;/P&gt;&lt;P&gt;  PERFORM close_job.------&amp;gt;call functin module job_close&lt;/P&gt;&lt;P&gt;  g_current_job_count = g_current_job_count + 1.&lt;/P&gt;&lt;P&gt;  g_end_job = 'Y'.&lt;/P&gt;&lt;P&gt;  PERFORM check_for_spawned_jobs.&lt;/P&gt;&lt;P&gt;  MOVE 'N' TO g_ws_canc_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_holdjob.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE status&lt;/P&gt;&lt;P&gt;       INTO it_holdjob-status&lt;/P&gt;&lt;P&gt;       FROM tbtco&lt;/P&gt;&lt;P&gt;       WHERE jobname = it_holdjob-jobname&lt;/P&gt;&lt;P&gt;       AND jobcount = it_holdjob-jobnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF it_holdjob-status = 'A'.            "aborted&lt;/P&gt;&lt;P&gt;      MOVE 'Y' TO g_ws_canc_flag.&lt;/P&gt;&lt;P&gt;      IF g_ws_canc_flag = 'Y'.&lt;/P&gt;&lt;P&gt;        IF sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;          MESSAGE i043 WITH 'Not all jobs finished successfully'.&lt;/P&gt;&lt;P&gt;          STOP.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          WRITE: /1 'Not all jobs finished successfully'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is in my existing program..with multiple jobs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 08:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-export-problem/m-p/4040317#M965687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T08:26:19Z</dc:date>
    </item>
  </channel>
</rss>

