Hi Friends,
I am using OO to display a report with ALV Grid
I tried to change the column names but it still takes the column names from the DDIC.
My declaration is as follows
Data: num type dmbtr.
TRY.
lr_column ?= lr_columns->get_column( columnname = 'NUM' ).
lr_column->set_output_length('7').
lr_column->set_long_text( ' Value' ).
lr_column->set_short_text( ''() ).
lr_column->set_medium_text( 'Value' ).
CATCH cx_salv_not_found INTO gr_error.
gr_msg = gr_error->get_text( ).
MESSAGE gr_msg TYPE 'I'.
ENDTRY.
*--- display report
gr_table->display( ).
CATCH cx_salv_msg.
WRITE: 'Error displaying grid! - cx_salv_msg'(044).
CATCH cx_salv_not_found.
WRITE: 'Error displaying grid! - cx_salv_not_found'(004).
CATCH cx_salv_data_error.
WRITE: 'Error displaying grid! - cx_salv_data_error'(005).
CATCH cx_salv_existing.
WRITE: 'Error displaying grid! - cx_salv_existing'(006).
I need the column name as VALUE but it displays as Amount LC in the alv report.
Thanks
chaithanya