SAP Function RPY_CLIF_REL_DELETE - Delete a relationship from a class/interface

Parameter Reference Type Length Default Optional Text
CICO_REQUEST_NO RPYGSGF-CICO_REQNO C 20
CLASS_INTERFACE_ID RPYCLOK u 30
FRIENDS_RELATION RPYCLFR u 102 X
INSTANCE_RELATION RPYCLIR u 92 X
META_RELATION RPYCLMR u 134 X

Parameter Reference Length Optional Text
ERROR_SET RPYGSER 268

Functionality
This function module deletes a relationship from an object type.
It modifies an existing object type, that is, it is a check in inMODIFY mode.
The following criteria must be fulfilled in order for the check 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 type that you want to modify must already exist and havebeen entered in the correction/repair request, that is, it must havebeen checked out (seeRPY_CLIF_MULTI_READ_LOCK ).
The relationship 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 relationship 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 whose relationship you want to delete.
Pass the relationship that you want to delete to the function module inone of the parameters META_RELATION, INSTANCE_RELATION, orFRIENDS_RELATION. You can only delete one relationship each time youcall the function module, and only one of these import parameters maybe filled in each call.
The function module does not trigger any exceptions. Problem and errormessages are passed back to the user in the table parameterERROR_SET. If the deletion is successful, the errortable is empty.
Caution: The function module does not currently take into account theeffect of the deletion on subclasses or programs or classes that usethe object type. When you use the function module, you are responsiblefor ensuring that inconsistencies do not arise.

Example
The following call deletes a metarelationship of an existing objecttype:
* Data declaration
DATA: REQNO LIKE RPYGSGF-CICO_REQNO.
DATA: CLIF_ID LIKE RPYCLOK.
DATA: META_RELATION LIKE RPYCLMR.
* Fill request number
REQNO = ...
* Fill class ID
CLIF_ID = ...
* Fill object metarelationship
META_RELATION-CLSNAME = ...
META_RELATION-REFCLSNAME = ...
... (etc.)
* Call function module
CALL FUNCTION 'RPY_CLIF_REL_DELETE'
EXPORTING
CICO_REQUEST_NO = REQNO
CLASS_INTERFACE_ID = CLIF_ID
META_RELATION = META_RELATION
TABLES
ERROR_SET = ERRORS
EXCEPTIONS
OTHERS = 0.
* Error handling
LOOP AT ERRORS.
...
ENDL
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_DELETE