<?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: Create Post Exit Method - Access to protected attribute is not allowed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580484#M1860158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Klaus Babl wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What about creating a custom child class of this standard class?&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2 things i would like to point out &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1024/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We don't know if the standard class is not marked as "Final".&lt;/LI&gt;&lt;LI&gt;We cannot access the private attributes of the parent (standard) class &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 07:57:59 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2014-10-02T07:57:59Z</dc:date>
    <item>
      <title>Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580479#M1860153</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;I am creating a post exit enhancement for standard ABAP class method.&lt;/P&gt;&lt;P&gt;Once its created when I run syntax check it says the " Access to protected attribute is not allowed". &lt;/P&gt;&lt;P&gt;The standard abap class method has a returning parameter, its associated type is protected attribute ( Refering different class attribute).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me how to overcome the above issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 18:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580479#M1860153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-30T18:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580480#M1860154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to find a public method, where you can access the attribute's value. Scan the whole class for the attribute's name and check the where-used-list.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 06:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580480#M1860154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580481#M1860155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to create a POST exit ITSELF... the moment I create and do&amp;nbsp; syntax check , its throwing a message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the standard class method has a returning parameter which is associated to protected attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580481#M1860155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580482#M1860156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why do you enhance a SAP standard class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about creating a custom child class of this standard class?&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 05:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580482#M1860156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-02T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580483#M1860157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Once its created when I run syntax check it says the " Access to protected attribute is not allowed".&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which version of ABAP release are you working on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that for releases &amp;gt; 731 you get a pop-up asking if you wanted access to the private/protected elements of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/554808" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is possible via the usage of the addition LOCAL FRIENDS - &lt;A href="http://help.sap.com/abapdocu_740/en/abapclass_local_friends.htm" title="http://help.sap.com/abapdocu_740/en/abapclass_local_friends.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 07:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580483#M1860157</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-10-02T07:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580484#M1860158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Klaus Babl wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What about creating a custom child class of this standard class?&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2 things i would like to point out &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1024/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We don't know if the standard class is not marked as "Final".&lt;/LI&gt;&lt;LI&gt;We cannot access the private attributes of the parent (standard) class &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 07:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580484#M1860158</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-10-02T07:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create Post Exit Method - Access to protected attribute is not allowed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580485#M1860159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes, we don't know, but we will hear from Vinoth, if it is not possible to create a child class.&lt;/P&gt;&lt;P&gt;2. I don't think we need to access the attribute of the parent class. Methods can be redefined, new attributes can be added, there are several options in a child class to find a workaround for that.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-post-exit-method-access-to-protected-attribute-is-not-allowed/m-p/10580485#M1860159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-02T08:41:19Z</dc:date>
    </item>
  </channel>
</rss>

