<?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: why is it now a protected method? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080799#M730656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The definitions are the same. It's just transported to System B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other solution than upgrade System A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okay thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 11:03:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T11:03:20Z</dc:date>
    <item>
      <title>why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080791#M730648</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;&lt;/P&gt;&lt;P&gt;i coded a report in system A with some fine working public method calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we transported the coding to system B. but here the mothod is protected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can this happen and what can i do to make it public?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 14:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080791#M730648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T14:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080792#M730649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you are talking about methods of SAP standard classes the only explanation I have is that the systems A and B have different support package levels which exactly affect the methods you are calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To exclude this possibility you should make a &amp;lt;b&amp;gt;REMOTE comparison&amp;lt;/b&amp;gt; (&amp;lt;i&amp;gt;version management&amp;lt;/i&amp;gt;) of the public and protected sections of the affected classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 19:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080792#M730649</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-11-19T19:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080793#M730650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Uwe,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i use the standard methods like GET_DETAIL in IF_REBD_RENTAL_OBJECT. I tried the remote-Comparison, but i can only see, that the Interface coding is different. But what can i do to make it public method or how can i get the data i need out of the Object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a little peace of coding. here's the problem (I think you know this piece &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gs_detail           TYPE              rebd_rental_object,
go_rental_object           TYPE REF TO CL_REBD_RENTAL_OBJECT_RU.

  go_rental_object ?= IO_OBJECT.
  gs_detail = go_rental_object-&amp;gt;ms_detail.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 06:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080793#M730650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080794#M730651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before a solution can be offered, the nature of the problem needs to be identified.  As Uwe said, it appears that you have different versions of the class in your different systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the method is public in system A, and protected in system B, then A and B must be at different releases.  &amp;lt;b&amp;gt;What version and support packages are you on in both A and B?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If B is at higher release, then you need to reconsider how you are using a the class. Perhaps there is a different method to be used now?  If A is at a higher release than B, then you need to upgrade B to the same release as A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 10:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080794#M730651</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-20T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080795#M730652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes we have different Packages, System B with the protected one is higher Package but same Release. &lt;/P&gt;&lt;P&gt;But no new method to use. No Methos that returns the Details or sets my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it usual, that sap changes such things with package upgrades?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 10:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080795#M730652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T10:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080796#M730653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP can change anything with a new package.  But they don't usually change the functionality much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that you have posted is not using a method.  It is accessing the attribute "ms_detail" directly.  Try using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gs_detail = go_rental_object-&amp;gt;get_detail().&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not having access to your systems, I can't tell precisely, but I suspect that the difference is that SAP have tightened up their coding, so that you can only access attributes via the GET_* and SET_* methods, which is, after all, better oo programming practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds, matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 10:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080796#M730653</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-20T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080797#M730654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="confused"&gt;&lt;/SPAN&gt; Still doesn't work with your code.&lt;/P&gt;&lt;P&gt;it doesn't realize the method call. it mention that there is an existing data ms_detail. (was that correct english?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my other Programm i have the same problem with the method call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data go_rental_object    TYPE REF TO if_rebd_rental_object.

  go_specific ?= go_rental_object.  " narrowing cast
  call METHOD go_specific-&amp;gt;SET_SNUNR
        EXPORTING ID_SNUNR = p_SNUNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;System A is public method, System B protected &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 10:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080797#M730654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T10:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080798#M730655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is method GET_DETAIL defined in A and in B.  How is attribute ms_detail defined in A and in B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be that the only resolution to your problem is to bring A and B to the same support level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgd, matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 10:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080798#M730655</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-20T10:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080799#M730656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The definitions are the same. It's just transported to System B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other solution than upgrade System A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okay thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 11:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080799#M730656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T11:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080800#M730657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got some new information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Methods in Class CL_REBD_RENTAL_OBJECT_RU are all Public.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aliases in System A are public. in System B they are Protected.&lt;/P&gt;&lt;P&gt;example: IF_REBD_RENTAL_OBJECT~SET_SNUNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i use the class-method without usind the alias?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 12:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080800#M730657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080801#M730658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That might work.  Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... = go_rental_object-&amp;gt;if_rebd_rental_object~get_detail( ).&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, 20 Nov 2007 13:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080801#M730658</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-20T13:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: why is it now a protected method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080802#M730659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GREAT!&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;It works fine again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called the Method (secon problem) like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;go_specific-&amp;gt;if_rebd_rental_object~set_snunr( p_SNUNR ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works finem, too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 13:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-it-now-a-protected-method/m-p/3080802#M730659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T13:26:22Z</dc:date>
    </item>
  </channel>
</rss>

