<?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: doubt help SAP Library Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033408#M717583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lopez &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify the question I have pasted the coding here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: cref1  TYPE REF TO c_counter,
          cref2  TYPE REF TO c_counter,
          cref3  LIKE CREF1.

CREATE OBJECT: cref1, cref2.  " 'pointers' for both instances exist

MOVE cref2 TO cref3.               " cref2 and cref3 point to the same instance

CLEAR cref2.                           " cref3 still filled -&amp;gt; still pointers to both instances exist

cref3 = cref1.                           " cref3 points no longer to instance&amp;lt;2&amp;gt; but instance&amp;lt;1&amp;gt;
                                              " Thus, there is no pointer to instance&amp;lt;2&amp;gt; anymore
                                              " instance&amp;lt;2&amp;gt; will be removed by garbage collector&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&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>Mon, 03 Dec 2007 17:10:56 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-12-03T17:10:56Z</dc:date>
    <item>
      <title>doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033406#M717581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t understand the next paragraph (help SAP Library)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm"&gt;link sap library &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a error? CREF1 to &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;CREF3&lt;/P&gt;?&lt;BR /&gt;If it could not be so,why CREF2?&lt;BR /&gt;&lt;BR /&gt;"The effect of the assignment statement is to copy the reference from &lt;B&gt;&lt;P&gt;CREF1 to CREF2&lt;/P&gt;&lt;/B&gt;. As a result, the reference in CREF3 also points to the object C_COUNTER&amp;lt;1&amp;gt;. No more references point to the object C_COUNTER&amp;lt;2&amp;gt;, and it is automatically deleted by the garbage collection. The internal name C_COUNTER&amp;lt;2&amp;gt; is now free again."&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 22:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033406#M717581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T22:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033407#M717582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;escuse me, the link is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw70/helpdata/en/73/f6b832b3fd11d194f20000e8353423/content.htm"&amp;gt;http://help.sap.com/saphelp_nw70/helpdata/en/73/f6b832b3fd11d194f20000e8353423/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 16:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033407#M717582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T16:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033408#M717583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lopez &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify the question I have pasted the coding here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: cref1  TYPE REF TO c_counter,
          cref2  TYPE REF TO c_counter,
          cref3  LIKE CREF1.

CREATE OBJECT: cref1, cref2.  " 'pointers' for both instances exist

MOVE cref2 TO cref3.               " cref2 and cref3 point to the same instance

CLEAR cref2.                           " cref3 still filled -&amp;gt; still pointers to both instances exist

cref3 = cref1.                           " cref3 points no longer to instance&amp;lt;2&amp;gt; but instance&amp;lt;1&amp;gt;
                                              " Thus, there is no pointer to instance&amp;lt;2&amp;gt; anymore
                                              " instance&amp;lt;2&amp;gt; will be removed by garbage collector&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&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>Mon, 03 Dec 2007 17:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033408#M717583</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-03T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033409#M717584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there isn't any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to explain this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;start-of-selection.

  CREATE OBJECT: cref1, cref2.
"  creates CREF1 .. value = {O:3*PROGRAM=ZTEST_NPCLASS=C1} - first reference
"  creates CREF2 .. vlaue = {O:4*PROGRAM=ZTEST_NPCLASS=C1} - second reference
"  CREF3 .. value = *** illegal reference ***

  move cref2 to cref3.
"  creates CREF1 .. value = {O:3*PROGRAM=ZTEST_NPCLASS=C1}
"  creates CREF2 .. vlaue = {O:4*PROGRAM=ZTEST_NPCLASS=C1}
"  CREF3 .. value = {O:4*PROGRAM=ZTEST_NPCLASS=C1}
" Values of the CREF3 has been set from CREF2 even if we have definition like DATA: cref3 like cref1.

  clear cref2.
" CREF2 .. VALUE = *** illegal reference ***  
" CREF3 .. VALUE = {O:4*PROGRAM=ZTEST_NPCLASS=C1}
" second reference is not yet free because CREF3 is holding that

  cref3 = cref1.
"  creates CREF1 .. value = {O:3*PROGRAM=ZTEST_NPCLASS=C1}
"  creates CREF2 .. VALUE = *** illegal reference ***  
"  CREF3 .. value = {O:3*PROGRAM=ZTEST_NPCLASS=C1}
" second reference is free now.. so, garbage collector will take care of it
  write: 'bye'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 17:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033409#M717584</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-03T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033410#M717585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;thank you for you attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have debuger the next code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zcu04_prueba.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS counter DEFINITION.
 PUBLIC SECTION.
  DATA A TYPE I.
  METHODS: increment.

ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS counter IMPLEMENTATION.
 METHOD increment.
   A = A + 1.
 ENDMETHOD.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: cref1  TYPE REF TO counter,
           cref2  TYPE REF TO counter,
           cref3  LIKE cref1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1º):&lt;/P&gt;&lt;P&gt;cref1 = 0&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;cref2 = 0&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;cref3 = 0&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT: cref1, cref2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2º):&lt;/P&gt;&lt;P&gt;cref1 = 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE cref2 TO cref3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3º):&lt;/P&gt;&lt;P&gt;cref1 = 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR cref2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4º):&lt;/P&gt;&lt;P&gt;cref1 = 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;cref3 = cref1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4º):&lt;/P&gt;&lt;P&gt;cref1 = 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/73/f6b832b3fd11d194f20000e8353423/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/73/f6b832b3fd11d194f20000e8353423/content.htm &lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t understand the next sentence (help SAP Library)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The effect of the assignment statement is to copy the reference from CREF1 to &lt;U&gt;CREF2&lt;/U&gt;&lt;/P&gt;. As a result, the reference in CREF3 also points to the object C_COUNTER&amp;lt;1&amp;gt;. No more references point to the object C_COUNTER&amp;lt;2&amp;gt;, and it is automatically deleted by the garbage collection. The internal name C_COUNTER&amp;lt;2&amp;gt; is now free again." &lt;BR /&gt;&lt;BR /&gt;I don´t understand. I think that the sentence:&lt;BR /&gt;&lt;BR /&gt;"&lt;B&gt;&lt;P&gt;The effect of the assignment statement is to copy the reference from CREF1 to C&lt;U&gt;REF3&lt;/U&gt;&lt;/P&gt;&lt;/B&gt;  is the correct.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it is no correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 09:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033410#M717585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T09:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: doubt help SAP Library Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033411#M717586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lopez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. There is obviously a mistake in the description of the sample.&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>Tue, 04 Dec 2007 09:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-help-sap-library-objects/m-p/3033411#M717586</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-04T09:07:41Z</dc:date>
    </item>
  </channel>
</rss>

