Application Development 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: 

Where Used list for Classes and Methods.

former_member185171
Participant
0 Kudos
2,644

Hello,

we want to publish the documentation of programs, classes, ... etc. on out website. some of the information we want to publish is the where-used info of the different objects. I know how to get it in SE80 or SE24, that is not the problem

Can anyone tell mee whether there exists a function module or method to get the where-used list for the methods of a class? For function modules we use 'AKB_WHERE_USED_LIST', but I have no idea what input I should use for methods nor if it can be used for it.

Thanks for helping.

Kris

1 ACCEPTED SOLUTION

former_member214857
Contributor
0 Kudos
889

Hi Kris

You can try function RS_INFOSYSTEM_CREATE_REQUEST with parameters

OBJTYPE OO

ACTION WHEREUSED

SUPPRESS_SELECTION X

VARIANT

SHOW_AS_POPUP

APPLICATION_HIERARCHY

FIRST

EXTERN

WITH_GENERATED_OBJECTS

FULL_NAME

Then use OBJLIST to inform class and method

Best regards

4 REPLIES 4

GauthamV
Active Contributor
0 Kudos
889

You just need to pass object type and object name as import parameters.

For example if you want where used list for a class ZSALES_DATA

Give details as below

OBJ_TYPE CLAS

OBJ_NAME ZSALES_DATA

The export parameter references will have all objects where this class is used.

0 Kudos
889

I got this one already, it is the where-used for a class.

But how do i get this info for a specific method?

former_member214857
Contributor
0 Kudos
890

Hi Kris

You can try function RS_INFOSYSTEM_CREATE_REQUEST with parameters

OBJTYPE OO

ACTION WHEREUSED

SUPPRESS_SELECTION X

VARIANT

SHOW_AS_POPUP

APPLICATION_HIERARCHY

FIRST

EXTERN

WITH_GENERATED_OBJECTS

FULL_NAME

Then use OBJLIST to inform class and method

Best regards

0 Kudos
889

Thanks for the hint, but it is not perfectly clear how this works exactly.

I did some tests with 'RS_EU_CROSSREF' but this one returns the includes where the class or function is used.

Can I somehow translate this include into a programname or into the name of a functionmodule?