Optimized methods:
CONVERT_COLUMN2ALPHA
CONVERT_COLUMN2INT.
Too much calls of cl_abap_conv* for UCCPI replaced with statics variables. The improvement is noticeable on binding large tables.
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 #########...
A few tiny corrections:
1. Add in class ZCL_EXCEL_READER_2007 at method READ_FROM_APPLSERVER in signature raising clause.
2. Add in class ZCL_EXCEL_CONVERT at methods OPEN_FILE and WRITE_FILE exceptions at gui_download method and add in both methods signature raising clause.
3. Add in class ZCL_EXCEL_CONVERT a text 'A problem occurred when writen the file'.
4. Changed occured to occurred in the whole file.
5. Changed Schmöcker to Schmoeker in the whole file.
A few tiny corrections:
1. Add in class ZCL_EXCEL_READER_2007 at method READ_FROM_APPLSERVER in signature raising clause.
2. Add in class ZCL_EXCEL_CONVERT at methods OPEN_FILE and WRITE_FILE exceptions at gui_download method and add in both methods signature raising clause.
3. Add in class ZCL_EXCEL_CONVERT a text 'A problem occurred when writen the file'.
4. Changed occured to occurred in the whole file.
5. Changed Schmöcker to Schmoeker in the whole file.
In the reader I've added loading of theme1.xml file. Color scheme and
fonts are loaded to proper structure and can be updated, fmtscheme is at
the moment copied from oryginal file as well as object defaults, extra
colors and extension list.
In case of new file default office theme is used.
Changes can be tested with DEMO37 just create simple excel with theme
settings and use program to rewrite file.
ZCL_EXCEL_WORKSHEET:
- in method BIND_ALV optional parameter I_TABLE added so we can decide
if we want to have formated table in Excel or not
- in method BIND_TABLE optional parameter IV_DEFAULT_DESCR added to be
able to control which description you want to use as a table header.
ZCL_EXCEL_STYLE_NUMBER_FORMAT :
- GBP and PLN currency formats added
ZCL_EXCEL_TABLE:
- few built in table styles added