<?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 import from memory ... export to memory ... batch problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402960#M1406576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an abap with three-step-work.&lt;/P&gt;&lt;P&gt;In first step local files will be loaded into internal tables.&lt;/P&gt;&lt;P&gt;In the second step these table contents will be changed and enriched from sap tables.&lt;/P&gt;&lt;P&gt;In the third step these content will be saved local again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Cause the program runs a long time we can't use it any longer as a dialogue app and have to run it as a background task.&lt;/P&gt;&lt;P&gt;So i divided the program. &lt;/P&gt;&lt;P&gt;1. Load the local data and do a "export itab to memory id 'abc...'.&lt;/P&gt;&lt;P&gt;2. After this i start the program again as a background task. &lt;/P&gt;&lt;P&gt;Getting the data via "import itab from memory id 'abc...', do the work in sap and do a "export itab to memory id 'abc...'.&lt;/P&gt;&lt;P&gt;3. Now there's the last start for the program.&lt;/P&gt;&lt;P&gt;Getting the data via "import itab from memory id 'abc...' and save the data local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i'm doing the second step in dialogue then all works fine.&lt;/P&gt;&lt;P&gt;When i start the second step as background task after the import i've got sy-subrc=4... and i don't know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps here's anyone who can help?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Ingo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2009 20:21:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-26T20:21:58Z</dc:date>
    <item>
      <title>import from memory ... export to memory ... batch problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402960#M1406576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an abap with three-step-work.&lt;/P&gt;&lt;P&gt;In first step local files will be loaded into internal tables.&lt;/P&gt;&lt;P&gt;In the second step these table contents will be changed and enriched from sap tables.&lt;/P&gt;&lt;P&gt;In the third step these content will be saved local again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Cause the program runs a long time we can't use it any longer as a dialogue app and have to run it as a background task.&lt;/P&gt;&lt;P&gt;So i divided the program. &lt;/P&gt;&lt;P&gt;1. Load the local data and do a "export itab to memory id 'abc...'.&lt;/P&gt;&lt;P&gt;2. After this i start the program again as a background task. &lt;/P&gt;&lt;P&gt;Getting the data via "import itab from memory id 'abc...', do the work in sap and do a "export itab to memory id 'abc...'.&lt;/P&gt;&lt;P&gt;3. Now there's the last start for the program.&lt;/P&gt;&lt;P&gt;Getting the data via "import itab from memory id 'abc...' and save the data local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i'm doing the second step in dialogue then all works fine.&lt;/P&gt;&lt;P&gt;When i start the second step as background task after the import i've got sy-subrc=4... and i don't know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps here's anyone who can help?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Ingo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 20:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402960#M1406576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: import from memory ... export to memory ... batch problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402961#M1406577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of "export itab to memory id 'abc...'"  try to use "export imara = imara to shared buffer indx(st) id l_key" as Rich Heilman explains [here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="87578"&gt;&lt;/A&gt;;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Ivo suggestion (EXPORT it_table TO MEMORY ID 'MY_MEM_ID'.) will not help as you are crossing work processes, you must use the shared buffer because it goes across all process, system wide."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say that background job starts a new process. So that memory exported in 1st step is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordialement,&lt;/P&gt;&lt;P&gt;Chaouki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 23:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402961#M1406577</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2009-11-26T23:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: import from memory ... export to memory ... batch problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402962#M1406578</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 not use export/import in background task, the memory can't be read by import.&lt;/P&gt;&lt;P&gt;so if you have to use background task, I suggest you save data to temporary database table or file, then delete them finally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 03:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402962#M1406578</guid>
      <dc:creator>peter_peng</dc:creator>
      <dc:date>2009-11-27T03:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: import from memory ... export to memory ... batch problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402963#M1406579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-from-memory-export-to-memory-batch-problem/m-p/6402963#M1406579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T12:54:03Z</dc:date>
    </item>
  </channel>
</rss>

