Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get SUM of 3 Totals in different currencies

former_member844813
Participant
0 Kudos

Hi experts!

Can someone teach me on how to get SUM of totals with different currency and display it on the bottom of the ALV display, im using cl_salv_table

its like

1.000.000.000 IDR ->total in IDR

921.678,65->total in USD

grand total = 1.092.167.865->in IDR

3 REPLIES 3

xiswanto
Active Participant
0 Kudos

Have you tried to modify the created object property refered to cl_salv_table, such as adding aggregation?

Sandra_Rossi
Active Contributor

Lots of questions and answers exist in the forum. No doubt that you can find example code.

You may also search get_sorts and get_aggregations.

cl_salv_table sum site:sap.com

VXLozano
Active Contributor
0 Kudos

To find your answer, I'll just add to sandra.rossi 's comment (answer) this:

your_grid->get_columns( )->get_column( )->set_currency_column( ).