SAP Function RPY_CLIF_COMP_DELETE - Delete a component of a class or interface

Parameter Reference Type Length Default Optional Text
ATTRIBUTE RPYCLAT u 504 X Input: An attribute
CICO_REQUEST_NO RPYGSGF-CICO_REQNO C 20 Transport request number
CLASS_INTERFACE_ID RPYCLOK u 30 Class or interface name
EVENT RPYCLEV u 236 X Input: An event
METHOD RPYCLME u 236 X Input: A method

Parameter Reference Length Optional Text
ERROR_SET RPYGSER 268 Output: Error messages

Functionality
This function module deletes a component of an object type.
It applies to modifications of an existing object type, that is,checking in in MODIFY mode.
The following conditions must be met in order for the check in to becarried out:
There must be a valid correction or repair request. If necessary, youcan generate one using the function moduleRPY_CICO_REQUEST_OPEN.
The object type that you want to modify must already exist and havebeen entered in the correction/repair request (that is, the object typemust have been checked out - seeRPY_CLIF_MULTI_READ_LOCK).
The component that you want to delete must exist.
If these conditions are not met, or another error occurs duringdeletion, the check in is not performed and the components is notdeleted. The corresponding error messages are placed in the error tableERROR_SET.
Enter the name of the correction or repair request in the importparameter CICO_REQUEST_NO.
In the import parameter CLASS_INTERFACE_ID, enter the name of theobject type whose component you want to delete.
You pass the name of the component itself to the function module in oneof the import parameters ATTRIBUTE, METHOD, or EVENT. You can onlydelete one component each time you call the function module, and one ofthese parameters must always be filled.
The function module does not trigger any exceptions. Problem or errormessages are returned using the table parameterERROR_SET. If the component has been deletedsuccessfully, the error table is empty.
Caution: Possible effects of deletion on subclasses or classes andprograms that use the class from which you have deleted the componentare not taken into account. When using this function module, you areresponsible yourself for ensuring that the new state of the class isconsistent.

Example
The following call deletes a method of an existing object type:
* Data declaration
DATA: REQNO LIKE RPYGSGF-CICO_REQNO.
DATA: CLIF_ID LIKE RPYCLOK.
DATA: METHOD LIKE RPYCLME.
* Fill request number
REQNO = ...
* Fill object type ID
CLIF_ID = ...
* Fill method of object type
METHOD = ...
* Call function module
CALL FUNCTION 'RPY_CLIF_COMP_DELETE'
EXPORTING
CICO_REQUEST_NO = REQNO
CLASS_INTERFACE_ID = CLIF_ID
METHOD = METHOD
TABLES
ERROR_SET = ERRORS
EXCEPTIONS
OTHERS = 0.
* Error handling
LOOP AT ERRORS.
...
ENDLOOP.
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_INFO_UPDATE
RPY_CLIF_REL_UPDATE
RPY_CLIF_COMP_UPDATE
RPY_CLIF_REL_DELETE
RPY_CLIF_DELETE