cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ABAP Table in runtime

Former Member
0 Kudos

Hi,

I have an ui table that has 3 table columns but in runtime i want to add 3 table columns more for it i use add_grouped_column( lr_column ). but when i do a test i see that the 3 table columns that i want to add in the last of table is in the begining. How can i do that the table column that i add is created in the last of table?

Thnx.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Paulina,

Why dont you pass the Index parameter to the ADD_GROUPED_COLUMN.

Supply the index value as the first parameter then you would get the desired result.

Cheers,

Sankar

Former Member
0 Kudos

Hi Paulina,

I dont think you can add the colums to a table UI element dynamically @ runtime. Instead, you can add all the columns to your TABLE UI @ one shot and hide the unwanted elements using a WDUI_VISIBILITY Context element. Set this context element based on your requirement to display the columns dynamically.

FYI...For WDUI_VISIBILTY variable 1 - Hide and 2 - Display.

Hope this helps.

Regards

Raja Sekhar