Skip to Content
author's profile photo
Former Member

TableView + ALV functions ?

Hi everybody!

We would like to know how to implement a TableView in a BSP page, with the same functionnalities as ALV offers : totals, sub-totals, filters, sorts...

Thanks a lot in advance!

François

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 22, 2005 at 01:09 PM

    hi Francois,,

    In a Tableview,you can use the tags FILTER,SORT for filtering and sorting.

    You can see the applications SBSPEXT_HTMLB with page Tableview.

    You can find help on the help.sap.com also

    http://help.sap.com/saphelp_nw04/helpdata/en/fd/003a3c00b96951e10000000a11405a/content.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/fd/003a3c00b96951e10000000a11405a/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/fd/003a3c00b96951e10000000a11405a/content.htm>

    You can do calculations like totals in your internal table as required and then view as tableview.

    There are numerous weblogs available,for doing advanced features at runtime like Brian's [url]https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/213[ [original link is broken];/url]

    Regards,

    Siddhartha

    Message was edited by: Siddhartha Jain

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2005 at 01:02 PM

    Filters and Sorts are fairly easy. There are two attributes of the tableView SORT and FILTER that you set to the value of SERVER. Then the element will handle the rest. Of course if you want control, there are methods to code your own routines.

    Totals and Sub-totals are another matter. You have to create those yourself. There are different approaches. I tend to calculate them in advance in my internal table in special rows (extra fields in the row definition). I then use a TableView Iterator to control the rendering and make the Total/sub-totals stand out - or all the user to turn them on and off. I'm afraid there isn't anything as automatic as what we have in the ALV grid.

    Add comment
    10|10000 characters needed characters exceeded