Google Search - Blog...........

ABAP - Report Program To Activate Objects Using Function Module REPS_OBJECT_ACTIVATE.

Hi here is the good example to activate the objects (reports ) using the function module REPS_OBJECT_ACTIVATE





report zactivate.



parameters: p_object type E071-OBJ_NAME .



CALL FUNCTION 'REPS_OBJECT_ACTIVATE'

EXPORTING

object_name = p_object “ report name

OBJECT_TYPE = 'REPS' “ object type ---REPS for the report

EXCEPTIONS

NOT_EXECUTED = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.



Using this we can activate more number of reports at a time .

No comments:

Post a Comment