09-27-2010 5:56 PM
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
09-27-2010 9:15 PM
Hi
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' ).
Regards
09-27-2010 9:15 PM
Hi
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' ).
Regards
09-27-2010 10:08 PM