Code: Alles auswählen.
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 ).
Code: Alles auswählen.
gr_column->SET_ALIGNMENT( IF_SALV_C_ALIGNMENT=>LEFT ).