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: 

Currency reference in local structure

former_member185943
Participant
0 Kudos

Hi,

If I had a structure as:

TYPES:

  BEGIN OF lty_s_test,

    amount TYPE bsik-wrbtr,

    curr   TYPE bsik-waers,

  END OF lty_s_test.

...and use it to show table in ALV grid, the result would be wrong. When user creates totals, all amounts are summed together, even for mixed currencies (eg EUR and USD).

If I do the same in dictionary structure, it forces me to supply Ref. struc and Ref. field for AMOUNT field (in my case, it is CURR field) and ALV grid correctly sums different currencies separately.

How can I (if at all) get the same result in local structure?

Thanks!

KR,

Igor

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
0 Kudos

Hi Igor,

witch kind of technic do you use to display your ALV ?  you don't have a field catalog ?  you can't modify it ?

regards

Fred

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

Hi Igor,

witch kind of technic do you use to display your ALV ?  you don't have a field catalog ?  you can't modify it ?

regards

Fred

0 Kudos

Hi, Frederic,

Fieldcatalog, of course! Sometimes the obvious solution doesn't occur (and almighty Google failed too). Thanks for the hint - it works!

KR,

Igor