<?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: How to call a class instance from e.g. 10 different parallel processes? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841851#M1591012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ioan,&lt;/P&gt;&lt;P&gt;by using so-called &lt;EM&gt;Shared Objects&lt;/EM&gt; you can buffer and share references across sessions. The classes in question have to be shared memory enabled (property) and have to be created in the shared memory (CREATE OBJECT.. AREA HANDLE..). Using them is only possible while you have bound/attached your session to a shared memory area; check the docu for Shared Objects in general and transactions SHMM, SHMA  in particular.&lt;/P&gt;&lt;P&gt;Hope this helps, regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 14:02:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-25T14:02:35Z</dc:date>
    <item>
      <title>How to call a class instance from e.g. 10 different parallel processes?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841847#M1591008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created a class instance in one abap &lt;STRONG&gt;Process/Mode&lt;/STRONG&gt; and i want to access this instance from other parrallel jobs. I pass the instance and other values to the new created &lt;STRONG&gt;Dialog Jobs/Processes&lt;/STRONG&gt; but i am losing the instance while the values are still there.  The question is if that is possbile in ABAP - i tried with a SPA/GPA but the parameters are type text so the garbage collector erases my instance. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ioan Constantin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 07:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841847#M1591008</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2011-05-25T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a class instance from e.g. 10 different parallel processes?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841848#M1591009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends what you are actually denoting as a &lt;EM&gt;process&lt;/EM&gt; here. Do you mean separate external sessions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case passing references via memory I think is not possible. This is like passing a handle for object which exists only in program's roll area. Once you terminate the program that handle would become empty. I think the only way is to flatten object (serialize it), and then pass it either to memory or store it under persistent form (i.e. as table record). Then in next "process" deflatten (deserialize) it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more or less the same process which &lt;EM&gt;workflow&lt;/EM&gt; uses. Every class which can "interact" with workflow must implement interface &lt;STRONG&gt;IF_WORKFLOW&lt;/STRONG&gt; . In that you have to program yourself how the object will look like in persistent form, then how it will retrieve an object from this persistent form. This kind of action must be done as workflow runs &lt;EM&gt;asynchronously&lt;/EM&gt; . One user creates workflow object then leaves the session (garbace collector flushes the memory so no more object exists there). After some time another user wants to access the same &lt;EM&gt;item&lt;/EM&gt; (object). The only way to have this done is to restore it from persisten form and recreate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Even the objects data are the same (attributes) there will be two separate instances in these processes, which you can't compare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 08:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841848#M1591009</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-05-25T08:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a class instance from e.g. 10 different parallel processes?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841849#M1591010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This is more or less the same process which &lt;EM&gt;workflow&lt;/EM&gt; uses. Every class which can "interact" with workflow must implement interface &lt;STRONG&gt;IF_WORKFLOW&lt;/STRONG&gt; . In that you have to program yourself how the object will look like in persistent form, then how it will retrieve an object from this persistent form. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice point Marcin!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@OP: To add to Marcin's response, the persistent form of the object reference is hence called &lt;EM&gt;&lt;U&gt;L&lt;/U&gt; ocal&lt;/EM&gt; &lt;EM&gt;&lt;U&gt;P&lt;/U&gt; ersistent&lt;/EM&gt; &lt;EM&gt;&lt;U&gt;O&lt;/U&gt; bject&lt;/EM&gt; &lt;EM&gt;&lt;U&gt;R&lt;/U&gt; eference&lt;/EM&gt; or &lt;EM&gt;LPOR&lt;/EM&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 08:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841849#M1591010</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-05-25T08:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a class instance from e.g. 10 different parallel processes?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841850#M1591011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the answer. I am familiar with the IF_WORKFLOW interface, i know what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 09:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841850#M1591011</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2011-05-25T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a class instance from e.g. 10 different parallel processes?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841851#M1591012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ioan,&lt;/P&gt;&lt;P&gt;by using so-called &lt;EM&gt;Shared Objects&lt;/EM&gt; you can buffer and share references across sessions. The classes in question have to be shared memory enabled (property) and have to be created in the shared memory (CREATE OBJECT.. AREA HANDLE..). Using them is only possible while you have bound/attached your session to a shared memory area; check the docu for Shared Objects in general and transactions SHMM, SHMA  in particular.&lt;/P&gt;&lt;P&gt;Hope this helps, regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 14:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-class-instance-from-e-g-10-different-parallel-processes/m-p/7841851#M1591012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-25T14:02:35Z</dc:date>
    </item>
  </channel>
</rss>

