Skip to end of metadata
Go to start of metadata

To activate objects programmatically

The below code can be used to activate any object programmatically.

PARAMETERS p_object type e071-obj_name.

    OBJECT_NAME        = p_object
   OBJECT_TYPE        = 'REPS'
   NOT_EXECUTED       = 1
   OTHERS             = 2

  Message 'Objects ACtivated' Type 'I'.

The value 'REPS' is passed for the field  'OBJECT_TYPE'  in the function module which would accept only Report names as inputs. Hence this sample code can be used to activate only other report programs. By changing that value other types of objects can also be activated.