on 04-09-2010 2:08 PM
Hello,
please help me on how to set the position of columns for a table not for a alv-table at a runtime via coding.
How can we change the positions in ABAP?
Regards
Beserithan
Hi,
Actually you can get the reference of that column and in the column class there is this method to set the position. It worked for me.. hope it will for u 2.
Tenzin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't see any partcular method in cl_wd_table_column class for setting column position ( in ALV for class cl_salv_wd_column we have one method for this set_postion ).
What you can do probably as a workaround is to remove all columns (remove_all_columns of cl_wd_table ) nad then add columns again in code ( new_table_column method of class cl_wd_table_column and then using add_column of cl_wd_table) in whatever order you want.
Let's see if others can come up with some straightforward solution.
Regards
Manas Dua
Edited by: Manas Dua on Apr 9, 2010 7:24 PM
Edited by: Manas Dua on Apr 9, 2010 7:53 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.