<?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: SAP Class protected method calling error in zcustom program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712155#M1770246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a new class with CL_HRECM00_STATUS_CHANGE_APPL as superclass. it is not final. you will be able to call protected methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 20:00:12 GMT</pubDate>
    <dc:creator>former_member182372</dc:creator>
    <dc:date>2013-09-19T20:00:12Z</dc:date>
    <item>
      <title>SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712147#M1770238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to call a protected method from sap given class, and I am getting the below error , please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;method active_infotypes is unknown or protected or private."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code where i am trying to access the method from the sap standard class (method was defined as protected..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;cl_hrecm00_status_change_appl&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;activate_infotypes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_orgunit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;iv_orgunit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_test_mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;iv_test_mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_note&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;iv_note&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; io_message_handler &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;io_message_handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev_is_ok&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ev_is_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 17:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712147#M1770238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712148#M1770239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot call a protected method of a class from outside.&lt;/P&gt;&lt;P&gt;It can only be called in the class methods or in its subclasses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712148#M1770239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712149#M1770240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you know concept of OOPS.. &lt;/P&gt;&lt;H5&gt;Public Section&lt;/H5&gt;&lt;P&gt;All of the components declared in the public section are accessible to all users of the class, and to the methods of the class and any classes that inherit from it. The public components of the class form the &lt;STRONG&gt;interface between the class and its users&lt;/STRONG&gt;.&lt;/P&gt;&lt;H5&gt;Protected Section&lt;/H5&gt;&lt;P&gt;All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it. Protected components form a special &lt;STRONG&gt;interface between a class and its subclasses&lt;/STRONG&gt;. Since inheritance is not active in Release 4.5B, the protected section currently has the same effect as the private section. &lt;/P&gt;&lt;H5&gt;Private Section&lt;/H5&gt;&lt;P&gt;Components that you declare in the private section are only visible in the methods of the same class. The private components are &lt;STRONG&gt;not part of the external interface of the class&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to use it outside of class then make it public.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712149#M1770240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712150#M1770241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make use of some of the standard sap class methods which are protected, so in that case it is not possible to reuse sap given methods in my program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712150#M1770241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712151#M1770242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As per this statement, if I inherit sap standard class can I access methods from protected class? Also we are on ECC6 EHP5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712151#M1770242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712152#M1770243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you inherit any class , then you can access its protected property in the sub class. This is OOPS concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Super class..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;private Section.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Method1&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Protected section:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Method2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub class inherited form Super class..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now Method2 will be accessible into it...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Its a just simple English text. Not a code.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712152#M1770243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712153#M1770244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying as below to access the sap given standard class method, still not able to access , please suggest what I am doing wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form perform_action&lt;/P&gt;&lt;P&gt;* Create a reference type for the class: &lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA: obj_cl_hrecm00 TYPE REF TO cl_hrecm00_status_change_appl.&lt;/P&gt;&lt;P&gt;*Create object for the referenced class&lt;/P&gt;&lt;P&gt;&amp;nbsp; CREATE object obj_cl_hrecm00.&lt;/P&gt;&lt;P&gt;* Call method with object reference: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CALL METHOD obj_cl_hrecm00=&amp;gt;activate_infotypes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_orgunit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = iv_orgunit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_test_mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = iv_test_mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_note&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = iv_note&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; io_message_handler = io_message_handler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev_is_ok&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ev_is_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice what I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712153#M1770244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712154#M1770245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 18:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712154#M1770245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-19T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712155#M1770246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a new class with CL_HRECM00_STATUS_CHANGE_APPL as superclass. it is not final. you will be able to call protected methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 20:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712155#M1770246</guid>
      <dc:creator>former_member182372</dc:creator>
      <dc:date>2013-09-19T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Class protected method calling error in zcustom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712156#M1770247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And btw, ACTIVATE_INFOTYPES is instnace method not static. So you call it like -&amp;gt; not like =&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 20:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-class-protected-method-calling-error-in-zcustom-program/m-p/9712156#M1770247</guid>
      <dc:creator>former_member182372</dc:creator>
      <dc:date>2013-09-19T20:01:36Z</dc:date>
    </item>
  </channel>
</rss>

