Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Methods Implemented in Other Classes

former_member343107
Participant
0 Likes
2,392

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,288

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,288

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

Read only

Former Member
0 Likes
1,288

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,289

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

Read only

0 Likes
1,288

Thanks a lot. Now I understand the reason.

Best Regards

Jerome