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: 

SALV Aggregate coulm based on second coulm (NETWR and WAERK)

Former Member
0 Kudos

hi,

using CL_SALV_TABLE and CL_SALV_AGGREGATIONS, it is quite easy to add an aggregation (sum) at the end of one column. But how do I add a criteria to this aggregation, not having a linked value field from the DDIC?

Example: field NETWR should be aggregated based on the content of WAERK (e.g. EUR and USD). I need one aggregation line at the bottom of the ALV per currency key (WAERK). If I use a structure existing in DDIC, this works well, but if I use a TYPES: begin of ... end of .. structure type having NETWR as a component, it does not.

Thanks a lot for all ideas!

1 ACCEPTED SOLUTION

Servus Roland,

have a look at

CL_SALV_COLUMN->SET_CURRENCY_COLUMN

If you generate your field catalog without a DDIC type - the information regarding currency and quantity columns is missing.

BR, Thomas

2 REPLIES 2

Servus Roland,

have a look at

CL_SALV_COLUMN->SET_CURRENCY_COLUMN

If you generate your field catalog without a DDIC type - the information regarding currency and quantity columns is missing.

BR, Thomas

0 Kudos

Thanks a lot!