‎2009 May 14 6:44 PM
I have designed an ALV report using cl_salv_table. I want to be able to optimize the column length. For e.g. MATNR usually returns no more than 10 characters for material number but the column length is always set to 20 as that is the length for matnr.
I have tried the code below but it does not seem to work. I can set output length set_output_length to 10 but that will then disqualify > 10 material numbers
lr_column->set_optimized( 'X' ).
‎2009 May 14 7:04 PM
Try calling the SET_OPTIMIZE method from the COLUMN Table object.
Like:
data: lr_columns type ref to cl_salv_columns_table.
lr_columns = gr_table->get_columns( ).
lr_columns->set_optimize( gc_true ).
Regards,
Naimesh Patel
‎2009 May 14 7:04 PM
Try calling the SET_OPTIMIZE method from the COLUMN Table object.
Like:
data: lr_columns type ref to cl_salv_columns_table.
lr_columns = gr_table->get_columns( ).
lr_columns->set_optimize( gc_true ).
Regards,
Naimesh Patel
‎2009 May 14 7:12 PM