<?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: Reg: self reference ME in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172801#M997554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I know that one but why it is used is there any specific reason as we can also do the same with call method statemnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 13:42:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T13:42:01Z</dc:date>
    <item>
      <title>Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172797#M997550</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;I created a class in se24 and in method wrote simple addition logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a object in my prog for the class and entered the numbers it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use ME to reference the method its showing an error ME is not defined by any DATA statemnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class zp_class definition load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_x type i,&lt;/P&gt;&lt;P&gt;             p_y type i.&lt;/P&gt;&lt;P&gt;data : z type i.&lt;/P&gt;&lt;P&gt;CALL METHOD me-&amp;gt;zadd&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    v_x    = p_x&lt;/P&gt;&lt;P&gt;    v_y    = p_y&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    v_z    = z&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;write :z  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to make use of ME plz guide me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 11:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172797#M997550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172798#M997551</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; You can use &lt;STRONG&gt;me&lt;/STRONG&gt; only in a class which refers to the current object i.e You can use me inside the  methods of class to call the other methods of class and also to refer the attributes of class. Only members of the class can access me to refer to all the members of current object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 11:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172798#M997551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T11:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172799#M997552</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;whats the use of ME particularly as we can use call method statemnt to scess the methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 13:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172799#M997552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172800#M997553</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;me is used to refer the methods and attributes of the same class within the methods of that class only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will explain by the folllowing example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  Z_SIMPLE_CLASS&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z_simple_class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS c1 DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: a TYPE i value 3,&lt;/P&gt;&lt;P&gt;              b TYPE i value 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    METHODS: m_add exporting a type i&lt;/P&gt;&lt;P&gt;                             b type i,&lt;/P&gt;&lt;P&gt;                      m_sub.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "c1 DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD m_add.&lt;/P&gt;&lt;P&gt;    DATA c TYPE i.&lt;/P&gt;&lt;P&gt;    c = a + b.&lt;/P&gt;&lt;P&gt;    WRITE: 'c:= ', c.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "m_add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD m_sub.&lt;/P&gt;&lt;P&gt;    DATA c TYPE i.&lt;/P&gt;&lt;P&gt;    CALL METHOD me-&amp;gt;m_add.&lt;/P&gt;&lt;P&gt;    b = c.&lt;/P&gt;&lt;P&gt;    a = b.&lt;/P&gt;&lt;P&gt;    c = a - b.&lt;/P&gt;&lt;P&gt;    WRITE: 'c:= ', c.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "m_sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "c1 IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: cc1 TYPE REF TO c1,&lt;/P&gt;&lt;P&gt;        a1 type i value -4,&lt;/P&gt;&lt;P&gt;        b1 type i value -4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT cc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  cc1-&amp;gt;m_add( importing a = a1 b = b1 ).&lt;/P&gt;&lt;P&gt;  write: cc1-&amp;gt;a.&lt;/P&gt;&lt;P&gt;  write: cc1-&amp;gt;b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;Prasad G.V.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRASAD GVK on Jul 21, 2008 3:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 13:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172800#M997553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172801#M997554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I know that one but why it is used is there any specific reason as we can also do the same with call method statemnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 13:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172801#M997554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172802#M997555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is just a shorter form and it is easier to read (and understand) the source code. These are the only reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 13:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172802#M997555</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-21T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172803#M997556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Genrerally me-&amp;gt; is used to improve readability.&lt;/P&gt;&lt;P&gt;You can address an object itself by using the predefined reference variable ME within its instance methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a foreign method is called a client object is to export a reference to itself. ME can then be used as an actual parameter with EXPORTING or CHANGING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 14:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172803#M997556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T14:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172804#M997557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The main reason behind introducing  me is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using an attribute at Object level and method level with same name, then , &lt;STRONG&gt;me&lt;/STRONG&gt; is exacly used to show the difference between Object attribute and method attribute(local to method) in usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object attribute is simply called with me like me.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Eg:&lt;/STRONG&gt; if you are using a variable &lt;STRONG&gt;a&lt;/STRONG&gt; in class declaration and in method add/sub like in my earlier program, to identify the difference ,&lt;/P&gt;&lt;P&gt;object variable is referred with me-&amp;gt;a and&lt;/P&gt;&lt;P&gt;local variable used as a simply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you should understand now clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;Prasad G.V.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 14:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172804#M997557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172805#M997558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think prasad have explained the solution very properly.Just to support his answer i am giving you example and in which cases we should use me refrence variaable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class vehicle definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; public section.&lt;/P&gt;&lt;P&gt;  method constructor&lt;/P&gt;&lt;P&gt;      importing  im_make type string&lt;/P&gt;&lt;P&gt;                      im_model type string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  private section.&lt;/P&gt;&lt;P&gt;     data make type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endclass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class vehicle implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      method constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           data make type string VALUE 'abc'.&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; concatenate IM_MAKE MAKE into ME-&amp;gt;make.*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just observe above program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make is a global attribute in claa as well as &lt;/P&gt;&lt;P&gt;local varible in constructor definition.&lt;/P&gt;&lt;P&gt;so which is the nest way to distinguish between *global make *&lt;/P&gt;&lt;P&gt;and * local make*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now again if you have any doubt  then feel free to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;panky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 18:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172805#M997558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: self reference ME</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172806#M997559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; it is just a shorter form and it is easier to read (and understand) the source code. These are the only reasons.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a robustness argument as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "me" when I use any instance method or attribute within a class.  When referring to static methods and attributes, I use CLASS_NAME=&amp;gt;method/attribute.  In this way, if someone comes along later and defines some local data in a method with the same name as an instance attribute, for example, it won't affect the running of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-self-reference-me/m-p/4172806#M997559</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-22T07:47:28Z</dc:date>
    </item>
  </channel>
</rss>

