<?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: Instance method with private visibility. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-method-with-private-visibility/m-p/12729994#M2020395</link>
    <description>&lt;P&gt;By definition, you cannot call a private instance method from outside the class. There are reasons for that behaviour.&lt;/P&gt;&lt;P&gt;If you can create a Z class and make it global friend with the standard one, you will be able to call it, but I'm not sure if it's a good practice (and I cannot even remember if the GLOBAL FRIENDS sentence must be add to the Z or the standard class... if the latter, do NOT do it!!!).&lt;/P&gt;&lt;P&gt; There must be a reason for SAP to put that method as a private.&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 10:15:47 GMT</pubDate>
    <dc:creator>VXLozano</dc:creator>
    <dc:date>2023-05-08T10:15:47Z</dc:date>
    <item>
      <title>Instance method with private visibility.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-method-with-private-visibility/m-p/12729993#M2020394</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;How can I call a private instance method from a standard class?&lt;/P&gt;
  &lt;P&gt;For example, in class "CL_SMT_STORAGE," I want to call 'GET_DB_MAPPING_FIELDS'.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Berinath Ulisi.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-method-with-private-visibility/m-p/12729993#M2020394</guid>
      <dc:creator>Berinath_Ulisi</dc:creator>
      <dc:date>2023-05-08T09:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Instance method with private visibility.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-method-with-private-visibility/m-p/12729994#M2020395</link>
      <description>&lt;P&gt;By definition, you cannot call a private instance method from outside the class. There are reasons for that behaviour.&lt;/P&gt;&lt;P&gt;If you can create a Z class and make it global friend with the standard one, you will be able to call it, but I'm not sure if it's a good practice (and I cannot even remember if the GLOBAL FRIENDS sentence must be add to the Z or the standard class... if the latter, do NOT do it!!!).&lt;/P&gt;&lt;P&gt; There must be a reason for SAP to put that method as a private.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-method-with-private-visibility/m-p/12729994#M2020395</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2023-05-08T10:15:47Z</dc:date>
    </item>
  </channel>
</rss>

