cancel
Showing results for 
Search instead for 
Did you mean: 

set size of ALV table

former_member229026
Participant
0 Kudos

Hi Experts,

I am using two ALV view containers in parallel to show the different outputs. I have inlcuded both IN TRANSPARENT container for alignment.

Here heights of ALV tables are varying based volume of data.

( I am getting column size problem if I used lo_value->if_salv_wd_table_settings~set_fixed_table_layout (abap_true). )

Please can you suggest how to fix this issue?

Advance thanks,

Regards,

BBC

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Achari,

To fix ALV columns ...

l_column = l_table->if_salv_wd_column_settings~get_column( 'SORDERID' ).
  l_column->set_fixed_position(
    exporting
       value = cl_wd_abstr_table_column=>e_fixed_position-left ).

Please check this thread.. thomas answer..

also check this wiki

https://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-FixingaColumninan+ALV

cheers,

Kris.

former_member229026
Participant
0 Kudos

Thanks kissnas for your help.

I did the changes for all columns like .

DATA:lt_columns TYPE salv_wd_t_column_ref,

ls_columns TYPE salv_wd_s_column_ref,

lr_column TYPE REF TO cl_salv_wd_column.

CALL METHOD l_value2->if_salv_wd_column_settings~get_columns

RECEIVING

value = lt_columns.

loop at lt_columns into ls_columns.

lr_column = ls_columns-r_column.

case ls_columns-id.

when 'SELECT'.

CALL METHOD l_column->set_fixed_position

EXPORTING

value = cl_wd_abstr_table_column=>e_fixed_position-left.

when 'SIGNAL'.

CALL METHOD l_column->set_fixed_position

EXPORTING

value = cl_wd_abstr_table_column=>e_fixed_position-left.

when 'DOCNUM'.

CALL METHOD l_column->set_fixed_position

EXPORTING

value = cl_wd_abstr_table_column=>e_fixed_position-left.

endcase.

endloop.

Now I am getting problem with columns are resized, because of that I am not able to see some of the captions of columns and some of the values also.

Please can u suggest ? have to increse the length of column or any way is there to fix this issue.

Regards,

BBC

former_member229026
Participant
0 Kudos

I have resolved the issue using set_width().

Regards,

BBC