WDCA: Clear parameter descriptions (#4851)

Fixes diffs because of parameters that are different between releases (or even SPs) or languages
This commit is contained in:
Marc Bernard 2021-06-22 16:47:45 +02:00 committed by GitHub
parent b1cc6a2912
commit 3defa2c165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,10 @@ CLASS ZCL_ABAPGIT_OBJECT_WDCA IMPLEMENTATION.
lx_err TYPE REF TO cx_wd_configuration,
lv_name TYPE wdy_md_object_name.
FIELD-SYMBOLS:
<ls_data> LIKE LINE OF et_data,
<ls_appl_params> LIKE LINE OF <ls_data>-appl_params.
CLEAR: es_outline, et_data.
ls_key = ms_item-obj_name.
@ -155,6 +159,13 @@ CLASS ZCL_ABAPGIT_OBJECT_WDCA IMPLEMENTATION.
et_data = lo_cfg->read_data( ).
" Clear descriptions since they are release and language-specific
LOOP AT et_data ASSIGNING <ls_data>.
LOOP AT <ls_data>-appl_params ASSIGNING <ls_appl_params>.
CLEAR <ls_appl_params>-description.
ENDLOOP.
ENDLOOP.
CATCH cx_wd_configuration INTO lx_err.
zcx_abapgit_exception=>raise( 'WDCA, read error:' && lx_err->get_text( ) ).
ENDTRY.