ZCL_EXCEL_WRITER_XLSM add required parameter

create_xl_sheet_rels has a required parameter iv_comment_index. This was not populated in this version. When transporting the transport goes in error because he can't activate this class. adding lv_comment_index like it is in zcl_excel_writer_2007 corrects this problem.
This commit is contained in:
Berreke 2019-02-20 14:40:44 +01:00 committed by GitHub
parent e1f8d5b268
commit 4f7a64656e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,8 @@ method CREATE.
lv_xl_drawing_rels TYPE string,
lv_syindex TYPE string,
lv_value TYPE string,
lv_drawing_index TYPE i.
lv_drawing_index TYPE i,
lv_comment_index type i. " (+) Issue 588
**********************************************************************
* Start of insertion # issue 139 - Dateretention of cellstyles
@ -150,7 +151,8 @@ method CREATE.
lv_content = me->create_xl_sheet( io_worksheet = lo_worksheet
iv_active = lv_active ).
lv_xl_sheet = me->c_xl_sheet.
MOVE sy-index TO lv_syindex.
MOVE sy-index TO: lv_syindex,
lv_comment_index. " (+) Issue 588
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet WITH lv_syindex.
@ -159,7 +161,8 @@ method CREATE.
lv_xl_sheet_rels = me->c_xl_sheet_rels.
lv_content = me->create_xl_sheet_rels( io_worksheet = lo_worksheet
iv_drawing_index = lv_drawing_index ).
iv_drawing_index = lv_drawing_index
iv_comment_index = lv_comment_index ). " (+) Issue 588
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet_rels WITH lv_syindex.
lo_zip->add( name = lv_xl_sheet_rels
content = lv_content ).