08-30-2015 8:10 AM
Dear Experts
Kindly is there class to add count of column at the ALV footer as cl_salv_aggregations ?
Regards
08-30-2015 9:14 AM
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:
08-30-2015 9:05 AM
Hello Ghadeer,
I always do like this:
DATA: ld_lines TYPE i,
ld_linesc(10) TYPE c.
DESCRIBE TABLE it_out LINES ld_lines.
ld_linesc = ld_lines.
CONCATENATE ld_linesc 'Rows selected.' INTO msg SEPARATED BY space.
The above code is at the end of select query and before start of Filed catalogs form.(it_out is the final internal table) . And just before then end of field catalog form put this code
FORM fill_field_cat.
.......................
......................
......................
MESSAGE msg TYPE 'S'.
ENDFORM.
This displays the number of Rows in the status bar of the ALV.
Hope this helps
KJogeswaraRao
08-30-2015 9:26 AM
Thanks Jogewara
I did that and its working fine , but there is no standard class to display it in the footer line as aggregation
Regards
Ghadeer
08-30-2015 9:14 AM
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: