REDUCE  Operator

Index

 

ABAP HANA 7.51: REDUCE  Operator

Reduce operator creates a result of specified data type after going through iterations. It can have many forms in which it can indulge in in-loop calculations/assignments.

Common code applicable for all variants:

REDUCE_VarAll_source

Sample Source Code: Variant 1

REDUCE_Var1_source

Output: Variant 1

REDUCE_VarAll_output

REDUCE_Var1_output

Sample Source Code: Variant 2

REDUCE_Var2_source

Output: Variant 2

REDUCE_Var2_output

Sample Source Code: Variant 3

REDUCE_Var3_source

Output: Variant 3

REDUCE_VarAll_output

REDUCE_Var3_output

Sample Source Code: Variant 4

REDUCE_Var4_source

Output: Variant 4

REDUCE_VarAll_output

REDUCE_Var4_output

Check the video for Illustration and Example:

Find the code on GitHub:

Go to Code

Index

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s