@@ -33,12 +33,12 @@ CLASS z2ui5_cl_layo_manager DEFINITION
3333 TYPES ty_t_sub_columns TYPE STANDARD TABLE OF ty_s_sub_columns WITH EMPTY KEY .
3434
3535 TYPES BEGIN OF ty_s_positions.
36- INCLUDE TYPE z2ui5_t_12.
37- TYPES : tlabel TYPE string ,
38- t_sub_col TYPE ty_t_sub_columns,
39- show_no_zeros TYPE abap_bool ,
40- grid_layout TYPE string ,
41- grid_layout_label TYPE string ,
36+ INCLUDE TYPE z2ui5_t_12.
37+ TYPES : tlabel TYPE string ,
38+ t_sub_col TYPE ty_t_sub_columns,
39+ show_no_zeros TYPE abap_bool ,
40+ grid_layout TYPE string ,
41+ grid_layout_label TYPE string ,
4242 END OF ty_s_positions.
4343 TYPES ty_t_positions TYPE STANDARD TABLE OF ty_s_positions WITH EMPTY KEY .
4444
@@ -52,7 +52,7 @@ CLASS z2ui5_cl_layo_manager DEFINITION
5252 DATA ms_layout_tmp TYPE ty_s_layout.
5353 DATA mt_comps TYPE ty_t_positions.
5454 DATA mt_sub_cols TYPE ty_t_sub_columns.
55- DATA mr_data type ref to data .
55+ DATA mr_data TYPE REF TO data .
5656
5757 CLASS-METHODS factory
5858 IMPORTING
@@ -125,9 +125,6 @@ CLASS z2ui5_cl_layo_manager DEFINITION
125125
126126 PRIVATE SECTION .
127127
128-
129-
130-
131128 CLASS-METHODS create_layout_obj
132129 IMPORTING
133130 layout_guid TYPE clike OPTIONAL
@@ -217,7 +214,7 @@ CLASS z2ui5_cl_layo_manager IMPLEMENTATION.
217214 handle03 = handle03
218215 handle04 = handle04 ).
219216
220- result->mr_data = data .
217+ result->mr_data = data .
221218
222219 ENDMETHOD .
223220
@@ -549,6 +546,9 @@ CLASS z2ui5_cl_layo_manager IMPLEMENTATION.
549546
550547 result-fname = comp->name.
551548 result-rollname = comp->type->get_relative_name( ).
549+ IF result-rollname IS INITIAL .
550+ result-rollname = result-fname.
551+ ENDIF .
552552
553553 check_zeros_option( EXPORTING i_typekind = comp->type->type_kind
554554 CHANGING c_layout = result ).
@@ -640,7 +640,7 @@ CLASS z2ui5_cl_layo_manager IMPLEMENTATION.
640640 SORT <table>
641641 BY (sortorder).
642642 CATCH cx_sy_dyn_table_ill_comp_val. "##NO_HANDLER
643- catch cx_root.
643+ CATCH cx_root.
644644 ENDTRY .
645645
646646 ENDMETHOD .
0 commit comments