From 4aad2f57fb80cb879ead065097409bd04ea34e26 Mon Sep 17 00:00:00 2001 From: Bernd <135710507+darnoc312@users.noreply.github.com> Date: Wed, 1 May 2024 10:24:41 +0200 Subject: [PATCH] Update zcl_excel_writer_2007.clas.abap --- src/zcl_excel_writer_2007.clas.abap | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/zcl_excel_writer_2007.clas.abap b/src/zcl_excel_writer_2007.clas.abap index 78cce78..35e4cd3 100644 --- a/src/zcl_excel_writer_2007.clas.abap +++ b/src/zcl_excel_writer_2007.clas.abap @@ -4339,10 +4339,7 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION. WHILE lv_next_row <= ls_sheet_content-cell_row. lv_current_row = lv_next_row. lv_next_row = lv_current_row + 1. - IF lv_current_row = ls_sheet_content-cell_row. " cell value found in this row - ASSIGN ls_sheet_content TO . - ENDIF. - IF lv_current_row <> ls_sheet_content-cell_row OR " greater doesn't occur here + IF lv_current_row <> ls_sheet_content-cell_row OR " if true it is always less here ls_sheet_content-cell_value = lc_dummy_cell_content. *Check if empty row is really necessary - this is basically the case when we have information in row_dimension lo_row_empty = io_worksheet->get_row( lv_current_row ). @@ -4351,7 +4348,9 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION. lo_row_empty->get_outline_level( io_worksheet ) > 0 OR lo_row_empty->get_xf_index( ) <> 0. ENDIF. - IF lv_current_row <> ls_sheet_content-cell_row. " greater doesn't occur here + IF lv_current_row = ls_sheet_content-cell_row. " cell value found in this row + ASSIGN ls_sheet_content TO . + ELSE. " Dummyentry in column A ls_sheet_content_empty-cell_row = lv_current_row. ls_sheet_content_empty-cell_column = 1. @@ -4427,7 +4426,7 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION. ls_last_row = . ENDWHILE. - CHECK -cell_value <> lc_dummy_cell_content. + CHECK ls_sheet_content-cell_value <> lc_dummy_cell_content. *---> According to the other dummy lines from the WHILE loop above the start and end lines * contain dummy content without cell_coords in column A only, which don't need a 'C' node.