<?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: Shared Memory Areas not accessible in background processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207093#M1626984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Luca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already tried, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 08:23:19 GMT</pubDate>
    <dc:creator>ged_hurst</dc:creator>
    <dc:date>2012-09-13T08:23:19Z</dc:date>
    <item>
      <title>Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207088#M1626979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using Shared Memory Areas to share data between an on-line transaction and a background program. The on-line transaction collects the data, creates the Shared Memory Area and submits a background job to process it. So, after the detach_commit, it performs submit program via job_name xxxx number nnnn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works OK in our dev and quality systems, but does not work in our production system. The memory area is created OK, but the job cannot access it. In the background program, we get the message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The read lock on the instance 'ZNNNNNNN' in the client '100' of the shared objects memory area 'ZCL_XXX' cannot be set, since there is no active version of this area instance. However, the area constructor for the automatic construction of the area instance was started."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the SMA side, we've tried seemingly every combination, even "propagate_instance". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job seems to be running on the same application server as the SMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about what we're doing wrong, anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 07:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207088#M1626979</guid>
      <dc:creator>ged_hurst</dc:creator>
      <dc:date>2011-10-12T07:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207089#M1626980</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;if possible change it to "Export/Import to Database ID".&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 07:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207089#M1626980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207090#M1626981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, thanks for the suggestion. We had that technique lined up as a fall-back scenario, but we would really like a solution to our SMA problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 08:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207090#M1626981</guid>
      <dc:creator>ged_hurst</dc:creator>
      <dc:date>2011-10-12T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207091#M1626982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, maybe the problem is that your system have more than one applications. Can you try with method PROPAGATE_INSTANCE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 20:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207091#M1626982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-12T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207092#M1626983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ged,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember that &lt;A href="http://help.sap.com/abapdocu_731/en/abenmemory_organization.htm"&gt;SHM&lt;/A&gt; is accessible across one App Server(AS) only.&lt;SPAN __jive_emoticon_name="info" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/952/images/emoticons/info.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your SAP landscape has multiple AS's then it might pose a problem. When you're scheduling the background job, i guess that the Bgd work process is started in a different AS(load balancing &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/952/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;) and hence SHM is no accessible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case, then you've no other option but to store the data persistently in DB clusters viz., INDX-type tables (EXPORT TO/IMPORT FROM DATABASE). &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/952/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 07:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207092#M1626983</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-09-13T07:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207093#M1626984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Luca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already tried, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 08:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207093#M1626984</guid>
      <dc:creator>ged_hurst</dc:creator>
      <dc:date>2012-09-13T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory Areas not accessible in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207094#M1626985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost certainly, you are correct. I seem to remember (it was some time ago now) checking out the AS where the background jobs were running and finding that they were the same but I suppose I was mistaken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I think the design of the original application was wrong in trying use SHM in an online/background context. Clearly SHM is most useful in a purely online context where rapid access to complex data objects held in AS memory is needed, without the overhead of additional DB access and processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ged&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 08:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-memory-areas-not-accessible-in-background-processing/m-p/8207094#M1626985</guid>
      <dc:creator>ged_hurst</dc:creator>
      <dc:date>2012-09-13T08:38:51Z</dc:date>
    </item>
  </channel>
</rss>

