Zed FrameOpen workbench

CL_SALV_AGGREGATIONS — ABAP Class

Add, remove, and clear totals on numeric SALV columns.

CL_SALV_AGGREGATIONS

Add, remove, and clear totals on numeric SALV columns.

ADD_AGGREGATION

Add TOTAL, MINIMUM, MAXIMUM, or AVERAGE to a numeric column.

EXPORTING columnname TYPE STRING; aggregation TYPE STRING
aggregations->add_aggregation(
  columnname = 'AMOUNT'
  aggregation = 'TOTAL' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

REMOVE_AGGREGATION

Remove one local aggregation.

EXPORTING columnname TYPE STRING
aggregations->remove_aggregation( columnname = 'AMOUNT' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CLEAR

Remove all aggregation settings.

No parameters
aggregations->clear( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.