05-19-2014 5:45 PM
Hi people,
i need yor help..
I need to obtain the TOTALS in abap and compare them with another ALV.
The totals is showing in the alv, but i need to see it in my debug or my program in save it in a variable.( lv_total)
DATA: lv_total TYPE REF TO CL_SALV_AGGREGATION.
TRY.
CALL METHOD lr_aggregations->add_aggregation
EXPORTING
columnname = 'DMBTR'
aggregation = if_salv_c_aggregation=>total
RECEIVING
value = lv_total.
.
CATCH cx_salv_data_error . "#EC NO_HANDLER
CATCH cx_salv_not_found . "#EC NO_HANDLER
CATCH cx_salv_existing . "#EC NO_HANDLER
ENDTRY.
Hope your helps
Thanks
05-20-2014 3:32 PM
Hi Ivan,
this is not yet a response but at least will keep your post in the loop.
Why don't you calculate lv_total since the calculation itself over the internal table is so easy?
regards,
Edgar
05-20-2014 3:32 PM
Hi Ivan,
this is not yet a response but at least will keep your post in the loop.
Why don't you calculate lv_total since the calculation itself over the internal table is so easy?
regards,
Edgar
05-20-2014 4:30 PM
Finally i did it, as you said..
i did the calculation itself over the internal table,.
I just wanted to know if the method gives the totals, with no necessary calculation over the internal table..
Regards