showing total of quantity in last of report is proplem why

I make report as following

Data Item Name
Customer
Sales Header Sell-to Customer No.=FIELD(No.)
Sales Line Document No.=FIELD(No.)

with indecent and relation to each other as above

in sales line body report i display sales header.No then quantity

then the records show but problem i can not show total quantity how i show total quantity in last of report

i try with current report.total function but no result show it take only last value of quantity

how i solve this problem

thanks

Use CurrReport.CREATETOTALS.

I use CurrReport.CREATETOTALS. but in sales line on predataitem trigger but it not work i put also in sales header and customer

Put it in onAfftergetrecord Trigger of Sales Line and check.

Thank you very much Mr amol