<?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: EXPORT/IMPORT   SHARED BUFFER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807065#M1312669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antony, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;think it would be rather the parameter 'Targetserver' in Function 'JOB_CLOSE'. The sequence would be &lt;/P&gt;&lt;P&gt;'JOB_OPEN' - Submit Program ... -JOB_CLOSE .  At least on the Rel.4.7 where i'm working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2009 07:22:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-06T07:22:55Z</dc:date>
    <item>
      <title>EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807062#M1312666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following statments in my 2 programs. I will briefly explain the scenario..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here from the first program I am Creating &amp;amp; Submiting a Job. Before creating &amp;amp; submitting the job am trying to &lt;/P&gt;&lt;P&gt;export a ITAB so that it can be used in the JOB. Please find the below 2 statements .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statment 1. ( Used to Export ITAB from 1st program )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORT it_itab   to SHARED BUFFER indx(st) id 'ZIBT'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statement 2. ( Used in the 2nd Program whose job I am creating from the 1st after EXPORT )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORT it_itab = it_itab FROM SHARED BUFFER indx(st) ID 'ZIBT'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was working perfectly working in DEV &amp;amp; QAS ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the PRD when I ran this for the First time no processing where carried out in the SECOND program I suspect the EXPORT/IMPORT statement Failed.. But the strangest part is when I ran the Program for 2nd time it went perfectly fine i.e 2nd program worked perfectly well......&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Can some sort of time lag happen between EXPORT / IMPORT ... ( will a statment like WAIT UPTO 1 SECOND help ?? ) &lt;/P&gt;&lt;P&gt;2. I have not used any statement to remove data from the BUFFER after processing in the 2nd program is it necessary ???&lt;/P&gt;&lt;P&gt;3. Or this can be some other problem ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 13:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807062#M1312666</guid>
      <dc:creator>antony_paul2</dc:creator>
      <dc:date>2009-07-03T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807063#M1312667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may it be that your DEV&amp;amp;QAS system consists only of one application server, but your PRD lies on  several application servers ? SHARED MEMORY means the memory of the  specific application server. &lt;/P&gt;&lt;P&gt;So if you export something into shared memory in program 1, you have to be sure, that program 2 runs on the same application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in batch processing (if you don't define a batch job to a specific application server) it's a dynamic scheduling to all application server with have batch work processes. So, if you are lucky, Program2 runs on the same application server as program 1; if not, program2 finds nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 15:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807063#M1312667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807064#M1312668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Wolfgang,&lt;/P&gt;&lt;P&gt; Thanks for the reply. I guess there is no better explanation for this than what you have already suggested.&lt;/P&gt;&lt;P&gt; May be I can specify the HOST name, in which my DIA runs, as the target HOST for the Background JOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I Use the system variable SY-HOST. for the below assignment which i will do from my dialog instance ?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'JOB_SUBMIT'
     EXPORTING
    ....................................................................
    EXTPGM_SYSTEM                     =  sy-host
    ....................................................................
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 16:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807064#M1312668</guid>
      <dc:creator>antony_paul2</dc:creator>
      <dc:date>2009-07-03T16:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807065#M1312669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antony, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;think it would be rather the parameter 'Targetserver' in Function 'JOB_CLOSE'. The sequence would be &lt;/P&gt;&lt;P&gt;'JOB_OPEN' - Submit Program ... -JOB_CLOSE .  At least on the Rel.4.7 where i'm working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 07:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807065#M1312669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T07:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807066#M1312670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi Antony, Hi Wolfgang,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I think it is not a good idea to force program2 to run on same application server that of program1 is running because it might happen that all the work process of the application server on which program1 is running are all occupied, means no work process of the application server is free. In this case if we try to force the program2 on same application server it might go in wait in production system, for forcing the job on same application server sy-host of program1 should be passed to FM JOB_SUBMIT parameter Targetsystem not Targetserver.I checked with targetserver it fails and it works when you pass sy-host to Targetsystem.&lt;BR /&gt;&lt;BR /&gt;Instead we have another solution to use DATABASE instead of SHARED BUFFER in EXPORT and IMPORT statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;EXPORT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;itab FROM itab &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;TO DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program1 where job number is unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then&lt;BR /&gt;IMPORT itab TO itab FROM DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program2 where job number is passed from program1 to program2 while submit job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then DELETE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;DATABASE &lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;ar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Vignesh Yeram&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807066#M1312670</guid>
      <dc:creator>vigneshyeram</dc:creator>
      <dc:date>2013-02-21T10:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807067#M1312671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi Antony, Hi Wolfgang,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I think it is not a good idea to force program2 to run on same application server that of program1 is running because it might happen that all the work process of the application server on which program1 is running are all occupied, means no work process of the application server is free. In this case if we try to force the program2 on same application server it might go in wait in production system, for forcing the job on same application server sy-host of program1( &lt;/SPAN&gt;SY-HOST returns only the first part (&amp;lt;host name&amp;gt;), &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;This value (&amp;lt;host name&amp;gt;_&amp;lt;SAP system name&amp;gt;_&amp;lt;SAP system number&amp;gt;) can be find with the FM &lt;STRONG&gt;SBUF_PARAMETER_GET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; should be passed to FM JOB_SUBMIT parameter Targetsystem not Targetserver.I checked with targetserver it fails and it works when you pass sy-host to Targetsystem.&lt;BR /&gt;&lt;BR /&gt;Instead we have another solution to use DATABASE instead of SHARED BUFFER in EXPORT and IMPORT statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;EXPORT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;itab FROM itab &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;TO DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program1 where job number is unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then&lt;BR /&gt;IMPORT itab TO itab FROM DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program2 where job number is passed from program1 to program2 while submit job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then DELETE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;DATABASE &lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white;"&gt;ar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Vignesh Yeram&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vignesh Yeram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vignesh Yeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807067#M1312671</guid>
      <dc:creator>vigneshyeram</dc:creator>
      <dc:date>2013-02-21T10:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT   SHARED BUFFER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807068#M1312672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi Antony, Hi Wolfgang,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I think it is not a good idea to force program2 to run on same application server that of program1 is running because it might happen that all the work process of the application server on which program1 is running are all occupied, means no work process of the application server is free. In this case if we try to force the program2 on same application server it might go in wait in production system, for forcing the job on same application server sy-host of program1 should be passed to FM JOB_SUBMIT parameter Targetsystem not Targetserver.I checked with targetserver it fails and it works when you pass sy-host to Targetsystem.&lt;BR /&gt;&lt;BR /&gt;Instead we have another solution to use DATABASE instead of SHARED BUFFER in EXPORT and IMPORT statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;EXPORT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;itab FROM itab &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;TO DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program1 where job number is unique.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then&lt;BR /&gt;IMPORT itab TO itab FROM DATABASE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number in program2 where job number is passed from program1 to program2 while submit job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Then DELETE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;DATABASE &lt;SPAN style="background: white; color: black;"&gt;indx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black;"&gt;ar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) CLIENT sy-mandt &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;ID job_number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Vignesh Yeram&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-shared-buffer/m-p/5807068#M1312672</guid>
      <dc:creator>vigneshyeram</dc:creator>
      <dc:date>2013-02-26T16:17:56Z</dc:date>
    </item>
  </channel>
</rss>

