Skip to Content

How to add Subtotal button to ALV IDA toolbar report?

Is it possible?

ida-subtotal.png (16.5 kB)
ida-total.png (20.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 30, 2017 at 07:12 AM

    Did you define at least one totalized column and one sort criteria, the icon should then appear.

    NB: To add custom buttons (but should not be required) you have to implement methods add_button and function_selected of interface IF_SALV_GUI_TOOLBAR_IDA. And the second method must do the work itself.

    Add comment
    10|10000 characters needed characters exceeded

    • So you don't want to define sub-totals as I first understood, but want to handle some collapse/expand button. In this case you could implement the two events I already suggested to add functions not already existing in the menu (or use your own status with set_pf_status)

      NB: Look at sample SALV_IDA_TOOLBAR_FUNCTION

      iconmenu.png (2.0 kB)
  • Nov 29, 2017 at 07:33 PM

    I see you have a Total button in the IDA. Once you total a column, normally the Sub-Total button will display (I think).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 30, 2017 at 06:53 AM

    You can't add subtotal button, but there are some conditions that you have to fulfill to use the subtotal facility. These are :

    1. There must be atleast one column of numeric type in the grid.

    2. Total of atleast one column(numeric column) is mandatory. Once you performed the total of a column, the subtotal button will be enabled, now you can perform the subtotal of the column(numeric column) you want.

    Add comment
    10|10000 characters needed characters exceeded