08-03-2009 6:42 PM
How do I rename the column heading while displaying output in ALV using CL_SALV_TABLE.... I am using the following code which is not working.
LR_COLUMN = IR_COLUMNS->GET_COLUMN( 'HEADER' ).
LR_COLUMN->SET_TECHNICAL( IF_SALV_C_BOOL_SAP=>FALSE ).
LR_COLUMN->SET_MEDIUM_TEXT( 'Requisition Title' ).
08-03-2009 7:05 PM
Is HEADER a column name? Should be.
This code works fine for me
data: gr_columns type ref to cl_salv_columns_table,
gr_column type ref to cl_salv_column_table.
...
gr_columns = gr_table->get_columns( ).
gr_column ?= gr_columns->get_column( 'CARRID' ). "column name
gr_column->set_long_text( 'Long text' ).
gr_column->set_medium_text( 'Medium text' ).
gr_column->set_short_text( 'Short text' ).
....
gr_table->display( ).
Regards
Marcin
08-03-2009 7:05 PM
Is HEADER a column name? Should be.
This code works fine for me
data: gr_columns type ref to cl_salv_columns_table,
gr_column type ref to cl_salv_column_table.
...
gr_columns = gr_table->get_columns( ).
gr_column ?= gr_columns->get_column( 'CARRID' ). "column name
gr_column->set_long_text( 'Long text' ).
gr_column->set_medium_text( 'Medium text' ).
gr_column->set_short_text( 'Short text' ).
....
gr_table->display( ).
Regards
Marcin