Update zcl_excel_writer_2007.clas.abap

This commit is contained in:
RixarSAP 2024-05-03 09:23:30 +02:00 committed by GitHub
parent a2fd4227f1
commit b5e59210b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3302,6 +3302,10 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION.
*--------------------------------------------------------------------* *--------------------------------------------------------------------*
* Ricardo R. - 2024.05.02 * Ricardo R. - 2024.05.02
* https://github.com/abap2xlsx/abap2xlsx/pull/1219 * https://github.com/abap2xlsx/abap2xlsx/pull/1219
*--------------------------------------------------------------------*
* Anchor represents 4 pairs of numbers:
* ( left column, left offset ), ( top row, top offset ),
* ( right column, right offset ), ( bottom row, botton offset )
*--------------------------------------------------------------------* *--------------------------------------------------------------------*
DATA: DATA:
lv_anchor TYPE string, lv_anchor TYPE string,
@ -3322,8 +3326,8 @@ CLASS zcl_excel_writer_2007 IMPLEMENTATION.
lv_bottom_row_str = lv_bottom_row. lv_bottom_row_str = lv_bottom_row.
lv_anchor = lc_anchor_init. lv_anchor = lc_anchor_init.
REPLACE '&right_col&' WITH lv_bottom_row_str INTO lv_anchor. REPLACE '&right_col&' WITH lv_right_col_str INTO lv_anchor.
REPLACE '&bottom_row&' WITH lv_right_col_str INTO lv_anchor. REPLACE '&bottom_row&' WITH lv_bottom_row_str INTO lv_anchor.
lo_element_anchor->set_value( lv_anchor ). lo_element_anchor->set_value( lv_anchor ).