clear exporting parameter GET_CELL #789 (#840)

* clear exporting parameter GET_CELL #789

* satisfy linter

* satisfy linter - WHILE
This commit is contained in:
Domi Bigl 2021-10-09 11:21:07 +02:00 committed by GitHub
parent d19ac690c6
commit 2cda265b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1868,7 +1868,7 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
READ TABLE sheet_content INTO ls_sheet_content WITH TABLE KEY cell_row = ip_row READ TABLE sheet_content INTO ls_sheet_content WITH TABLE KEY cell_row = ip_row
cell_column = lv_column. cell_column = lv_column.
ep_rc = sy-subrc. ep_rc = sy-subrc.
ep_value = ls_sheet_content-cell_value. ep_value = ls_sheet_content-cell_value.
ep_guid = ls_sheet_content-cell_style. " issue 139 - added this to be used for columnwidth calculation ep_guid = ls_sheet_content-cell_style. " issue 139 - added this to be used for columnwidth calculation
ep_formula = ls_sheet_content-cell_formula. ep_formula = ls_sheet_content-cell_formula.
@ -1876,9 +1876,10 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
" Addition to solve issue #120, contribution by Stefan Schmöcker " Addition to solve issue #120, contribution by Stefan Schmöcker
DATA: style_iterator TYPE REF TO cl_object_collection_iterator, DATA: style_iterator TYPE REF TO cl_object_collection_iterator,
style TYPE REF TO zcl_excel_style. style TYPE REF TO zcl_excel_style.
IF ep_style IS REQUESTED. IF ep_style IS SUPPLIED.
CLEAR ep_style.
style_iterator = me->excel->get_styles_iterator( ). style_iterator = me->excel->get_styles_iterator( ).
WHILE style_iterator->has_next( ) = 'X'. WHILE style_iterator->has_next( ) = abap_true.
style ?= style_iterator->get_next( ). style ?= style_iterator->get_next( ).
IF style->get_guid( ) = ls_sheet_content-cell_style. IF style->get_guid( ) = ls_sheet_content-cell_style.
ep_style = style. ep_style = style.