ENHC: Fix diffs due to OTR (#5538)

`cl_enh_composite` already handles OTR shorttext and there's no need to use `zcl_abapgit_sotr_handler`.

Update test case:
https://github.com/abapGit-tests/ENHC

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2022-05-07 10:04:14 +02:00 committed by GitHub
parent 882a64cb68
commit a96fed4b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,10 +136,6 @@ CLASS zcl_abapgit_object_enhc IMPLEMENTATION.
li_enh_composite->if_enh_object~activate( ).
li_enh_composite->if_enh_object~unlock( ).
zcl_abapgit_sotr_handler=>create_sotr(
iv_package = iv_package
io_xml = io_xml ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.
@ -229,12 +225,6 @@ CLASS zcl_abapgit_object_enhc IMPLEMENTATION.
io_xml->add( iv_name = 'LONGTEXT_ID'
ig_data = lv_longtext_id ).
zcl_abapgit_sotr_handler=>read_sotr(
iv_pgmid = 'R3TR'
iv_object = ms_item-obj_type
iv_obj_name = ms_item-obj_name
io_xml = io_xml ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.