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: 

FM to list all the inactive objects of all the users

former_member205144
Active Participant
0 Kudos
1,050

Hi,

  I am using RS_INACTIVE_OBJECTS_LIST function module to list all the inactive objects.But,it is specific for one particular user.How can i list the inactive objects of all the users?

1 ACCEPTED SOLUTION

koolspy_ultimate
Active Contributor
0 Kudos
364

Hi,

Please check the below code.

report zreport.

data: name type xubname.

data: begin of itab occurs 0,

         name type xubname,

        end of itab.

select-options: uname for sy-uname.

initialization.

start-of-selection.

  select bname into name from usr01 where bname in uname.

    itab-name = name.

    append itab.

    clear: name, itab.

  endselect.

  loop at itab.

    call function 'RS_INACTIVE_OBJECTS_LIST'

      exporting

        uname                   = itab-name

        suppress_tree_construct = ' '

        transport_request       = ' '

        list_as_popup           = ' '

        all_objects             = ' '

        object_name             = ' '

        object                  = ' '

      exceptions

        error_in_request        = 1

        others                  = 2.

    if sy-subrc <> 0.

    endif.

  endloop.

17 REPLIES 17

Former Member
0 Kudos
364

ALL users mean

Ur team members?

0 Kudos
364

I mean all the users in that client.

0 Kudos
364

Former Member
0 Kudos
364

Hi Lavanya,

After you execute the function module RS_INACTIVE_OBJECTS_LIST, you get a button on the menu "All Inactive objects" (CTRL+F1). Try that

Regards

Rajvansh

Former Member
0 Kudos
364

When you run the Function module, there is a button All Inactive objects.

If you click on that you can see all the inactive objects for all users.

Wont that help?

koolspy_ultimate
Active Contributor
0 Kudos
365

Hi,

Please check the below code.

report zreport.

data: name type xubname.

data: begin of itab occurs 0,

         name type xubname,

        end of itab.

select-options: uname for sy-uname.

initialization.

start-of-selection.

  select bname into name from usr01 where bname in uname.

    itab-name = name.

    append itab.

    clear: name, itab.

  endselect.

  loop at itab.

    call function 'RS_INACTIVE_OBJECTS_LIST'

      exporting

        uname                   = itab-name

        suppress_tree_construct = ' '

        transport_request       = ' '

        list_as_popup           = ' '

        all_objects             = ' '

        object_name             = ' '

        object                  = ' '

      exceptions

        error_in_request        = 1

        others                  = 2.

    if sy-subrc <> 0.

    endif.

  endloop.

0 Kudos
364

This is exactly what came to my mind first...but this will not show the entire objects in a single list....the above posts were right,we get the entire list when we click on the All Objects button.Otherwise not possible.

0 Kudos
364

If you leave the UNAME blank in the FM then it will directly show all the Inactive objects, you will not need to click on the button.

0 Kudos
364

If I leave uname blank,it is showing me no output..

0 Kudos
364

Also  mark all_objects as X.

0 Kudos
364

This message was moderated.

0 Kudos
364

This message was moderated.

0 Kudos
364

But,how can i know which one is selected?

0 Kudos
364

Hi,

The FM just gets the entries from table DWINACTIV.

just check this table.

Probably you can write your own report with this.

And what did you mean by Delete? You want to delete the object or delete the name of program from list?

0 Kudos
364

delete the object only.

0 Kudos
364

Hi,

You can write your own report.

Select the entries form DWINACTIV table and display as output.

Give a hotspot for the display, so that the user can click on that and do your custom action method there.

Thanks,

Shambu

0 Kudos
364

So, I think I should rather use RS_GET_INACTIVE_OBJECTS.