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: 

Function Module or Program to get where used list

alejandro_lpez
Contributor
0 Kudos
9,527

Hi,

I´ve been searching for Function Module or program to get where used list for an object.

I try using the FM 'RS_TOOL_ACCESS' with parameters operation = 'CROSSREF', objectname = 'ZMYPROG', object_type = 'PROG'

and in effect i get the list of object where the program is used, but the list is showed in standard screen.

is there a function or program to obtain the used list for an object but in an internal table?

I'm using version 4.6B.

I checked the function module RS_INFOSYSTEM_CREATE_REQUEST, but i didn't obtain any result, is there a funcion or combination or FM to get the used list?

thanks,

Alejandro

Message was edited by: Alejandro López

1 ACCEPTED SOLUTION

Former Member
0 Kudos
3,155

Hi,

'RS_EU_CROSSREF' may help. For example to get the where used list of an iclude:

call function 'RS_EU_CROSSREF'
  exporting
    i_find_obj_cls                     = 'INCL'
   I_SCOPE_OBJ_CLS                     = 'P'
 TABLES
   I_FINDSTRINGS                      =   IT_FIND
   O_FOUNDS                           =   IT_ANSWER
 EXCEPTIONS
   NOT_EXECUTED                       = 1
   NOT_FOUND                          = 2
  ILLEGAL_OBJECT                      = 3
  NO_CROSS_FOR_THIS_OBJECT            = 4
   BATCH                              = 5
  BATCHJOB_ERROR                      = 6
  WRONG_TYPE                          = 7
   OBJECT_NOT_EXIST                   = 8
   OTHERS                             = 9
          .

Regards,

Kalpana

8 REPLIES 8

Former Member
0 Kudos
3,155

HI,

Check this Function Modules

1) RS_WHERE_USED_LIST_NEW_CHECK

2) CDESK_DISPLAY_WHEREUSED_LIST

3) AKB_WHERE_USED_LIST

Thanks

Sudheer

ferry_lianto
Active Contributor
0 Kudos
3,155

Hi Alejandro,

Have you looked FM <b>RS_INFOSYSTEM_CREATE_REQUEST</b>?

Regards,

Ferry Lianto

alejandro_lpez
Contributor
3,155

Hi Ferry,

Please you can show me an example of FM RS_INFOSYSTEM_CREATE_REQUEST.

thanks,

Alejandro.

Former Member
0 Kudos
3,155

Hi,

Check this Programs

<b>RMCLKLVW</b> Where-Used List for Classes

<b>RMCLLIST</b> Where-Used List for Classes

<b>SAPMC29L</b> Single-Level Where-Used List

<b>RCUKDVWG</b> Dependency Where-Used List

Thanks

Sudheer

ferry_lianto
Active Contributor
0 Kudos
3,155

Hi Alejandro,

Please check this sample program.

DATA: OBJTYPE TYPE  EUOBJ-ID.
DATA: OBJECTS TYPE RINFOOBJ.
                   
APPEND P_OBJECT_NAME TO OBJECTS.
OBJTYPE = P_OBJECT_TYPE.
                           
CALL FUNCTION 'RS_INFOSYSTEM_CREATE_REQUEST'
  EXPORTING
    OBJTYPE            = OBJTYPE
    ACTION             = SWBM_C_OP_WHERE_USED_LIST
  IMPORTING
    INFOSYSTEM_REQUEST = P_WB_REQUEST
  TABLES
    OBJLIST            = OBJECTS
    DEVCLASS           = p_scope_devclass
    OBJKEY             = p_scope_objkey
    I_SCOPE_OBJECT_CLS = P_SCOPE_OBJECT_TYPES
    I_SCOPE_OBJECTS    = P_SCOPE_OBJECTS
    EDITOR_SOURCE      = P_EDITOR_SOURCE
  EXCEPTIONS
    NOT_EXECUTED       = 1
    BATCH              = 2
    OTHERS             = 3.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Former Member
0 Kudos
3,156

Hi,

'RS_EU_CROSSREF' may help. For example to get the where used list of an iclude:

call function 'RS_EU_CROSSREF'
  exporting
    i_find_obj_cls                     = 'INCL'
   I_SCOPE_OBJ_CLS                     = 'P'
 TABLES
   I_FINDSTRINGS                      =   IT_FIND
   O_FOUNDS                           =   IT_ANSWER
 EXCEPTIONS
   NOT_EXECUTED                       = 1
   NOT_FOUND                          = 2
  ILLEGAL_OBJECT                      = 3
  NO_CROSS_FOR_THIS_OBJECT            = 4
   BATCH                              = 5
  BATCHJOB_ERROR                      = 6
  WRONG_TYPE                          = 7
   OBJECT_NOT_EXIST                   = 8
   OTHERS                             = 9
          .

Regards,

Kalpana

0 Kudos
2,524

Why entered an incomplete example?

0 Kudos
2,524

When I executed the FM asked it for an INCLUDE

ccontreras_sap_0-1717689027735.png