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

Function module which can activate all the inactive objects in a list

Former Member
0 Likes
3,331

Hi,

I'm looking for a function module which can activate all the inactive objects (all object types in SAP). Please let me know if there is any such function module other than RS_INACTIVE_OBJECTS_LIST, REPS_OBJECT_ACTIVATE or RS_WORKING_OBJECTS_ACTIVATE.

RS_INACTIVE_OBJECTS_LIST gives the list and activates the objects but the user interaction is needed to activate them manually one by one. I want a function module which can activate all the objects in a list (say internal table) without any user interaction.

Thanks..

6 REPLIES 6
Read only

Former Member
0 Likes
1,575

Hi Shashi,

There is a function module "RH_GET_ACTIVE_WF_PLVAR" which will return the active HR Plan.

Thanks and regards,

Dhaya.G

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,575

Its already available in the fm you listed


CALL FUNCTION 'RS_WORKING_OBJECTS_ACTIVATE'
         TABLES     OBJECTS                = activate_tab  "<--to be activated
         EXCEPTIONS EXCECUTION_ERROR       = 1
                    CANCELLED              = 2
                    INSERT_INTO_CORR_ERROR = 3
                    OTHERS                 = 4.

Read only

0 Likes
1,575

Hi Keshav,

The function module 'RS_WORKING_OBJECTS_ACTIVATE' does not activate other users objects. It will activate only the objects on your name (uname). I'm looking for one which can activate other users objects also.

Thanks..

Read only

Kartik2
Contributor
0 Likes
1,575

Dear Mr. Sashi,

The function Module 'RS_WORKING_OBJECTS_ACTIVATE' works fine, it gives pop up, when there are syntax errors in the program, if you do not want syntax check then you can specify the importing parameter suppress_syntax_check. The following code wokrs fine to activate all the objects specfied without doing syntax check.

CALL FUNCTION 'RS_WORKING_OBJECTS_ACTIVATE'
  EXPORTING
    suppress_syntax_check  = c_x
  IMPORTING
    p_checklist            = lr_checklist
  TABLES
    OBJECTS                = lt_objects
  EXCEPTIONS
    excecution_error       = 1
    cancelled              = 2
    insert_into_corr_error = 3
    OTHERS                 = 4.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Hope it is helpful and solves your problem. Thank you.

Regards,

kartik

Read only

Former Member
0 Likes
1,575

Hi Kartik,

It doesn't activate all the object types. For example say object type XSLT ( transformations created thru strans tcode).

Give this object type and object name in the objects table parameter with the XSLT object in inactive mode.

It doesn't make the object active.

Wishes,

Shashi

Read only

marcin_cholewczuk
Active Contributor
0 Likes
1,575

Hi,

You can check how it's done in SGEN transaction.

BR

Marcin Cholewczuk