SOTS: Uninstall with usage reference (#4687)

* SOTS: Uninstall with usage reference

Remove usage references of `SOTS` texts during uninstall

* Add comment

Co-authored-by: Lars Hvam <larshp@hotmail.com>

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2021-04-08 10:33:13 +02:00 committed by GitHub
parent cea83ffb86
commit 607ac4f3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,8 @@ CLASS zcl_abapgit_object_sots IMPLEMENTATION.
lt_sots = read_sots( ).
LOOP AT lt_sots ASSIGNING <ls_sots>.
" Remove any usage to ensure deletion, see function module BTFR_CHECK
DELETE FROM sotr_useu WHERE concept = <ls_sots>-header-concept.
CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT'
EXPORTING