‎2007 Jul 08 6:57 AM
Dear all,
In our system I found such a class. In t-code SE24, some of its method names are displayed in blue fonds, instead of ordinary black fonds. When I double click on the method names, a pop-up window indicates "Method xxx is implemented in class yyy". I have no idea about the relationship between the original class and the class yyy. Can anybody explain such a situation?
Thanks + Best Regards
Jerome
‎2007 Jul 08 6:14 PM
Hello Jerome
If you display class CL_GUI_ALV_GRID in transaction SE80 and open the folder "Methods" you will see which method will be displayed in "blue":
- all methods in sub-folder <b>Inherited Methods</b> are shown in blue
- some of these inherited methods have been redefined within the class (folder Redfinitions) and are displayed in "ordinary" black font
Which is the superclass of CL_GUI_ALV_GRID? Simply display the <b>Properties </b>tabstrip of the class. There you see that CL_GUI_ALV_GRID_BASE is the superclass.
Thus, all methods displayed in blue are methods inherited from the superclass that have not been redefined.
Regards
Uwe
‎2007 Jul 08 12:47 PM
Hi
In SE24 you find both Classes and Interfaces
which have methods in it.
You might be clicking on a Method of an Interface and it might be showing like that.
Since methods of an interface are to be implemented in other class(as they are Abstract methods) you don't find the implemenetation of that method in that interface,
so that method will be implemented in some other class which impliments that interface.
Reward points for useful Answers
Regards
Anji
‎2007 Jul 08 1:49 PM
hi,
SE24 tr code contains both classes and interfaces.
we can implement the methods of interface in the class, that class must be implements the interface( which contains the method which we you are implemented).
anthor possibilty..., SE24 contains different type of classes, in which ABSTRACT CLASSES contains at least one abstact method. i think what ever the method you selected is of type ABSTRACT methods. we can provide implementation part for the abstract methods in it's inherited class.
regards,
Ashok Reddy
‎2007 Jul 08 6:14 PM
Hello Jerome
If you display class CL_GUI_ALV_GRID in transaction SE80 and open the folder "Methods" you will see which method will be displayed in "blue":
- all methods in sub-folder <b>Inherited Methods</b> are shown in blue
- some of these inherited methods have been redefined within the class (folder Redfinitions) and are displayed in "ordinary" black font
Which is the superclass of CL_GUI_ALV_GRID? Simply display the <b>Properties </b>tabstrip of the class. There you see that CL_GUI_ALV_GRID_BASE is the superclass.
Thus, all methods displayed in blue are methods inherited from the superclass that have not been redefined.
Regards
Uwe
‎2007 Jul 09 2:41 AM
Thanks a lot. Now I understand the reason.
Best Regards
Jerome