cancel
Showing results for 
Search instead for 
Did you mean: 

WD4A table dynamic change of column position

Peter_Lintner
Participant
0 Kudos

Hi,

I've the requirement to change dynamically positions of columns (in my case grouped columns).

I've tried to solve the issue with following steps:

lo_column = lo_table->remove_grouped_column( id = l_column_name ).

... calculating new position into l_position

      CALL METHOD lo_table->add_grouped_column(
        EXPORTING
          index              = l_position
          the_grouped_column = lo_column ).

The position of the column is not changed in my view.

Thanks for any hints!

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

you can use set_postion( ) method to set postion of column but i don't understand what you means by change dynamically positions of columns can you please elaborate your requireemnt with example

Peter_Lintner
Participant
0 Kudos

Hi,

I created a table with some columns:

COL01

COL02

COL03

COL04

COL05

...

COL31.

COLUMNGROUPHEADER1

     COLG11

     COLG12

COLUMNGROUPHEADER2

     COLG21

     COLG22

As in the columns COLG.. are values which should be displayed after different columns COL...

The columns COL.. are representing days in the month. The columns in the groupheaders are containing sum data on weekly basis, which have to be displayed after the columns, which representing the sunday ...

I hope I've described the requirement, which should be solved!

Kind regards
Peter

Peter_Lintner
Participant
0 Kudos

which class provides set_position()?

we are on 7.02

Former Member
0 Kudos

my mistake i thought you are using alv