<?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: how to assign current class reference to a variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751233#M36154</link>
    <description>&lt;P&gt;Yes Sandra, Exactly.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 08:38:59 GMT</pubDate>
    <dc:creator>Muthu_raja</dc:creator>
    <dc:date>2019-01-03T08:38:59Z</dc:date>
    <item>
      <title>how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751230#M36151</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;
  &lt;P&gt; i want to assign current class reference to a variable.&lt;/P&gt;
  &lt;P&gt;ex; in the below example i am not knowing how to assign lref_A1 in class A2 with reference of A1. &lt;/P&gt;
  &lt;P&gt;may i know how to assign it.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;class A1 defination,
 methods first,
endclass

class A2,
data lref_A1 type ref to A1,
methods some_test,
endclass.

class A1 implementaion.
method first.
create object lref_new2 type ref to A2.
*****how to assign lref_A1 the current reference 

***lref_new2-lref_A1 = this or lref_new2-lref_A1 = me "is not working 

********how to assign
end method.
endclass.

create object lref_new type A1.
lref_new-&amp;gt;first( ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Jan 2019 23:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751230#M36151</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2019-01-02T23:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751231#M36152</link>
      <description>&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ME&lt;/STRONG&gt;&lt;/EM&gt; should work&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;class a1 implementation.

  method first.

    data: lref_new2 type ref to a2.

    create object lref_new2.

    lref_new2-&amp;gt;lref_A1 = me.

  endmethod.

endclass.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 05:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751231#M36152</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2019-01-03T05:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751232#M36153</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/3663/kiranrachamalla.html"&gt;kiran rachamalla&lt;/A&gt; tried &lt;STRONG&gt;ME&lt;/STRONG&gt; but it couldn't work because the true error was that an attribute cannot be assigned with the structure component selector (minus character), it can be assigned only with the object component selector &lt;B&gt;-&amp;gt;&lt;/B&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751232#M36153</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-03T08:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751233#M36154</link>
      <description>&lt;P&gt;Yes Sandra, Exactly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751233#M36154</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2019-01-03T08:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751234#M36155</link>
      <description>&lt;P&gt;hi Muthu,&lt;/P&gt;&lt;P&gt;        i only placed wrong actually i placed type ref to data &lt;/P&gt;&lt;P&gt;that leads to issue.&lt;/P&gt;&lt;P&gt;now corrected .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kiran rachamalla.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 12:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751234#M36155</guid>
      <dc:creator>RachamallaKiran</dc:creator>
      <dc:date>2019-01-03T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to assign current class reference to a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751235#M36156</link>
      <description>&lt;P&gt;So, Kiran, as far as I understand, your question had so many typos that nobody could even find the right issue. Next time, post a &lt;STRONG&gt;compilable &lt;/STRONG&gt;source code, PLEASE!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 12:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-assign-current-class-reference-to-a-variable/m-p/751235#M36156</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-03T12:41:20Z</dc:date>
    </item>
  </channel>
</rss>

