Application Development and Automation 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: 
Read only

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

0 Kudos
1,904

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
Read only

DoanManhQuynh
Active Contributor
0 Kudos
1,510

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.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,510

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?

Read only

0 Kudos
1,510

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.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,510

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)

Read only

0 Kudos
1,510

Alright, I will try it.

Read only

0 Kudos
1,510

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.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
1,510

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".