2014 May 12 2:09 PM
Dear experts,
I support an application on SAP BW 7.31 - after migrating form 7.0 to 7.31 we get this error.
In the debugger I came to an instantiation of the object of type ZCLASS wich fails with the error above.
Create object obj_ref...
The class ZCLASS is a subclass of CL_RSSH_HIERARCHY_BASE.
I seems to me SAP changed something in the base class wich affects our subclass now.
Can someone give a hint?
What does the error in general mean?
Thanx in advance
yk
2014 May 12 2:40 PM
Redefining a method means that you create you own implementation to the original one.
When doing so you can't change it's visibility, meaning you can't change it from public to protected or private.
2014 May 12 8:29 PM
Bernd,
Redefining is used when you use inheritance. The concept of inheritance allows you to define you own logic for a method but you cannot change the visibility of variables used in the methods.
This way you can define 2 objects, one of which refers to the parent and the other to the child class. When you call the method of the parent class, you can execute a different logic and when you execute the method of the child class you will use a different logic (if redefined).
Thanks,
Vikram.M
2014 May 12 8:41 PM
Hi Bernd,
Please compare the visibility of all the methods of the standard class CL_RSSH_HIERARCHY_BASE and the custom class ZCLASS. The visibility of the methods which are re-defined in ZCLASS should be exaclty same as in the standard class CL_RSSH_HIERARCHY_BASE.
Regards,
Rahul MB