DO_SUM is very helpful when you want to assure that some of the numeric fields are summarized directly after the output, without interaction from the user side. In order to do so, just put the ‘X’ or ABAP_TRUE into the value of this field in the field catalog.
One remark, if you’re adding this setting to value or quantity field, make sure that you also fill the QFIELDNAME or CFIELDNAME to have the sum of each unit or currency separately. In other case the values will be summarized without taking in consideration differences in the units.
Figure 64 ZDEMO_AIN_CL27 DO_SUM set for DISTANCE field
Figure 65 ZDEMO_AIN_CL27 Results with the DO_SUM and QFIELDNAME filled