<?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 Objects &amp;quot;cx_shm_external_reference&amp;quot; exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-objects-quot-cx-shm-external-reference-quot-exception/m-p/5719330#M1297845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shared objects have to be self-contained. You cannot have references that point outside the shared object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2009 22:46:47 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2009-06-04T22:46:47Z</dc:date>
    <item>
      <title>Shared Objects "cx_shm_external_reference" exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-objects-quot-cx-shm-external-reference-quot-exception/m-p/5719329#M1297844</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 need to store an external reference in a shared object. I have a method of the class A which has a reference as import parameter. Is it possible to store this reference in a stored object so that i have access to this reference from another class B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following code i get the "cx_shm_external_reference" exception, when calling detach_commit() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_handle TYPE REF TO zcl_server_shared_obj,
        lo_root TYPE REF TO zcl_server_shared_obj_root.

  TRY.
      lo_handle = zcl_server_shared_obj=&amp;gt;attach_for_write( ).
      CREATE OBJECT lo_root AREA HANDLE lo_handle.
      lo_handle-&amp;gt;set_root( lo_root ).

      lo_root-&amp;gt;go_server = io_server.

      CALL METHOD lo_handle-&amp;gt;detach_commit.

    CATCH cx_shm_exclusive_lock_active
      cx_shm_version_limit_exceeded
      cx_shm_change_lock_active
      cx_shm_parameter_error
      cx_shm_pending_lock_removed

      cx_shm_wrong_handle
      cx_shm_already_detached
      cx_shm_secondary_commit
      cx_shm_event_execution_failed
      cx_shm_external_reference
      cx_shm_completion_error
      .

  ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Florian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Halder on Jun 4, 2009 1:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 11:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-objects-quot-cx-shm-external-reference-quot-exception/m-p/5719329#M1297844</guid>
      <dc:creator>florian_halder</dc:creator>
      <dc:date>2009-06-04T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Objects "cx_shm_external_reference" exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shared-objects-quot-cx-shm-external-reference-quot-exception/m-p/5719330#M1297845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shared objects have to be self-contained. You cannot have references that point outside the shared object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 22:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shared-objects-quot-cx-shm-external-reference-quot-exception/m-p/5719330#M1297845</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2009-06-04T22:46:47Z</dc:date>
    </item>
  </channel>
</rss>

