This is a simple program that aggregates columns providing resultset with 2 decimal places.
However, the result doesn't come with 2 decimal places, why?
DATA : average TYPE P DECIMALS 2,
sum TYPE P DECIMALS 2.
SELECT AVG( menge ) SUM( menge )
INTO (average, sum)
WRITE : / 'Average : ', average,
/(30) ' Sum : ', sum