Skip to content

Commit 3f014a9

Browse files
abapsheepViktor Hoffmann
andauthored
Update (#2)
Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
1 parent ae136a6 commit 3f014a9

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/z2ui5_cl_pop_display_layout.clas.abap

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,15 @@ CLASS z2ui5_cl_pop_display_layout IMPLEMENTATION.
611611
ENDIF.
612612

613613
DATA(Head) = VALUE z2ui5_layo_t_01( guid = ms_layout-s_head-guid
614-
layout = mv_layout
615-
control = ms_layout-s_head-control
616-
handle01 = ms_layout-s_head-handle01
617-
handle02 = ms_layout-s_head-handle02
618-
handle03 = ms_layout-s_head-handle03
619-
handle04 = ms_layout-s_head-handle04
620-
descr = mv_descr
621-
def = mv_def
622-
uname = user ).
614+
layout = mv_layout
615+
control = ms_layout-s_head-control
616+
handle01 = ms_layout-s_head-handle01
617+
handle02 = ms_layout-s_head-handle02
618+
handle03 = ms_layout-s_head-handle03
619+
handle04 = ms_layout-s_head-handle04
620+
descr = mv_descr
621+
def = mv_def
622+
uname = user ).
623623

624624
LOOP AT ms_layout-t_layout INTO DATA(layout).
625625

@@ -882,6 +882,12 @@ CLASS z2ui5_cl_pop_display_layout IMPLEMENTATION.
882882
" create the tab first if the db fields were added/deleted
883883
DATA(t_comp) = z2ui5_cl_util=>rtti_get_t_attri_by_any( data ).
884884

885+
LOOP AT t_comp INTO DATA(comp).
886+
IF comp-type->type_kind = cl_abap_elemdescr=>typekind_oref.
887+
DELETE t_comp.
888+
ENDIF.
889+
ENDLOOP.
890+
885891
LOOP AT t_comp REFERENCE INTO DATA(lr_comp).
886892

887893
INSERT VALUE #( control = control

0 commit comments

Comments
 (0)