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

Check if method redefined during RT

Former Member
0 Likes
973

Hello,

There is a way to know by code if some method of class was redefined.

Thanks,

Joy

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
810

Hello Joy,

You can use the FM SEO_METHOD_GET_DETAIL to check if the method is inherited.

BR,

Suhas

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
810

Please be more clear.

Read only

0 Likes
810

Hello Keshav ,

I have program that generate class / methods and I want before I am doing regenerate to check if method was

Redefined ,how can I do that ?

Thanks,

Joy

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
811

Hello Joy,

You can use the FM SEO_METHOD_GET_DETAIL to check if the method is inherited.

BR,

Suhas

Read only

Former Member
0 Likes
810

You can also try with class "CL_OO_CLASS_COMPONENTS_FLAT". Refer to the attribute CL_OO_CLASS_COMPONENTS_FLAT->METHODS to get the list of methods along with its properties.

Regards, Vinod

PS : Parameter to CONSTRUCTOR is class name, so extracting properties only for a specific method is not possible.

Edited by: Vinod Kumar on Feb 24, 2012 5:12 PM