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

Redefined methods in class

Former Member
0 Likes
3,967

hi exprets!!

i am working in chaning in a class methods. i was given with a class and need to change only in redefined methods. can you please help me how to recognise the redefined methods in class and how to recognize the redefined methods from other methods.

plz help me on the same.

thank you,

Mahesh

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
2,615

Additionally to what Guys suggested, you can also see all methods grouped accordinig to class membership.

In SE24 -> display class -> select Filter icon -> choose Group by interfaces and superclasses .

This is nice way to distinguish where the method really comes from.

Regards

Marcin

7 REPLIES 7
Read only

Sm1tje
Active Contributor
0 Likes
2,615

In a class, all inherited methods are show in 'display' format and the characters are shown in blue (highlighted). You can't change the name of the method, change parameters or whatever. All other methods are shown in 'edit' mode. Now for all methods inherited from superclass(es) only the redefined methods are shown in 'black' characters in stead of blue. These methods are the ones that are redefined. If you double click on the non-redefined methods, you get a pop-up message, saying that this method is implemented in superclass 'XXX'. For the redefined methods, this will not be the case.

Read only

matt
Active Contributor
0 Likes
2,615

ABAP Objects questions go in the ABAP Objects forum - I've fixed that for you.

Now, go to SE24, display the class. Click on the icon for display object list. On the right side of the screen you'll get a window with a tree in it, showing the components of the class. Methods are divided into a number of sections. One of these is "Redefined methods".

matt

Read only

Sm1tje
Active Contributor
0 Likes
2,615

Matt,

this is definitely the more elegant solution.

Read only

matt
Active Contributor
0 Likes
2,615

I discovered it by accident. It works for SE38 as well, which is really useful if you've local classes. Gives more room for the tree than SE80!

matt

Read only

MarcinPciak
Active Contributor
0 Likes
2,616

Additionally to what Guys suggested, you can also see all methods grouped accordinig to class membership.

In SE24 -> display class -> select Filter icon -> choose Group by interfaces and superclasses .

This is nice way to distinguish where the method really comes from.

Regards

Marcin

Read only

Former Member
0 Likes
2,615

thanks all of you helping me for the same.

its working now.

mahesh

Read only

Former Member
0 Likes
2,615

thanks all