Well, this strangely was a lot tougher than I expected. I just wanted the ability to change the column headers based on my own descriptions (or perhaps by language). Dynamic table header changes took more research than I originally expected, so here’s what I found… Hope if can help you…
*** get the reference to your table
l_table ?= view->get_element( ID = ‘TB_XXX’ ).
*** get all of the columns so you can name them as you like
lt_cols = l_table->get_columns( ).
LOOP AT lt_cols into wa_cols.
*** Get the text you want to add to the column headings and assign to lv_col_text
lv_col_fld = “column name”.
l_col_hdr = wa_cols->get_header( ).
l_col_hdr->set_text( lv_col_text ).
wa_cols->set_header( l_col_hdr ).
Happy coding =)As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,