cancel
Showing results for 
Search instead for 
Did you mean: 

Set title column dynamically

Former Member
0 Kudos

Hi All,

I have a table in a dynpro and I'd like to set the column header dynamically...

Any clues of the methods ...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi stephan......

instead of changing coulmn name dynamically, you can add columns dynamically using add_column(). or you can make use of the class cl_wd_table _column to set the text.

---regards,

alex b justin

Former Member
0 Kudos

Hi,

It look like good but How can I then get cl_wd_table _column from my layout using COLUMN ID?

Steph

Former Member
0 Kudos

hi stephan....

you can make use of cl_wd_table->get_column(). to get the column id....

---regards,

alex b justin

Answers (1)

Answers (1)

Former Member
0 Kudos

You can bind the "Text" property of column's CAPTION UI element to an attribute and then you can assign the value to that attribute dynamically based on whatever logic you like.

Hope it helps....