Show TOC

Deleting GP Development ObjectsLocate this document in the navigation structure

Use

You can delete Guided Procedures (GP) development objects from the database when you no longer need them.

Prerequisites
  • You have instantiated the design time update manager.

    For more information, see Instantiating the Design Time Manager .

  • You can only delete objects if they are persisted, that is, saved to the database. If you have not saved and released the objects, any attempt to delete will result in an error.
Procedure
  1. Retrieve the object that you need to delete:
    • If you want to delete a newly-created object, make sure it is saved and released:

Saving and Releasing a Callable Object
importcom.sap.caf.eu.gp.co.api.IGPCallableObject;
importcom.sap.caf.eu.gp.process.dt.api.IGPDesigntimeUpdateManager;
importcom.sap.caf.eu.gp.exception.api.GPBaseException;
 
IGPCallableObjectco = null;
try{
   // create a callable object and make some changes
   ...     
   // save it
   manager.save(co);        
}catch (GPBaseException e) {
// handle error
}
finally{
   if (co != null) manager.release(co);

}

  1. Delete the object:

Deleting a Callable Object
importcom.sap.caf.eu.gp.co.api.IGPCallableObject;
importcom.sap.caf.eu.gp.process.dt.api.IGPDesigntimeUpdateManager;
 
// release to remove modification lock
manager.release(co);
// delete it
manager.delete(co);