<?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: Copy or Clone a Class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753346#M36345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;I've find interface:&lt;/P&gt;&lt;P&gt;IF_OS_CLONE.&lt;/P&gt;&lt;P&gt;The implementation is CL_OS_STATE.&lt;/P&gt;&lt;P&gt;In method "IF_OS_CLONE~CLONE" there's a system call: &lt;/P&gt;&lt;P&gt;SYSTEM-CALL OBJMGR CLONE &amp;lt;instance&amp;gt; TO &amp;lt;clone&amp;gt;.&lt;/P&gt;&lt;P&gt;where instance is instance clonnable and clone is the result.&lt;/P&gt;&lt;P&gt;ABAP Object don't support general class OBECT where you find clone method. &lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Nov 2005 17:40:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-13T17:40:14Z</dc:date>
    <item>
      <title>Copy or Clone a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753345#M36344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying something out with the Prototype design pattern, which involves cloning one object from another. In C++ you have copy constructors and in Java a Clone method that do the basic cloning work. I am fairly sure I don't see an equivalent built-in feature in ABAP Objects. Is anyone aware of a good template or example for writing a cloning method? (Note: some if the interfaces in the ixml library, for example, if_ixml_stream, have a clone method, but I can't find any implementing classes.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2004 21:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753345#M36344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-05-12T21:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or Clone a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753346#M36345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.&lt;/P&gt;&lt;P&gt;I've find interface:&lt;/P&gt;&lt;P&gt;IF_OS_CLONE.&lt;/P&gt;&lt;P&gt;The implementation is CL_OS_STATE.&lt;/P&gt;&lt;P&gt;In method "IF_OS_CLONE~CLONE" there's a system call: &lt;/P&gt;&lt;P&gt;SYSTEM-CALL OBJMGR CLONE &amp;lt;instance&amp;gt; TO &amp;lt;clone&amp;gt;.&lt;/P&gt;&lt;P&gt;where instance is instance clonnable and clone is the result.&lt;/P&gt;&lt;P&gt;ABAP Object don't support general class OBECT where you find clone method. &lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2005 17:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753346#M36345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-13T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or Clone a Class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753347#M36346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a buit in feature of CLONE in ABAP Objects. See example of clone methods in UserCompany object in transaction BAPI. You can also see examples of clone methods in Business Object USER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2005 20:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-or-clone-a-class/m-p/753347#M36346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-13T20:55:28Z</dc:date>
    </item>
  </channel>
</rss>

