Skip to Content
0
Jan 24, 2011 at 12:36 PM

Changing column heading text in ALV

28 Views

Hi,

I am using below code to change the heading of the column in ALV by default column heading text is coming form data element texts.

DATA:
  lob_column TYPE REF TO cl_salv_wd_column,
  lob_col_header TYPE REF TO cl_salv_wd_column_header.

    lob_column = go_model->if_salv_wd_column_settings~get_column( 'SCENARIO' ).
    lob_column->set_position( 2 ).
    lob_col_header = lob_column->get_header( ).
    lob_col_header->set_text( value = 'My Text' ).

still the default text is coming, not the custom one which i have given.

please suggest