<?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: save object in memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391904#M532007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you can try is to serialize the instance to write it to a string in XML format and export/import this string and deserialize.&lt;/P&gt;&lt;P&gt;I never tried, but this approach should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these blogs:&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2006/10/06/xml-processing-in-abap-part-9-150-abap-processing-using-xslt&lt;/P&gt;&lt;P&gt;/people/patrick.baer/blog/2005/03/01/abap-serialization--part-ii-serialization-of-arbitrary-data&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2005/04/21/webservice-navigator-page-for-abap-and-java&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Peter Inotai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 07:13:41 GMT</pubDate>
    <dc:creator>Peter_Inotai</dc:creator>
    <dc:date>2007-06-14T07:13:41Z</dc:date>
    <item>
      <title>save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391898#M532001</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 have to save an instance in memory because i need the information later.&lt;/P&gt;&lt;P&gt;The Programm goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Get instance1&lt;/P&gt;&lt;P&gt;2) call sap-classes and methods&lt;/P&gt;&lt;P&gt;3) create instance2&lt;/P&gt;&lt;P&gt;4) Call function to show instance2 &lt;/P&gt;&lt;P&gt;5) Start BDT functions. And at this point i loose my information about instance1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i write the instance1 into "global memory" for accessing all data all the time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 13:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391898#M532001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391899#M532002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you heard about Shared Memory Objects?  This is a new concept implemented in NetWeaver 2004, and enhanced in NetWeaver  7.0.   It is pretty straight forward to use and really powerful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 13:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391899#M532002</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-13T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391900#M532003</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;Is you application using BDT? If yes, then you can use BDT_INSTANCE_SELECT with pop option. You can use push and pop to push one instance and pop other one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and warm regards,&lt;/P&gt;&lt;P&gt;Smita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 13:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391900#M532003</guid>
      <dc:creator>singhsmi</dc:creator>
      <dc:date>2007-06-13T13:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391901#M532004</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;that sounds good but i don't define classes i only use the sap classes to create instances. and i want the instance to stay reachable via memory or as a global durably instance that exists in the SAP methods, functions and untill the end of my programm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391901#M532004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391902#M532005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are not using BDT, so this will not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and warm regards,&lt;/P&gt;&lt;P&gt;Smita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391902#M532005</guid>
      <dc:creator>singhsmi</dc:creator>
      <dc:date>2007-06-14T06:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391903#M532006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Smitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes and no. I don't use BDT but i call a sap function that starts the BDT and i need my instance at DSAVE. After store the obejct i return to my programm.&lt;/P&gt;&lt;P&gt;But then it's too late &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 06:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391903#M532006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T06:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391904#M532007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you can try is to serialize the instance to write it to a string in XML format and export/import this string and deserialize.&lt;/P&gt;&lt;P&gt;I never tried, but this approach should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these blogs:&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2006/10/06/xml-processing-in-abap-part-9-150-abap-processing-using-xslt&lt;/P&gt;&lt;P&gt;/people/patrick.baer/blog/2005/03/01/abap-serialization--part-ii-serialization-of-arbitrary-data&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2005/04/21/webservice-navigator-page-for-abap-and-java&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Peter Inotai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 07:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391904#M532007</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-06-14T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391905#M532008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to save an instance of a class in memory, you can use persistent classes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally ABAP programs work with data and objects that are valid at &lt;/P&gt;&lt;P&gt;runtime. They are transient i.e. temporary and disappear when program ends. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To store this data permanently and independently of the program context, &lt;/P&gt;&lt;P&gt;i.e. persistently,  it must be stored in the database. This means instances of&lt;/P&gt;&lt;P&gt;global classes can be written to database tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Persistent Services in ABAP Objects can be used to write the current attribute &lt;/P&gt;&lt;P&gt;values of objects defined as persistent to associated transparent tables. &lt;/P&gt;&lt;P&gt;On request, these values can  be imported from the tables and assigned to an &lt;/P&gt;&lt;P&gt;object previously defined as persistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use persistent services for objects, their types must be created as &lt;/P&gt;&lt;P&gt;persistent classes in Class Builder.           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send me your mail ID so that I can pass you a document on creation of persistent classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indrajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 08:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391905#M532008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: save object in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391906#M532009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the following statement just worked fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT P_DATUM to MEMORY id 'G_DATUM'.&lt;/P&gt;&lt;P&gt;Later in other coding:&lt;/P&gt;&lt;P&gt;IMPORT ...from memory id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 06:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-object-in-memory/m-p/2391906#M532009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T06:41:04Z</dc:date>
    </item>
  </channel>
</rss>

