mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-04 20:28:22 +08:00
Method DATE_TO_EXCEL_STRING: Date field = space
Sometimes you get date field empty - containing only space(s) (not zeroes '00000000'). This value treated as not initial in ABAP for fields typed as D. This resulted in passing by CHECK ip_value IS NOT INITIAL and calculating lv_date_diff = ip_value - c_excel_baseline_date + 1. which returns "-693596". In EXCEL this displayed as #########...
This commit is contained in:
parent
538c544c55
commit
371dfbba56
|
@ -1673,7 +1673,8 @@ endmethod.</source>
|
|||
<source>method DATE_TO_EXCEL_STRING.
|
||||
DATA: lv_date_diff TYPE i.
|
||||
|
||||
CHECK ip_value IS NOT INITIAL.
|
||||
CHECK ip_value IS NOT INITIAL
|
||||
AND ip_value <> space.
|
||||
" Needed hack caused by the problem that:
|
||||
" Excel 2000 incorrectly assumes that the year 1900 is a leap year
|
||||
" http://support.microsoft.com/kb/214326/en-us
|
||||
|
|
Loading…
Reference in New Issue
Block a user