<?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: Access methods with type ANY and DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141556#M990221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdullah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any -  Any data type (suitable for any type) &lt;/P&gt;&lt;P&gt;any table - Internal table of any table type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access the methods of another class thru Inheritance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 07:46:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T07:46:23Z</dc:date>
    <item>
      <title>Access methods with type ANY and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141555#M990220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some of the methods of the class, the parameters have input type as &lt;STRONG&gt;DATA&lt;/STRONG&gt; or &lt;STRONG&gt;ANY&lt;/STRONG&gt;. What does this mean? and how do I access these methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More over if I am in a method of class Z1 and I want to access the instance methods of class Z2. How can I do so? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141555#M990220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T07:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access methods with type ANY and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141556#M990221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdullah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any -  Any data type (suitable for any type) &lt;/P&gt;&lt;P&gt;any table - Internal table of any table type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access the methods of another class thru Inheritance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141556#M990221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Access methods with type ANY and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141557#M990222</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; Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; In some of the methods of the class, the parameters have input type as &lt;STRONG&gt;DATA&lt;/STRONG&gt; or &lt;STRONG&gt;ANY&lt;/STRONG&gt;. What does this mean? and how do I access these methods?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; More over if I am in a method of class Z1 and I want to access the instance methods of class Z2. How can I do so? &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Abdullah.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY means you can call the method with any data type.  Whatever you choose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your second question, it depends on how Z1 and Z2 are related.  If Z2 is not a subclass/superclass of Z1, then you simply instantiate a Z2 object, and call its methods as normal z2_ref-&amp;gt;some_z2_method( ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141557#M990222</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-22T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access methods with type ANY and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141558#M990223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to initialize this class. There is one instance already there. I am working in CRM Web UI View. I am in a method of a view context node. I want to access the attribute of the other context node of the same view. Depending on the values of that node I have to do process some data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141558#M990223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access methods with type ANY and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141559#M990224</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; Hi Matthew,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I don't want to initialize this class. There is one instance already there. I am working in CRM Web UI View. I am in a method of a view context node. I want to access the attribute of the other context node of the same view. Depending on the values of that node I have to do process some data. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Abdullah&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Abdullah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't follow all the detail, but in terms of general OOP practice, I'll give it a shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're in method of Z1, and you've an instance already of Z2.    You want to access some attributes of Z2 from Z1.  Are the attributes public or not.  If they are, the answer is trivial.  If not, then you have some options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  Add a public getter method to Z2 which returns the attribute.  Then in Z1, do &lt;STRONG&gt;my_attr = z2-&amp;gt;get_attr( )&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Define Z1 as a friend of Z2 in the class definition of Z2.  This will allow Z1 to access the private attributes of Z2 directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&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 08:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-methods-with-type-any-and-data/m-p/4141559#M990224</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-22T08:24:53Z</dc:date>
    </item>
  </channel>
</rss>

