IF sy-subrc = 0.
alv_def = alv_variant-variant.
* save the initial, e.g. default variant "n579976
move alv_variant-variant to alv_default_variant. "n579976
ENDIF.
* consider customizing settings regarding the "n555893
* colourization of numeric fields "n555893
if l_s_mmim_rep_print-color = 'X'. "n555893
* the customizing says : use no colors "n555893
clear alv_colourize_fields. "n555893
else. "n555893
* no restrictions -> work with colours "n555893
move 'X' to alv_colourize_fields. "n555893
endif. "n555893
else.
* MMIM_REP_PRINT entry missing / work with colours "n555893
move 'X' to alv_colourize_fields. "n555893