‎2012 Feb 23 8:05 AM
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..
‎2012 Feb 23 8:37 AM
Hi Shashi,
There is a function module "RH_GET_ACTIVE_WF_PLVAR" which will return the active HR Plan.
Thanks and regards,
Dhaya.G
‎2012 Feb 23 8:41 AM
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.
‎2012 Feb 23 9:06 AM
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..
‎2012 Feb 23 9:06 AM
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
‎2012 Feb 23 1:40 PM
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
‎2012 Feb 23 12:47 PM
Hi,
You can check how it's done in SGEN transaction.
BR
Marcin Cholewczuk