Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sort columns tableview


I've made a tableview with an iterator in an MVC BSP. The thing is that I'd like to have some columns of that table which the user can sort. I tried to do the following in the method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS:

APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.


<def>-TITLE = 'SAP User'.

<def>-SORT = 'X'.

but, I don't see a sort icon in my column header line. What could be the issue behind this. Of course points will be given to those who can push me in the right direction.



Former Member

Hi Tom,

You need to set the sort attribute of the tableview. Look at the help for the tableview under the Tag Browser.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question