Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
Showing results for 
Search instead for 
Did you mean: 
Active Participant

On one of my more recent projects I went through a code review and afterwards my team lead pulled me aside and asked me to explain something. As it turns out he was referring to my use of the REDUCE operator in one the class methods. Much to my surprise this particular operator is not as widely used as I thought and the reason doesn't seem to be that it's actually hard to use but rather it just "looks" difficult to begin with.


It's a great way to quickly and efficiently sum up or collect strings in a way that lets you summarize large tables of information. It's also, in my humble opinion, a very clean and tidy way to collect summarised data making the logic easy to read for other developers.


So in this article I really want to encourage you, if you aren't already doing so, to give the REDUCE operator a try 🙂


The SAP documentation on this particular operator is really well written and so I made a short video simply following 3 examples directly from the online documentation.


These are the three examples I run through:

REDUCE - Reduction Operator -

Creating Values with FOR and REDUCE -

Table Reductions, Summation of an Array -


There's also a great blog post by Horst Keller on the subject -


The example can be found in this GitHub Repo -


If you have any questions or anything you'd like to add, please let me know in a comment and I'll help where I can.


Thanks for reading!
Labels in this area