Skip to Content
avatar image
Former Member

ABAP table sorted on browser load


Is it possible to have a table with columns bound to the context node sorted by particular columns when the table is loaded into the browser? If so can the sorting be applied on multiple columns? The aim is to provide the user with a table that is already sorted by the relevant business criteria.

If possible I would like to know if this can be done without Java which I have already found has relevant classes to achieve.

The table has the onSort property set to call a method

method onactionsort_column .

  wd_this->go_table_handler->apply_sorting( ).


go_table_handler is of the associated type IF_WD_TABLE_METHOD_HNDL

In the method WDDOMODIFYVIEW I currently have:

  lo_table ?= view->get_element( lc_table ).

  wd_this->go_table_handler ?= lo_table->_method_handler.

  wd_this->go_table_handler->set_key_attribute_name( 'ID' ).

On the columns the 'sortState' property has been set to 'up'.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 13, 2014 at 08:13 AM

    Hi Jon,

    As suggested by Mr. Kiran, check the property multipColSorting of table as below

    Also, refer the below threads

    Web Dynpro ABAP - Sorting in Table UI element ~

    Hope this helps you.



    sort_table.PNG (25.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13, 2014 at 08:04 AM


    If your are on Netweaver 7.3 you can use table.multiColumnSorting to apply sorting on multiple columns. Check this help: Sorting in Tables -  Web Dynpro ABAP - SAP Library

    Or, after fetching the data you can apply sort on the internal table and then bind the internal table to the context.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kiran

      Thanks for that but unfortunately it's our eRec system which is on a very old version of Netweaver. 700!!