SAP Function RPY_ENTITY_DELETE - Insert Entity Type

Parameter Reference Type Length Default Optional Text
CICO_REQUEST_NO RPYDMGF-CICOREQUNO C 20
ENTITY_ID RPYDMEN-ENTITY_ID C 26

Parameter Reference Length Optional Text
ERRORS RPYGSER 268 Error Information

Functionality
The function module deletes the entity.
CALL FUNCTION 'RPY_ENTITY_DELETE'
EXPORTING
ENTITY_NAME = 'WEC1000000'
TRANSPORT_NUMBER = 'B20K000111'
EXCEPTIONS
NOT_FOUND = 01
CANCELLED = 02
PERMISSION_ERROR = 03
IS_USED = 04.
if sy-subrc ne 0.
...
endif.

Notes
If an entity is still in use, deletion is not possible. Please firstdelete all references to the entity.