Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change columns order table control

Former Member
0 Kudos

Hi experts,

I want to prohibit the user to change the columns order (without using fixed columns because it's all columns).

Is there an event that triggers when we do that?

Thanks in advance

6 REPLIES 6

Former Member
0 Kudos

can you be little more clearer on what you mean by prohibit the change of order of the TC?

0 Kudos

I mean if user try to change the order of columns then display a warning or something like that

Don't give the user possibility to change the order of columns

Hope clearly

0 Kudos

Hi

Try to remove the authorisation S_ADMI_FCD. Usually this is the authorisation that allows to change / have the admin access of the table control properties.

Br,

Vijay V

Former Member
0 Kudos

Hi,

I am not sure how are you already sorting the records, so some inputs would be helpful.

Meanwhile you can have a look at the standard program RSDEMO02 for sorting in table control.

Regards

NIlesh P

0 Kudos

Hello,

I think is still not clear

Well, you see your program 'RSDEMO02': If you drag drop for example the column Arrival city and you put it after Departure you can.....Me i want to ban this practice the user does not can do it

Thanks,

0 Kudos

Hello Hraichi,

I think Darg & Drop event is not recognised in the table control. You will have to use class CL_GUI_ALV_GRID for that. you can check these programs BCALV_TEST_GRID_DRAG_DROP or BCALV_TEST_GRID_DRAG_DROP_02 . Meanwhile If you still wish to use table control, you can set the fixed columns field in the table control attributes in the screen painter to number of columns you have, so that all the columns will get fixed to their postions.

Regards

Nilesh