<?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: Issues with Export/Import using Database &amp; Shared buffer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144116#M1513808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas, Subhankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the scenario without the job previously itself and it works. Thats the reason, i am trying with the job now as my requirement is that I need to change the user while executing the second report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of my import/export - I am passing the return value from the second report to the first.&lt;/P&gt;&lt;P&gt;Code in second report-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'RET1'.&lt;/P&gt;&lt;P&gt;INDX-AEDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT RETURN1 TO SHARED BUFFER INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in first report -&lt;/P&gt;&lt;P&gt;SUBMIT ZPROGRAM&lt;/P&gt;&lt;P&gt;                 VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;                     NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;                     USER    i_user&lt;/P&gt;&lt;P&gt;                 AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once Job close FM is executed successfully, I import the values as follows&lt;/P&gt;&lt;P&gt; IMPORT RETURN1 TO RETURN1 FROM SHARED BUFFER INDX(ST) ID INDXKEY3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDXKEY is having value RET1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However Return1 is not having any values in first report. It has some value in executed without the job &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please note that I have tried Export/import with Database too and I am getting the same results. &lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;Regards, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 14:00:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-23T14:00:40Z</dc:date>
    <item>
      <title>Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144112#M1513804</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 have a method that calls a program via a job and I am having issues passing data between the two.&lt;/P&gt;&lt;P&gt;Note that two different users process the method and program (via job) resp. This is how I am calling the second prog-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZPROGRAM&lt;/P&gt;&lt;P&gt;             VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;                 NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;                 USER    i_user&lt;/P&gt;&lt;P&gt;             AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to pass data from method to  the second program and vice versa and then the method continues its processing with the data acquired from the second program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using Import/Export using database and also shared buffer. What I have found is that most of the times I am able to pass data from method to program. However the job takes a couple of min to execute and I think that the data is not making back to the method in time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at some useful forum links-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7392070"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="532067"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but havent been able to find an answer yet. Any solution? Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 21:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144112#M1513804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T21:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144113#M1513805</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;Can you please advise if using export/import via database is better for my scenario or should I go with using the shared buffer ? Which is better in terms of performace, memory etc. I am planning to delete the data from both the d/b &amp;amp; shared buffer before exiting the main method.&lt;/P&gt;&lt;P&gt;Thanks, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 01:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144113#M1513805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-22T01:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144114#M1513806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't think when you submit anothe program bia job the control back to the previous program. Again here export / import will not work. This is session specific.&lt;/P&gt;&lt;P&gt;SUBMIT ZPROGRAM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VIA JOB l_jobname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUMBER l_jobcount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER i_user&lt;/STRONG&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One think you can try, just submit the program (with out any job) with screen fields and here you can pass data from/to another program via export and import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhanar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 19:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144114#M1513806</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-08-22T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144115#M1513807</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;When you IMPORT FROM / EXPORT TO DATABASE, the data gets physically stored in a DB table whose structure should be similar to INDX table. Further details can be found from SAP documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to let you know this is not session specific &amp;amp; SUBMIT'ting the program VIA JOB shouldn't impact this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;However the job takes a couple of min to execute and I think that the data is not making back to the method in time. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is difficult to analyse the problem w/o seeing your IMPORT / EXPORT construct. Post the IMPORT / EXPORT for better response.&lt;/P&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>Mon, 23 Aug 2010 03:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144115#M1513807</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-23T03:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144116#M1513808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas, Subhankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the scenario without the job previously itself and it works. Thats the reason, i am trying with the job now as my requirement is that I need to change the user while executing the second report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of my import/export - I am passing the return value from the second report to the first.&lt;/P&gt;&lt;P&gt;Code in second report-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'RET1'.&lt;/P&gt;&lt;P&gt;INDX-AEDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT RETURN1 TO SHARED BUFFER INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in first report -&lt;/P&gt;&lt;P&gt;SUBMIT ZPROGRAM&lt;/P&gt;&lt;P&gt;                 VIA JOB     l_jobname&lt;/P&gt;&lt;P&gt;                     NUMBER  l_jobcount&lt;/P&gt;&lt;P&gt;                     USER    i_user&lt;/P&gt;&lt;P&gt;                 AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once Job close FM is executed successfully, I import the values as follows&lt;/P&gt;&lt;P&gt; IMPORT RETURN1 TO RETURN1 FROM SHARED BUFFER INDX(ST) ID INDXKEY3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDXKEY is having value RET1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However Return1 is not having any values in first report. It has some value in executed without the job &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please note that I have tried Export/import with Database too and I am getting the same results. &lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;Regards, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 14:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144116#M1513808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144117#M1513809</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 need to create INDXKEY3 with the user name you had given inside the job. Also you need to wait until the job is finished.&lt;/P&gt;&lt;P&gt;You can the job status using the FM /SDF/SM_GET_JOB_STATUS or from table tbtco .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhanakr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 14:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144117#M1513809</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-08-23T14:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144118#M1513810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry, there was a typo if my prev code. The import statement goes as  this -&lt;/P&gt;&lt;P&gt; IMPORT RETURN1 TO RETURN1 FROM SHARED BUFFER INDX(ST) ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have tried giving the same username too. But let me try that option again. &lt;/P&gt;&lt;P&gt;Also let me follow your advise.. and check if the job is finished. Only if the job is finished, it should go the next steps..&lt;/P&gt;&lt;P&gt;another thought - how can I make the current process to wait until the jobs over? I&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Cheers, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 14:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144118#M1513810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144119#M1513811</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; Also let me follow your advise.. and check if the job is finished. Only if the job is finished, it should go the next steps..&lt;/P&gt;&lt;P&gt;&amp;gt; another thought - how can I make the current process to wait until the jobs over? I&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar requirement discussed in the forum: &lt;SPAN __jive_macro_name="message" id="9389472"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FMs to check the status of the BG job are: BP_JOB_STATUS_GET &amp;amp; SHOW_JOBSTATE.&lt;/P&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>Mon, 23 Aug 2010 14:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144119#M1513811</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-23T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144120#M1513812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant !! Issue is resolved.&lt;/P&gt;&lt;P&gt;Only change is I tweaked your code to use While loop (I get a little tensed with Do-Endo &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my scenario where program 1 is run by user 1 and program 2 by another user, would you advise import/export with database or with shared buffer ? Or it doesnt matter ? Let me know what you think about it.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !! I'm ready to close this topic&lt;/P&gt;&lt;P&gt;Cheers, Liz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 19:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144120#M1513812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T19:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Export/Import using Database &amp; Shared buffer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144121#M1513813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SHARED BUFFER is not user-specific but app server specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the SAP documentation for details [http://help.sap.com/abapdocu_70/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#&amp;amp;ABAP_ALTERNATIVE_6@6@].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally prefer using DB clusters (IMPORT FROM / EXPORT TO DATABASE) over other techniques when multi-session, multi-user options are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 19:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues-with-export-import-using-database-shared-buffer/m-p/7144121#M1513813</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-23T19:28:43Z</dc:date>
    </item>
  </channel>
</rss>

