From be4d8fe6e76c758fa366eeb356a1ff7578d31784 Mon Sep 17 00:00:00 2001 From: Tomek Mackowski Date: Mon, 24 Jan 2011 21:59:31 +0000 Subject: [PATCH] re #44 improve previous fix for #44 and solve issue from https://cw.sdn.sap.com/cw/thread/15813?tstart=0. Cell value node should be created only in case there is non-zero length value string. This mimics Excel behavior which also omits this node for cells which have just style or formula. git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@108 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049 --- ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk index 504b875..97a9b9c 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk @@ -2140,7 +2140,7 @@ endmethod. lv_value = <ls_sheet_content>-cell_formula. lo_element_4->set_value( value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " fomula node - ELSE. + ELSEIF <ls_sheet_content>-cell_value IS NOT INITIAL. "cell can have just style or formula IF <ls_sheet_content>-data_type IS NOT INITIAL. lo_element_3->set_attribute_ns( name = lc_xml_attr_t value = <ls_sheet_content>-data_type ).