<?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: Cloning persistent objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222760#M477401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you will find the solution in the following thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="216761"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 04:27:57 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-05-02T04:27:57Z</dc:date>
    <item>
      <title>Cloning persistent objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222759#M477400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if ABAP Persistent Objects support cloning?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can clone the object using a SYSTEM-CALL (though I'd rather not), however that would still mean breaking the rules to set the object key to a new value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment the only solution appears to be creating a new persistent or transient object via the agent and manually assigning the attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 15:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222759#M477400</guid>
      <dc:creator>peter_norris</dc:creator>
      <dc:date>2007-05-01T15:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning persistent objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222760#M477401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you will find the solution in the following thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="216761"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 04:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222760#M477401</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-02T04:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning persistent objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222761#M477402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe. I knew about the SYSTEM-CALL but in this case it does not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that the object key of a persistent object does not appear to be easily modified even from within the object. I want to clone the object and then modify the key to avoid insert collisions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far as I can see there is no simple way of modifying the business key of a persistent object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I've implemented IF_OS_CLONE~CLONE in a public method of my persistent object, created a new persistent object and manually assigned the attributes. Unfortunately the code will have to be modified whenever a new attribute is added.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 04:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cloning-persistent-objects/m-p/2222761#M477402</guid>
      <dc:creator>peter_norris</dc:creator>
      <dc:date>2007-05-02T04:49:41Z</dc:date>
    </item>
  </channel>
</rss>

