Ansicht
Dokumentation
RPY_CLIF_REL_DELETE - Delete a relationship from a class/interface
CPI1466 during Backup General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This function module deletes a relationship from an object type.
It modifies an existing object type, that is, it is a check in in MODIFY mode.
The following criteria must be fulfilled in order for the check to be successful:
- There must be a valid correction or repair request. If necessary, you can generate one using the function module RPY_CICO_REQUEST_OPEN.
- The object type that you want to modify must already exist and have been entered in the correction/repair request, that is, it must have been checked out (see RPY_CLIF_MULTI_READ_LOCK ).
- The relationship that you want to delete must exist.
If these conditions are not met, or another error occurs during deletion, the check in does not take place and the relationship is not deleted. The relevant error messages are placed in the error table ERROR_SET.
In the import parameter CICO_REQUEST_NO, enter the number of the correction or repair request.
In the import parameter CLASS_INTERFACE_ID, enter the name of the object type whose relationship you want to delete.
Pass the relationship that you want to delete to the function module in one of the parameters META_RELATION, INSTANCE_RELATION, or FRIENDS_RELATION. You can only delete one relationship each time you call the function module, and only one of these import parameters may be filled in each call.
The function module does not trigger any exceptions. Problem and error messages are passed back to the user in the table parameter ERROR_SET. If the deletion is successful, the error table is empty.
Caution: The function module does not currently take into account the effect of the deletion on subclasses or programs or classes that use the object type. When you use the function module, you are responsible for ensuring that inconsistencies do not arise.
Example
The following call deletes a metarelationship of an existing object type:
* 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
Notes
Further information
Other function modules in the Class Library API:
Parameters
CICO_REQUEST_NOCLASS_INTERFACE_ID
ERROR_SET
FRIENDS_RELATION
INSTANCE_RELATION
META_RELATION
Exceptions
Function Group
SICLROGBILLS - Synchronize billing plans rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 5075 Date: 20240523 Time: 121854 sap01-206 ( 48 ms )