In ALV report using cl_alv_table I have code set traffic light in the column and I want the column text label should have some meaningful name instead of 'Exception'. I tried using set_short_text method before or after set_exception_column method but it does not work. It is working if I build field catalogue in cl_gui_alv_grid but the report use cl_alv_table class.
Does anyone know how? Thanks for your reply.
Here is my code:
-
Get columns object
lr_columns = p_alv->get_columns( ).
TRY.
lr_column ?= lr_columns->get_column(
columnname = 'LIGHT' ).
lr_column->set_short_text( value = 'Expired' ).
lr_column->set_medium_text( value = 'Expired Doc' ).
lr_column->set_long_text( value = 'Expired Document' ).
CATCH cx_salv_not_found INTO gr_error.
ENDTRY.
************************************
columns for special purpose
************************************
Set exception column
TRY.
lr_columns->set_exception_column(
value = 'LIGHT'
GROUP = SPACE
CONDENSED = IF_SALV_C_BOOL_SAP=>false
).
CATCH cx_salv_data_error.
ENDTRY.