Show TOC Start of Content Area

Procedure documentation Deleting GP Development Objects  Locate the document in its SAP Library 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:

Example

Saving and Releasing a Callable Object

import com.sap.caf.eu.gp.co.api.IGPCallableObject;

import com.sap.caf.eu.gp.process.dt.api.IGPDesigntimeUpdateManager;

import com.sap.caf.eu.gp.exception.api.GPBaseException;

 

IGPCallableObject co = 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);

}

     If you need to access an already created object from the database, refer to Editing GP Development Objects.

 

       2.      Delete the object:

Example

Deleting a Callable Object

import com.sap.caf.eu.gp.co.api.IGPCallableObject;

import com.sap.caf.eu.gp.process.dt.api.IGPDesigntimeUpdateManager;

 

// release to remove modification lock

manager.release(co);

// delete it

manager.delete(co);

 

 

End of Content Area