CalcSums error

Dear All,

To increase the performance ,am not using a repeat until statement. am trying a calcsums , my code is

{

gRecCLE.reset;

gRecCLE.setcurrentkey(“Customer No.”,“Posting Date”,“Currency Code”);

gRecCLE.setrange(gRecCLE.“Customer No.”,‘10000’);

gRecCLE.calcsums(gRecCLE.“Amount”);

}

when i run this code i get error like

" the sum of the values in the amount field in CLE cannot be calculated . Only fields with normal field can be calculated."

plz help.

thanks in advance.

Regards,

Amol

Amount is a FlowField so use CALCFIELDS instead of CLACSUMS