Skip to Content

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

Count Rows In ALV

Dear Experts

Kindly is there class to add count of column at the ALV footer as   cl_salv_aggregations ?

Regards

replied

Hi,

If you refer to  cl_salv_table .

DATA: ob_salv_table TYPE REF TO cl_salv_table .

In the output table define:

TYPES: count  TYPE sysrows .

At pbo:

DATA: ob_salv_columns TYPE REF TO cl_salv_columns_table .

ob_salv_columns = ob_salv_table->get_columns( ) .

ob_salv_columns->set_count_column( 'COUNT' ).

Regards.

Output:

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question