Ansicht
Dokumentation
RPY_CLIF_DELETE - Delete a class or interface with components and relationships
BAL Application Log Documentation Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
This function module deletes an object type and all of its components (attributes, methods, events) and relationships. It performs a check in in DELETE mode.
The following conditions must be fulfilled for the check in 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 that you want to modify must already exist and have been entered in the correction/repair request, that is, the object type must have been checked out (see RPY_CLIF_MULTI_READ_LOCK).
- The object type 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 object type 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 that you want to delete.
The function module does not trigger any exceptions. Any problem or error messages are returned in the error parameter ERROR_SET. If the deletion was successful, the error table is entry.
Caution: The function module does not take into account possible effects of the deletion on subclasses or classes or programs that use the object type. When you call the function module, you are responsible for ensuring that you do not leave the object type in an inconsistent state.
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
Notes
Further information
Other function modules in the Class Library API:
Parameters
CICO_REQUEST_NOCLASS_INTERFACE_ID
ERROR_SET
Exceptions
Function Group
SICLRFUMSV00 - Advance Return for Tax on Sales/Purchases General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 4507 Date: 20240523 Time: 131407 sap01-206 ( 49 ms )