REPORT  zornek.

DATA:
      average TYPE p DECIMALS 2,
      sum     TYPE p DECIMALS 2,
      maximum TYPE p DECIMALS 2,
      minimum TYPE p DECIMALS 2.

SELECT AVG( menge )
       SUM( menge )
       MAX( menge )
       MIN( menge )
  FROM ekpo
  INTO (average, sum, maximum, minimum)
  WHERE ebeln = '3000000057'.

WRITE: / 'Average = ', average,
       / 'Sum     = ', sum,
       / 'Maximum = ', maximum,
       / 'Minimum = ', minimum.




Serkan AKKAVAK
Bilgisayar Mühendisi
serkurumsal@yandex.com