SAP REDUCE SIMPLE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ITAB - Table Reduction, Summation of an Array
This example demonstrates a simple table reduction using REDUCE.

ABAP_SOURCE_CODE
DEMO CL_DEMO_REDUCE_SIMPLE

ABAP_DESCRIPTION
After the FOR expression, the content of the table lines in itab is added to the local variable x and this variable is provided as the result. Instead of x = 0, x TYPE i could also be specified after INIT.