2009 Jul 30 10:55 AM
I'm using CL_SALV_TABLE to create a very simple report. The report only consists of one column. How do I set the column width and align the text to left? I tried set_optimized, but I do not see any difference to the ALV after adding it in. Please advise.
I'm using CL_SALV_TABLE to create a very simple report. The report only consists of one column. How do I set the column width and align the text to left? I tried set_optimized, but I do not see any difference to the ALV after adding it in. Please advise.
2009 Jul 30 12:11 PM
Hi,
check the below
[http://help-abap.blogspot.com/search/label/SALV%20Tutorial]
Regards
Sunil
2009 Jul 30 12:23 PM
Hi,
For setting column width
DATA : gr_columns TYPE REF TO cl_salv_columns,
gr_column TYPE REF TO cl_salv_column.
CALL METHOD gr_table->get_columns
RECEIVING
value = gr_columns.
gr_column ?= gr_columns->get_column( c_bukrs ).
gr_column->set_output_length( 12 ).For alignment
gr_column->SET_ALIGNMENT( IF_SALV_C_ALIGNMENT=>LEFT ).Regards
2009 Aug 03 3:33 AM
Hi,
Thanks for the replies. The column width is solved by putting set_optimize before defining the column title.