DOMA: Deletion of domains with append (#5445)

* DOMA: Deletion of domains with append

On newer releases, suppressing the confirmation popup does not work since the parameter has changed.

Added a call using the new parameter.

* No if

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2022-04-05 18:00:27 +02:00 committed by GitHub
parent 7e7104e050
commit 8d8d537fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,23 @@ CLASS zcl_abapgit_objects_super IMPLEMENTATION.
dialog_needed = 5 dialog_needed = 5
OTHERS = 6. OTHERS = 6.
CATCH cx_sy_dyn_call_param_not_found. CATCH cx_sy_dyn_call_param_not_found.
" no_ask_delete_append not available in lower releases TRY.
" try to force deletion for APPENDs
CALL FUNCTION 'RS_DD_DELETE_OBJ'
EXPORTING
no_ask = iv_no_ask
objname = lv_objname
objtype = lv_objtype
aie_force_deletion = iv_no_ask_delete_append
EXCEPTIONS
not_executed = 1
object_not_found = 2
object_not_specified = 3
permission_failure = 4
dialog_needed = 5
OTHERS = 6.
CATCH cx_sy_dyn_call_param_not_found.
" no_ask_delete_append and aie_force_deletion not available in lower releases
CALL FUNCTION 'RS_DD_DELETE_OBJ' CALL FUNCTION 'RS_DD_DELETE_OBJ'
EXPORTING EXPORTING
no_ask = iv_no_ask no_ask = iv_no_ask
@ -176,6 +192,7 @@ CLASS zcl_abapgit_objects_super IMPLEMENTATION.
dialog_needed = 5 dialog_needed = 5
OTHERS = 6. OTHERS = 6.
ENDTRY. ENDTRY.
ENDTRY.
IF sy-subrc = 5. IF sy-subrc = 5.
zcx_abapgit_exception=>raise( |Object { ms_item-obj_type } { ms_item-obj_name zcx_abapgit_exception=>raise( |Object { ms_item-obj_type } { ms_item-obj_name