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: 

Freeze columns in table control

Former Member
0 Kudos
664

Hi Folks!

Is it possible to freeze columns in a table control? If it is possible how you can achieve it?

Thanks for any help.

Regards,

Gilberto Li

1 ACCEPTED SOLUTION

Former Member
0 Kudos
118

Hi,

You want to disable all the fields in the table control? right??

Do this..

LOOP AT SCREEN.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDLOOP.

Note: The above code should be with in the loop at ..endloop of PBO..

This will disable all the fields in the table control.

Thanks,

Naren

4 REPLIES 4

Former Member
0 Kudos
119

Hi,

You want to disable all the fields in the table control? right??

Do this..

LOOP AT SCREEN.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDLOOP.

Note: The above code should be with in the loop at ..endloop of PBO..

This will disable all the fields in the table control.

Thanks,

Naren

0 Kudos
118

If you want to freeze columns in a table control, meaning you want to keep the first two columns visible when scrolling to the right, then you can set this in the table control administrator. Run the program, click on the icon which is in the upper top right hand corner of the table control. You will get a dialog, the is the table control admin area. Now click on the "Administrator" button, in this dialog, at the bottom in the "Further Settings" tray, there is a field for number of fixed columns, set it to two, activate and close. Now you can see that the first two columns will always be visiable when scrolling to the right.

Regards,

Rich Heilman

0 Kudos
118

hi,

This should solve your problem

This should in PBO

controls cnt_acct type tableview using screen 9989.

DATA W_cnt_acct LIKE LINE OF cnt_acct-COLS.

loop at cnt_acct-cols into w_cnt_acct.

w_cnt_acct-SCREEN-INPUT = '0'.

modify cnt_acct-cols from w_cnt_acct.

endloop.

THANKS

VENKI

0 Kudos
118

hi,

This should solve your problem

This should in PBO

controls cnt_acct type tableview using screen 9989.

DATA W_cnt_acct LIKE LINE OF cnt_acct-COLS.

loop at cnt_acct-cols into w_cnt_acct.

w_cnt_acct-SCREEN-INPUT = '0'.

modify cnt_acct-cols from w_cnt_acct.

endloop.

THANKS

VENKI