These lines are added to method SET_CELL of ZCL_EXCEL_WORKSHEET:
IF lv_value CS '_x'.
" Issue #761 value "_x0041_" rendered as "A".
" "_x...._", where "." is 0-9 a-f or A-F (case insensitive), is an internal value in sharedStrings.xml
" that Excel uses to store special characters, it's interpreted like Unicode character U+....
" for instance "_x0041_" is U+0041 which is "A".
" To not interpret such text, the first underscore is replaced with "_x005f_".
" The value "_x0041_" is to be stored internally "_x005f_x0041_" so that it's rendered like "_x0041_".
" Note that REGEX is time consuming, it's why "CS" is used above to improve the performance.
REPLACE ALL OCCURRENCES OF REGEX '_(x[0-9a-fA-F]{4}_)' IN lv_value WITH '_x005f_$1' RESPECTING CASE.
ENDIF.
Co-authored-by: sandraros <sandra.rossi@gmail.com>
* ATC check cleared
removed SELECT * from USR01
removed empty SELECT...ENDSELECT on URS01
* Removed Inerface method implementation
ZIF_EXCEL_READER~CAN_READ_FILE was implemented but this method is not defined anymore in the Interface.
ATC check failed with incorrect syntax.
Solution: Method implementation deleted.
* Update zcl_excel_worksheet.clas.abap
Allow int8 type columns
* Option to create empty file
Allow to create empty excel file even if input table is empty
* Update zcl_excel_worksheet.clas.abap
Add the option to create the file or not if the input table is empty
* Test report zdemo_excel43
When using CSV mainly, if the input table is empty, the csv file contained a line with empty fields and separators.
This fooled some automation process thinking there's data to process in the file.
When optional input parameter "iv_no_line_if_empty" of method "zcl_excel_worksheet->bind_table" is checked, there's no more empty line in this case.
* User demo report 44 instead of 43
Mistake in test program name
* Fix internal renaming of test report 44
* Correct filename and test both cases
* Include test 44
* Read UTF-8 input file correctly
* Classes for cell coments
As contributed by guillaumegarcia13
* Support for comments (Issue #180)
As contributed by guillaumegarcia13
This class lifts the functionality of the whole project to a full excel-upload and download framework, without having known limititions, of other ABAP Excel Upload mechanisms.
Best regards
D. Rauchenstein