<?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: One instance in different applications in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675537#M1448703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  MerijnBlommaert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though I am not sure on Application logging, I can surely help you out in your requirement of using the same object in different programs. For this you can use Persistent Services.&lt;/P&gt;&lt;P&gt;Please refer the following [link|http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/a3682ebc6911d4b2e80050dadfb92b/content.htm].&lt;/P&gt;&lt;P&gt;[Persistence Service|http://help.sap.com/saphelp_47x200/helpdata/EN/fd/022008bc9311d4b2e80050dadfb92b/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranaam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranaam on Mar 5, 2010 1:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranaam on Mar 5, 2010 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Mar 2010 07:30:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-05T07:30:51Z</dc:date>
    <item>
      <title>One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675532#M1448698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about objects.&lt;/P&gt;&lt;P&gt;I want to use one object of a class in one application, and the same object in another application. At the same moment.&lt;/P&gt;&lt;P&gt;So i use a singleton to create my instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i've tested it and it seems this instance is not the same instance. So it looks like that one instance is created for each application.&lt;/P&gt;&lt;P&gt;But i need to write my data the the attributes of that one object, that is accessible between applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this uberhaupt possible ? If yes, how &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merijn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: this refers to application logging. So if someone could provide some ideas about app. logging with use of abap objects, feel free ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 11:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675532#M1448698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T11:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675533#M1448699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Merijn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my opinion it is not possible to use one common object in two different applications.&lt;/P&gt;&lt;P&gt;Each application is using its own roll area, which you can compare like each application is executed in its own process.&lt;/P&gt;&lt;P&gt;But I think there are some possibilities to realize the communication between your applications.&lt;/P&gt;&lt;P&gt;1. you can use the filesystem or the database&lt;/P&gt;&lt;P&gt;2. if both application are executed in the same login session, you can use the SAP memory&lt;/P&gt;&lt;P&gt;3. I have no experience, but maybe you can use the services of a persistent class&lt;/P&gt;&lt;P&gt;4. depending on your requirements, maybe you can use async RFC like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
example code from BC415 page 3-34
CALL FUNCTION u2019XYZu2019
  DESTINATION u2019Bu2019
  STARTING NEW TASK u2019T1u2019
  PERFORMING UP1 ON END OF TASK
  EXPORTING ...
  TABLES ...
  EXCEPTIONS
  COMMUNICATION_FAILURE = 1
  SYSTEM_FAILURE = 2.
...
FORM UP1 USING T.
  RECEIVE RESULTS FROM FUNCTION u2019XYZu2019
  IMPORTING ...
  TABLES ...
  EXCEPTIONS
  COMMUNICATION_FAILURE = 1
  SYSTEM_FAILURE = 2
  FLIGHT_NOT_FOUND = 3.
...
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are only my ideas and I hope, that i did not write too much nonsens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Hubert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 12:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675533#M1448699</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2010-03-03T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675534#M1448700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;certainly no nonsens for me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm still a beginner.&lt;/P&gt;&lt;P&gt;Well i looked up the 'persistent class' idea, and maybe it wil do, but i have to read much much more.&lt;/P&gt;&lt;P&gt;Maybe I can use the db too, that's a last resort, but i'll think it over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for the answers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 12:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675534#M1448700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675535#M1448701</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;Shared Memory Objects are the solution for this problem. Check the online help or the SDN for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning logging: There are function modules provided by SAP. Check the function modules within function group SBAL for an introduction. You will also find information in the SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the functionality is not provided through OO classes. Maybe in future releases... &lt;SPAN __jive_emoticon_name="confused"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 20:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675535#M1448701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-03T20:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675536#M1448702</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;So the persistent classes are not an option ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to create an own OO-solution to be able to log all the messages.&lt;/P&gt;&lt;P&gt;I tried it with factory pattern but didn't work out good enough (but my pattern could be wrong implemented :-s ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my own design, i use the correct functions (BAL ... ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need a design for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;applications.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; each application must use the same application log to buffer the messages&lt;/P&gt;&lt;P&gt;-&amp;gt; at the end of the day, so after the run (that sends batches), the application log must be closed, and must write the buffered messages to db.&lt;/P&gt;&lt;P&gt;-&amp;gt; On the meanwhile, other messages of these applications could be written, so a new application log must be created tu buffer these message, while the old one keeps writing to db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this could help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx already for your interests&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675536#M1448702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675537#M1448703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  MerijnBlommaert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though I am not sure on Application logging, I can surely help you out in your requirement of using the same object in different programs. For this you can use Persistent Services.&lt;/P&gt;&lt;P&gt;Please refer the following [link|http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/a3682ebc6911d4b2e80050dadfb92b/content.htm].&lt;/P&gt;&lt;P&gt;[Persistence Service|http://help.sap.com/saphelp_47x200/helpdata/EN/fd/022008bc9311d4b2e80050dadfb92b/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranaam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranaam on Mar 5, 2010 1:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranaam on Mar 5, 2010 1:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 07:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675537#M1448703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: One instance in different applications</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675538#M1448704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;I already looked at your links, but for someone who's not that experienced in sap/abap, this is hard work :-).&lt;/P&gt;&lt;P&gt;I'll try to implement it as persistent object, if that's allright with my colleagues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone who posted their helpful answers. &lt;/P&gt;&lt;P&gt;I will mark this question as answered. If i have another problem, i'll bother you again. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 09:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-instance-in-different-applications/m-p/6675538#M1448704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T09:34:48Z</dc:date>
    </item>
  </channel>
</rss>

