SAP Function RPY_CLIF_DELETE - Delete a class or interface with components and relationships

Parameter Reference Type Length Default Optional Text
CICO_REQUEST_NO RPYGSGF-CICO_REQNO C 20
CLASS_INTERFACE_ID RPYCLOK u 30

Parameter Reference Length Optional Text
ERROR_SET RPYGSER 268

Functionality
This function module deletes an object type and all of its components(attributes, methods, events) and relationships. It performs a check inin DELETE mode.
The following conditions must be fulfilled for the check in to besuccessful:
There must be a valid correction or repair request. If necessary, youcan generate one using the function moduleRPY_CICO_REQUEST_OPEN.
The object that you want to modify must already exist and have beenentered in the correction/repair request, that is, the object type musthave been checked out (seeRPY_CLIF_MULTI_READ_LOCK).
The object type that you want to delete must exist.
If these conditions are not met, or another error occurs duringdeletion, the check in does not take place and the object type is notdeleted. The relevant error messages are placed in the error tableERROR_SET.
In the import parameter CICO_REQUEST_NO, enter the number of thecorrection or repair request.
In the import parameter CLASS_INTERFACE_ID, enter the name of theobject type that you want to delete.
The function module does not trigger any exceptions. Any problem orerror messages are returned in the error parameterERROR_SET. If the deletion was successful, the errortable is entry.
Caution: The function module does not take into account possibleeffects of the deletion on subclasses or classes or programs that usethe object type. When you call the function module, you are responsiblefor ensuring that you do not leave the object type in an inconsistentstate.
The implementation part of the class is also deleted.

Example
The following call deletes an existing object type:
* Data declaration
DATA: REQNO LIKE RPYGSGF-CICO_REQNO.
DATA: CLIF_ID LIKE RPYCLOK.
* Fill request number
REQNO = ...
* Fill object type ID
CLIF_ID = ...
* Call function module
CALL FUNCTION 'RPY_CLIF_DELETE'
EXPORTING
CICO_REQUEST_NO = REQNO
CLASS_INTERFACE_ID = CLIF_ID
TABLES
ERROR_SET = ERRORS
EXCEPTIONS
OTHERS = 0.
* Error handling
LOOP AT ERRORS.
...
END

Further information
Other function modules in the Class Library API:
RPY_CLIF_MULTI_READ
RPY_CLIF_MULTI_READ_LOCK
RPY_CLIF_MULTI_INSERT
RPY_CLIF_COMP_MULTI_INSERT
RPY_CLIF_REL_MULTI_INSERT
RPY_CLIF_COMP_UPDATE
RPY_CLIF_INFO_UPDATE
RPY_CLIF_COMP_DELETE
RPY_CLIF_REL_DELETE