<?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: pointer table and exception table use in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387720#M1238555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The numbers are how SAP keeps track of the objects.  If you've two references to the same object, you'll see the same number in both references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT r1. -&amp;gt; debug shows r1 referes to e.g. 9&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r2 = r1. -&amp;gt; debug shows r2 refers to 9&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) What do you mean by pointer and exception tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) static/class methods and attributes are discussed widely.  It's not a topic confined to ABAP.  You use static when it's appropriate to do so...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2009 12:39:45 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-03-26T12:39:45Z</dc:date>
    <item>
      <title>pointer table and exception table use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387719#M1238554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ysubdel212     LINE-SIZE 120                         .

*---------------------------------------------------------------------*
*       CLASS testclass DEFINITION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS testclass DEFINITION.

  PUBLIC SECTION.

    METHODS : testmethod.

    CLASS-DATA num TYPE i.

ENDCLASS.                    "testclass DEFINITION

*---------------------------------------------------------------------*
*       CLASS testclass IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS testclass IMPLEMENTATION.

  METHOD : testmethod.

    num = num + 5.
    write : /5 num.

  ENDMETHOD.                    ":
ENDCLASS.                    "testclass IMPLEMENTATION


START-OF-SELECTION.

  DATA : my_obj TYPE REF TO testclass.
  DATA: myobj_tab TYPE TABLE OF REF TO testclass.

  DO 5 TIMES.

    CREATE OBJECT : my_obj.
    APPEND my_obj TO myobj_tab.

  ENDDO.

  LOOP AT myobj_tab INTO my_obj.
    CALL METHOD: my_obj-&amp;gt;testmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I checked in the debugging and checked the value of my_obj in the do loop.&lt;/P&gt;&lt;P&gt;it generated the following values.&lt;/P&gt;&lt;P&gt;tell me what this numbers mean lke 9,10,11,12,13 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)9&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;2)10&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;3)11&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;4)12&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;5)13&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) When we need to use pointer table  &amp;amp; exception table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use of pointer table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) we can call a static method with the help of object then why we need to declare as static.&lt;/P&gt;&lt;P&gt;one reason may be without object we can call with help of class, is there any other uses?&lt;/P&gt;&lt;P&gt; call method &amp;lt;obj&amp;gt;-&amp;gt; &amp;lt;method&amp;gt;&lt;/P&gt;&lt;P&gt;or call method &amp;lt;class&amp;gt;=&amp;gt;&amp;lt;method&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Mar 26, 2009 1:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 12:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387719#M1238554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: pointer table and exception table use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387720#M1238555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The numbers are how SAP keeps track of the objects.  If you've two references to the same object, you'll see the same number in both references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT r1. -&amp;gt; debug shows r1 referes to e.g. 9&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r2 = r1. -&amp;gt; debug shows r2 refers to 9&amp;lt;\PROGRAM=YSUBDEL212\CLASS=TESTCLASS&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) What do you mean by pointer and exception tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) static/class methods and attributes are discussed widely.  It's not a topic confined to ABAP.  You use static when it's appropriate to do so...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 12:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387720#M1238555</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-26T12:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: pointer table and exception table use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387721#M1238556</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;You define methods (or attributes) as static if they are intended to be INDEPENDENT of any concrete instance of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 3) we can call a static method with the help of object then why we need to declare as static.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; one reason may be without object we can call with help of class, is there any other uses?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; call method &amp;lt;obj&amp;gt;-&amp;gt; &amp;lt;method&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; or call method &amp;lt;class&amp;gt;=&amp;gt;&amp;lt;method&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: You want to calculate the VAT amount. Input parameters are the amount and the VAT rate, output is the VAT amount. This method CALCULATE_VAT_AMOUNT should be defined as static because it does not need any additional input from any instance.&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>Thu, 26 Mar 2009 20:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pointer-table-and-exception-table-use/m-p/5387721#M1238556</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-26T20:28:57Z</dc:date>
    </item>
  </channel>
</rss>

