mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 13:46:17 +08:00
Fix date identification logic for newer AS ABAP versions
The texts of domain XUDATFM changed in newer systems: NW 7.40: DD.MM.YYYY NW 7.52: DD.MM.YYYY (Gregorian Date) This breaks the date identification logic. New logic copied from get_date_format_des of class cl_abap_datfm, which is called in method get_default_excel_date_format of class zcl_excel_worksheet to get the users default date pattern.
This commit is contained in:
parent
c00fa49e79
commit
a9c31f1715
|
@ -125,6 +125,7 @@ CLASS ZCL_EXCEL_WRITER_CSV IMPLEMENTATION.
|
||||||
SELECT ddtext INTO ls_format-attvalue FROM dd07t WHERE domname = 'XUDATFM'
|
SELECT ddtext INTO ls_format-attvalue FROM dd07t WHERE domname = 'XUDATFM'
|
||||||
AND ( ddlanguage = sy-langu OR ddlanguage = 'E' ).
|
AND ( ddlanguage = sy-langu OR ddlanguage = 'E' ).
|
||||||
ls_format-cmpname = 'DATE'.
|
ls_format-cmpname = 'DATE'.
|
||||||
|
ls_format-attvalue = ls_format-attvalue(10). " Ignore description, only use pattern
|
||||||
CONDENSE ls_format-attvalue.
|
CONDENSE ls_format-attvalue.
|
||||||
CONCATENATE '''' ls_format-attvalue '''' INTO ls_format-attvalue.
|
CONCATENATE '''' ls_format-attvalue '''' INTO ls_format-attvalue.
|
||||||
APPEND ls_format TO lt_format.
|
APPEND ls_format TO lt_format.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user