2012 Jan 30 9:46 AM
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
2012 Jan 31 11:19 AM
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
2012 Jan 30 9:56 AM
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.
2012 Jan 31 10:53 AM
I got this one already, it is the where-used for a class.
But how do i get this info for a specific method?
2012 Jan 31 11:19 AM
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
2012 Jan 31 3:03 PM
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?