do not use NO-ZERO for none numeric cell values (#1100)

This commit is contained in:
Domi Bigl 2023-05-26 07:47:59 +02:00 committed by GitHub
parent 829529cf6a
commit 2b01655cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1548,10 +1548,13 @@ CLASS zcl_excel_ole IMPLEMENTATION.
CLEAR contentsitem-value. CLEAR contentsitem-value.
* if type is not numeric -> dun display with zero * if type is not numeric -> dun display with zero
IF <item> CO '0123456789.,-+E '.
WRITE <item> TO contentsitem-value NO-ZERO. WRITE <item> TO contentsitem-value NO-ZERO.
SHIFT contentsitem-value LEFT DELETING LEADING space. SHIFT contentsitem-value LEFT DELETING LEADING space.
ELSE.
WRITE <item> TO contentsitem-value.
ENDIF.
ENDIF. ENDIF.
APPEND contentsitem TO contents. APPEND contentsitem TO contents.