CL_SALV_TABLE=>FACTORY - how do I change heading and column headings

Can someone tell me what I need to use to change the Report heading and also the column headings when using Call Method cl_salv_table=>Factory



use this code for report heading

  • get display settings -------------------------------------------------------------------------

l_display = l_table->get_display_settings( ).

l_display->set_striped_pattern( cl_salv_display_settings=>true ).

l_display->set_list_header( 'This is the heading - change ' ).

and for column heading

    • this will overwrite the data element specified in the data dictionary-------------------------

l_columns = l_table->get_columns( ).

l_column ?= l_columns->get_column( 'column name' ).

l_column->set_long_text( 'this is long text' ).

l_column->set_medium_text( 'this is medium text' ).

l_column->set_short_text( 'short text' ).


0 View this answer in context