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: 

How to change the columns name (text) of table control dynamically?

0 Kudos
783

Hi Everybody!

I would like to know how to change that fields which contain the column name in the table control. In the layout when I double-click at the column name a popup come up where I see attributes. I would like to change the text, this is what I see... but I have to do this dynamically. I don't need any label or input field idea.

Please help me!

Best regards,

Bendegúz

7 REPLIES 7

DoanManhQuynh
Active Contributor
0 Kudos
389

table control dont have the attribute to control the column name that why alternative solution is label or input field. if you dont want to use it, maybe you should change to ALV instead.

Sandra_Rossi
Active Contributor
0 Kudos
389

Saying "[no] input field", you mean that you don't want to change the column heading via a global variable, but why? Isn't it your question, how to change it at run time?

0 Kudos
389

Sandra Rossi,

I have dynamic table structure so i will dont know the numbers and the lengths of the columns. So when I adjust the size of the column I would like that the text go with it.

Sandra_Rossi
Active Contributor
0 Kudos
389

You may change the width and the heading of any column at run time (width via the "CONTROLS" variable and heading via one global variable per column)

0 Kudos
389

Alright, I will try it.

0 Kudos
389

It doesn't will be good because when I want to see the other columns, I have to scroll right and the meantime the fields will not follow the columns.

Sandra_Rossi
Active Contributor
0 Kudos
389

You may display with a scroll at the given position (LEFT_COL in the "CONTROLS" variable). I don't understand what means "fields will not follow the columns".