FUGR: Clear TEXT when referring to dictionary (#4973)

In dynpro screen, when a field is referring to a data element and text is taken from dictionary, no need to serialize the text as it is always taken from dictionary. If the text is included then it will show unnecessary diffs when data element text changes.

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
yellappam 2021-10-01 19:12:18 +13:00 committed by GitHub
parent cfb185b87c
commit 34b2fb3222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -831,6 +831,11 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
CLEAR <ls_field>-foreignkey. CLEAR <ls_field>-foreignkey.
ENDIF. ENDIF.
ENDIF. ENDIF.
IF <ls_field>-from_dict = abap_true AND
<ls_field>-modific <> 'F'.
CLEAR <ls_field>-text.
ENDIF.
ENDLOOP. ENDLOOP.
LOOP AT lt_containers ASSIGNING <ls_container>. LOOP AT lt_containers ASSIGNING <ls_container>.