*"* local class implementation for public class
*"* use this source file for the implementation part of
*"* local helper classes*"* use this source file for any type declarations (class
*"* definitions, interfaces or data types) you need for method
*"* implementation or private method's signature*"* use this source file for any macro definitions you need
*"* in the implementation part of the classmethod CONSTRUCTOR.
DATA: ls_iconset TYPE zexcel_conditional_iconset.
ls_iconset-iconset = zcl_excel_style_conditional=>c_iconset_3trafficlights.
ls_iconset-cfvo1_type = zcl_excel_style_conditional=>c_cfvo_type_percent.
ls_iconset-cfvo1_value = '0'.
ls_iconset-cfvo2_type = zcl_excel_style_conditional=>c_cfvo_type_percent.
ls_iconset-cfvo2_value = '20'.
ls_iconset-cfvo3_type = zcl_excel_style_conditional=>c_cfvo_type_percent.
ls_iconset-cfvo3_value = '40'.
ls_iconset-cfvo4_type = zcl_excel_style_conditional=>c_cfvo_type_percent.
ls_iconset-cfvo4_value = '60'.
ls_iconset-cfvo5_type = zcl_excel_style_conditional=>c_cfvo_type_percent.
ls_iconset-cfvo5_value = '80'.
me->rule = zcl_excel_style_conditional=>c_rule_none.
* me->iconset->operator = zcl_excel_style_conditional=>c_operator_none.
me->mode_iconset = ls_iconset.
me->priority = 1.
* inizialize dimension range
me->stop_cell-cell_row = 1.
me->stop_cell-cell_column = 1.
me->start_cell-cell_row = 1.
me->start_cell-cell_column = 1.
endmethod.method GET_DIMENSION_RANGE.
IF stop_cell EQ start_cell. "only one cell
ep_dimension_range = start_cell-cell_coords.
ELSE.
CONCATENATE start_cell-cell_coords ':' stop_cell-cell_coords INTO ep_dimension_range.
ENDIF.
endmethod.method SET_RANGE.
DATA: lv_column TYPE zexcel_cell_column,
lv_row_alpha TYPE string.
lv_column = zcl_excel_common=>convert_column2int( ip_stop_column ).
stop_cell-cell_row = 1.
stop_cell-cell_column = lv_column.
lv_row_alpha = ip_stop_row.
SHIFT lv_row_alpha RIGHT DELETING TRAILING space.
SHIFT lv_row_alpha LEFT DELETING LEADING space.
CONCATENATE ip_stop_column lv_row_alpha INTO stop_cell-cell_coords.
lv_column = zcl_excel_common=>convert_column2int( ip_start_column ).
start_cell-cell_row = 1.
start_cell-cell_column = lv_column.
lv_row_alpha = ip_start_row.
SHIFT lv_row_alpha RIGHT DELETING TRAILING space.
SHIFT lv_row_alpha LEFT DELETING LEADING space.
CONCATENATE ip_start_column lv_row_alpha INTO start_cell-cell_coords.
endmethod.