fidley / falv

FALV - Fast ALV Grid
https://abapblog.com
GNU General Public License v3.0
141 stars 52 forks source link

Column position #66

Closed xavipuga closed 4 months ago

xavipuga commented 3 years ago

Hello,

I'm just starting to use your FALV classes and it's an incredible work. Congratulations and thanks for share.

I'm strugling to set columns position on my editable alv on 740 system.

This is the fieldcatalog before setting up the order: image

my set_col_pos call:

METHOD set_columns_order.

    DATA lo_column TYPE REF TO zcl_falv_column.
    DATA ld_index TYPE i.
    lo_column = go_alv->column( 'STAT'  )->set_col_pos( 1 ).
    lo_column = go_alv->column( 'MATNR'  )->set_col_pos( 2 ).
    lo_column = go_alv->column( 'MAKTX'  )->set_col_pos( 3 ).

  ENDMETHOD. "set_columns_order.

And this is the resultant fieldcatalog: image

It's that an issue? Or my mistake with the call?

Thanks a lot.

fidley commented 3 years ago

Hi @xavipuga,

I will check that, but it is strange that it works this way. I will run your code on my installation and I'll come back to you.

Cheers Łukasz

fidley commented 5 months ago

It's been a while, but maybe you want to test the solution? Branch automatic_f4_and_col_pos_update

fidley commented 4 months ago

88